VisualizationSubject Class Referenceabstract

The AdvancedVisualizationFactory class is the abstract decorator of the Decorator-Pattern and decorates the VisualizationFactoy in Simox. More...

#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Visualization/VisualizationSubject.h>

+ Inheritance diagram for VisualizationSubject:

Public Member Functions

virtual Eigen::Matrix4f getManipulatorPose ()=0
 getManipulatorPose More...
 
virtual int getSelectedWaypoint ()=0
 getSelectedWaypoint More...
 
void removeObservers ()
 
void setObserver (VisualizationObserverPtr observer)
 setObserver adds a new observer to this subject, everytime the subjet changes the observer should be notified by calling its refresh method More...
 

Protected Attributes

std::weak_ptr< VisualizationObserverobserver
 

Detailed Description

The AdvancedVisualizationFactory class is the abstract decorator of the Decorator-Pattern and decorates the VisualizationFactoy in Simox.

The additional Functionality is that it can also generate the Visualization for a Manipulator

Definition at line 37 of file VisualizationSubject.h.

Member Function Documentation

◆ getManipulatorPose()

virtual Eigen::Matrix4f getManipulatorPose ( )
pure virtual

getManipulatorPose

Returns
the position of the manipulator in the gui

Implemented in CoinRobotViewerAdapter.

◆ getSelectedWaypoint()

virtual int getSelectedWaypoint ( )
pure virtual

getSelectedWaypoint

Returns
the waypoint selected in the GUI

Implemented in CoinRobotViewerAdapter.

◆ removeObservers()

void removeObservers ( )

Definition at line 12 of file VisualizationSubject.cpp.

◆ setObserver()

void setObserver ( VisualizationObserverPtr  observer)

setObserver adds a new observer to this subject, everytime the subjet changes the observer should be notified by calling its refresh method

Parameters
observerthe observer to be added

Definition at line 7 of file VisualizationSubject.cpp.

Member Data Documentation

◆ observer

std::weak_ptr<VisualizationObserver> observer
protected

Definition at line 60 of file VisualizationSubject.h.


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