49 #ifndef _MIRA_VISUALIZATION3DCONTAINER_H_ 50 #define _MIRA_VISUALIZATION3DCONTAINER_H_ 82 Visualization3D* addVisualization(
const std::string& visualizationClassName);
91 std::string getPropertyString(
Visualization3D* vis,
const std::string& property);
96 return fromString<T>(getPropertyString(vis,property));
100 void setPropertyString(
Visualization3D* vis,
const std::string& property,
const std::string& value);
103 template <
typename T>
105 setPropertyString(vis,property,toString<T>(value));
118 virtual Ogre::SceneManager* getSceneManager();
122 virtual std::set<InteractionListener3D*> getInteractionListeners();
124 virtual const Camera& getCamera()
const;
126 virtual void setCamera(
const Camera& camera);
128 virtual Ogre::Camera* acquireCamera(boost::function<
void()> lostCameraCallback = boost::function<
void()>());
130 virtual void releaseCamera();
132 virtual const std::string& getFixedFrame()
const;
133 virtual const std::string& getCameraFrame()
const;
135 void setFixedFrame(
const std::string& frame);
136 void setCameraFrame(
const std::string& frame);
140 virtual void mousePressEvent(QMouseEvent* e);
141 virtual void mouseReleaseEvent(QMouseEvent* e);
142 virtual void mouseMoveEvent(QMouseEvent* e);
143 virtual void wheelEvent(QWheelEvent* e);
145 virtual void timerEvent(QTimerEvent* e);
149 virtual void initOgre();
153 void setupVisualizations(
bool enableOrbitTool =
true);
157 mutable Camera mCameraSettings;
159 bool mCameraAcquired;
160 boost::function<void()> mLostCameraCallback;
162 bool mEnableOrbitTool;
163 boost::shared_ptr<VisualizationTool3D> mActiveTool;
165 Time mLastUpdateTime;
167 boost::shared_ptr<PropertyNode> mGeneralProperties;
168 std::map<Visualization3D*, boost::shared_ptr<PropertyNode>> mVisualizations;
172 std::string mFixedFrame;
173 std::string mCameraFrame;
175 boost::mutex mListenerMutex;
176 std::set<InteractionListener3D*> mListeners;
The interface of a Visualization3DSite.
Definition: Visualization3D.h:84
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Wrapper class for boost::posix_time::ptime for adding more functionality to it.
Definition: Time.h:418
Declaration of Visualization3D and related classes.
void setProperty(Visualization3D *vis, const std::string &property, const T &value)
Sets the value of the specified property for the specified visualization.
Definition: Visualization3DContainer.h:104
A standalone container for 3D visualizations, similar to Visualization3DView but as lightweight stand...
Definition: Visualization3DContainer.h:70
T getProperty(Visualization3D *vis, const std::string &property)
Returns the value of the specified property for the specified visualization.
Definition: Visualization3DContainer.h:95
#define MIRA_GUI_VISUALIZATION_EXPORT
Definition: GuiVisualizationExports.h:61
Listener for mouse events on movable objects in a 3D view.
Definition: InteractionListener3D.h:66
Abstract base class for all 3D visualization that are used by Visualization3DView.
Definition: Visualization3D.h:169
Provides display and editing facilities for property items in the editor.
Definition: PropertyEditor.h:74