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::MidButton);
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)
ViewController * getViewController()
Ogre::Viewport * viewport
boost::unordered_map< CollObjectHandle, Picked > M_Picked
virtual uint64_t getFrameCount() const =0
Return the current value of the frame count.
virtual InteractiveObjectWPtr getInteractiveObject()
Get the object to listen to mouse events and other interaction calls during use of the 'interact' too...
void enableInteraction(bool enable)
bool contextMenuVisible()
SelectionHandler * getHandler(CollObjectHandle obj)
virtual SelectionManager * getSelectionManager() const =0
Return a pointer to the SelectionManager.
Qt::MouseButton acting_button
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.
void setTextureSize(unsigned size)
virtual bool getBool() const
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)