47 #ifndef _MIRA_VISUALIZATION2DCONTAINER_H_ 48 #define _MIRA_VISUALIZATION2DCONTAINER_H_ 53 #include <QGraphicsScene> 54 #include <QGraphicsView> 55 #include <QtGui/QMouseEvent> 72 Visualization2D* addVisualization(
const std::string& visualizationClassName);
78 virtual QGraphicsScene* getSceneManager();
79 virtual QGraphicsView* getViewManager();
81 virtual const Camera& getCamera()
const;
82 virtual void setCamera(
const Camera& camera);
84 virtual float getToolBaseZValue()
const;
86 virtual const std::string& getFixedFrame()
const;
87 virtual const std::string& getCameraFrame()
const;
89 virtual void setFixedFrame(
const std::string& frame);
90 virtual void setCameraFrame(
const std::string& frame);
92 virtual void setBackgroundColor(
const QColor& color);
93 virtual void fitRectInView(
const QRectF& rect);
96 std::string getPropertyString(
Visualization2D* vis,
const std::string& property);
98 return fromString<T>(getPropertyString(vis,property));
101 void setPropertyString(
Visualization2D* vis,
const std::string& property,
const std::string& value);
103 setPropertyString(vis,property,toString<T>(value));
113 virtual void mousePressEvent(QMouseEvent* event);
114 virtual void mouseMoveEvent(QMouseEvent* event);
115 virtual void mouseReleaseEvent(QMouseEvent* event);
116 virtual void wheelEvent (QWheelEvent* event);
117 virtual void timerEvent(QTimerEvent* e);
120 virtual void updateCamera();
121 virtual void setupVisualizations(
bool enableOrbitTool =
true);
std::map< Visualization2D *, boost::shared_ptr< PropertyNode > > mVisualizations
Definition: Visualization2DContainer.h:133
PropertyEditor * mEditor
Definition: Visualization2DContainer.h:135
Definition: Visualization2D.h:73
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
void setProperty(Visualization2D *vis, const std::string &property, const T &value)
Definition: Visualization2DContainer.h:102
Abstract base class for all 2D visualization that are used by Visualization2DView.
Definition: Visualization2D.h:120
boost::shared_ptr< PropertyNode > mGeneralProperties
Definition: Visualization2DContainer.h:132
std::string mCameraFrame
Definition: Visualization2DContainer.h:138
Wrapper class for boost::posix_time::ptime for adding more functionality to it.
Definition: Time.h:418
boost::shared_ptr< VisualizationTool2D > mActiveTool
Definition: Visualization2DContainer.h:128
QGraphicsScene * mScene
Definition: Visualization2DContainer.h:125
Camera mCameraSettings
Definition: Visualization2DContainer.h:123
virtual void processUpdate(Duration d)
Definition: Visualization2DContainer.h:110
Use this class to represent time durations.
Definition: Time.h:106
#define MIRA_GUI_VISUALIZATION_EXPORT
Definition: GuiVisualizationExports.h:61
Definition: Visualization2D.h:64
Time mLastUpdateTime
Definition: Visualization2DContainer.h:130
std::string mFixedFrame
Definition: Visualization2DContainer.h:137
Declaration of Visualization2D and related classes.
Provides display and editing facilities for property items in the editor.
Definition: PropertyEditor.h:74
QColor mBackgroundColor
Definition: Visualization2DContainer.h:126
T getProperty(Visualization2D *vis, const std::string &property)
Definition: Visualization2DContainer.h:97
Definition: Visualization2DContainer.h:65