MIRA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Visualization2DContainer Class Reference

#include <visualization/Visualization2DContainer.h>

Inheritance diagram for Visualization2DContainer:
Inheritance graph
[legend]

Public Member Functions

 Visualization2DContainer (QWidget *parent=NULL, bool enableOrbitTool=true)
 
virtual ~Visualization2DContainer ()
 
Visualization2DaddVisualization (const std::string &visualizationClassName)
 
void addVisualization (Visualization2D *vis)
 
void removeVisualization (Visualization2D *vis)
 
virtual QGraphicsScene * getSceneManager ()
 
virtual QGraphicsView * getViewManager ()
 
virtual const CameragetCamera () const
 Obtains the current camera settings (position, orientation, etc.) of the views own camera. More...
 
virtual void setCamera (const Camera &camera)
 Sets the current camera settings (position, orientation, etc.) of the views own camera. More...
 
virtual float getToolBaseZValue () const
 Obtains the Z value all tools should adhere to to ensure that they will always be above regular visualizations. More...
 
virtual const std::string & getFixedFrame () const
 
virtual const std::string & getCameraFrame () const
 
virtual void setFixedFrame (const std::string &frame)
 
virtual void setCameraFrame (const std::string &frame)
 
virtual void setBackgroundColor (const QColor &color)
 
virtual void fitRectInView (const QRectF &rect)
 
std::string getPropertyString (Visualization2D *vis, const std::string &property)
 
template<typename T >
getProperty (Visualization2D *vis, const std::string &property)
 
void setPropertyString (Visualization2D *vis, const std::string &property, const std::string &value)
 
template<typename T >
void setProperty (Visualization2D *vis, const std::string &property, const T &value)
 
PropertyEditorgetPropertyEditor (QWidget *parent=NULL)
 

Protected Member Functions

virtual void processUpdate (Duration d)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void wheelEvent (QWheelEvent *event)
 
virtual void timerEvent (QTimerEvent *e)
 
virtual void updateCamera ()
 
virtual void setupVisualizations (bool enableOrbitTool=true)
 

Protected Attributes

Camera mCameraSettings
 
QGraphicsScene * mScene
 
QColor mBackgroundColor
 
boost::shared_ptr< VisualizationTool2DmActiveTool
 
Time mLastUpdateTime
 
boost::shared_ptr< PropertyNodemGeneralProperties
 
std::map< Visualization2D *, boost::shared_ptr< PropertyNode > > mVisualizations
 
PropertyEditormEditor
 
std::string mFixedFrame
 
std::string mCameraFrame
 

Constructor & Destructor Documentation

◆ Visualization2DContainer()

Visualization2DContainer ( QWidget *  parent = NULL,
bool  enableOrbitTool = true 
)

◆ ~Visualization2DContainer()

virtual ~Visualization2DContainer ( )
virtual

Member Function Documentation

◆ addVisualization() [1/2]

Visualization2D* addVisualization ( const std::string &  visualizationClassName)

◆ addVisualization() [2/2]

void addVisualization ( Visualization2D vis)

◆ removeVisualization()

void removeVisualization ( Visualization2D vis)

◆ getSceneManager()

virtual QGraphicsScene* getSceneManager ( )
virtual

Implements IVisualization2DSite.

◆ getViewManager()

virtual QGraphicsView* getViewManager ( )
virtual

Implements IVisualization2DSite.

◆ getCamera()

virtual const Camera& getCamera ( ) const
virtual

Obtains the current camera settings (position, orientation, etc.) of the views own camera.

Implements IVisualization2DSite.

◆ setCamera()

virtual void setCamera ( const Camera camera)
virtual

Sets the current camera settings (position, orientation, etc.) of the views own camera.

Implements IVisualization2DSite.

◆ getToolBaseZValue()

virtual float getToolBaseZValue ( ) const
virtual

Obtains the Z value all tools should adhere to to ensure that they will always be above regular visualizations.

Implements IVisualization2DSite.

◆ getFixedFrame()

virtual const std::string& getFixedFrame ( ) const
virtual

◆ getCameraFrame()

virtual const std::string& getCameraFrame ( ) const
virtual

◆ setFixedFrame()

virtual void setFixedFrame ( const std::string &  frame)
virtual

◆ setCameraFrame()

virtual void setCameraFrame ( const std::string &  frame)
virtual

◆ setBackgroundColor()

virtual void setBackgroundColor ( const QColor &  color)
virtual

◆ fitRectInView()

virtual void fitRectInView ( const QRectF &  rect)
virtual

◆ getPropertyString()

std::string getPropertyString ( Visualization2D vis,
const std::string &  property 
)

◆ getProperty()

T getProperty ( Visualization2D vis,
const std::string &  property 
)
inline

◆ setPropertyString()

void setPropertyString ( Visualization2D vis,
const std::string &  property,
const std::string &  value 
)

◆ setProperty()

void setProperty ( Visualization2D vis,
const std::string &  property,
const T &  value 
)
inline

◆ getPropertyEditor()

PropertyEditor* getPropertyEditor ( QWidget *  parent = NULL)

◆ processUpdate()

virtual void processUpdate ( Duration  d)
inlineprotectedvirtual

◆ mousePressEvent()

virtual void mousePressEvent ( QMouseEvent *  event)
protectedvirtual

◆ mouseMoveEvent()

virtual void mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

◆ mouseReleaseEvent()

virtual void mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

◆ wheelEvent()

virtual void wheelEvent ( QWheelEvent *  event)
protectedvirtual

◆ timerEvent()

virtual void timerEvent ( QTimerEvent *  e)
protectedvirtual

◆ updateCamera()

virtual void updateCamera ( )
protectedvirtual

◆ setupVisualizations()

virtual void setupVisualizations ( bool  enableOrbitTool = true)
protectedvirtual

Member Data Documentation

◆ mCameraSettings

Camera mCameraSettings
protected

◆ mScene

QGraphicsScene* mScene
protected

◆ mBackgroundColor

QColor mBackgroundColor
protected

◆ mActiveTool

boost::shared_ptr<VisualizationTool2D> mActiveTool
protected

◆ mLastUpdateTime

Time mLastUpdateTime
protected

◆ mGeneralProperties

boost::shared_ptr<PropertyNode> mGeneralProperties
protected

◆ mVisualizations

std::map<Visualization2D*, boost::shared_ptr<PropertyNode> > mVisualizations
protected

◆ mEditor

PropertyEditor* mEditor
protected

◆ mFixedFrame

std::string mFixedFrame
protected

◆ mCameraFrame

std::string mCameraFrame
protected

The documentation for this class was generated from the following file: