Go to the documentation of this file.
30 #include <OgreCamera.h>
31 #include <OgrePlane.h>
33 #include <OgreSceneNode.h>
34 #include <OgreViewport.h>
55 "While holding down a mouse button, hide all other Interactive Objects.",
93 M_Picked::iterator result_it = results.begin();
94 if (result_it != results.end())
96 Picked pick = result_it->second;
101 if (
object && object->isInteractive())
103 new_focused_object = object;
112 if (new_obj != old_obj)
119 event_copy.
type = QEvent::FocusOut;
120 old_obj->handleMouseEvent(event_copy);
125 event_copy.
type = QEvent::FocusIn;
126 new_obj->handleMouseEvent(event_copy);
146 Qt::MouseButtons buttons =
event.buttons_down & (Qt::LeftButton | Qt::RightButton | Qt::MiddleButton);
147 if (event.
type == QEvent::MouseButtonPress)
149 bool dragging = buttons != 0;
152 if (need_selection_update && !dragging && event.
type != QEvent::MouseButtonRelease)
162 focused_object->handleMouseEvent(event);
181 if (event.
type == QEvent::MouseButtonRelease)
virtual bool getBool() const
void enableInteraction(bool enable)
SelectionHandler * getHandler(CollObjectHandle obj)
void pick(Ogre::Viewport *viewport, int x1, int y1, int x2, int y2, M_Picked &results, bool single_render_pass=false)
Property specialized to provide getter for booleans.
ViewController * getViewController()
Ogre::Viewport * viewport
bool contextMenuVisible()
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
virtual InteractiveObjectWPtr getInteractiveObject()
Get the object to listen to mouse events and other interaction calls during use of the 'interact' too...
virtual SelectionManager * getSelectionManager() const =0
Return a pointer to the SelectionManager.
void setTextureSize(unsigned size)
virtual uint64_t getFrameCount() const =0
Return the current value of the frame count.
Qt::MouseButton acting_button
boost::unordered_map< CollObjectHandle, Picked > M_Picked
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Aug 2 2024 08:43:09