RobWorkProject
Classes | Signals | Public Member Functions | Protected Attributes | List of all members
SimulatorLogEntryWidget Class Referenceabstract

A widget that is a graphical representation of a rwsim::log::SimulatorLogEntry. More...

#include <SimulatorLogEntryWidget.hpp>

Inherits QWidget.

Inherited by BodyMotionWidget, CollisionResultWidget, ConstraintWidget, ContactSetWidget, ContactVelocitiesWidget, EquationSystemWidget, ForceTorqueWidget, LogMessageWidget, LogValuesWidget, and RWPELogContactTrackingWidget.

Classes

class  Dispatcher
 Dispatchers are responsible for creating new widgets of type SimulatorLogEntryWidget. More...
 
class  Factory
 A factory for a SimulatorLogEntryWidget. This factory also defines an extension point for SimulatorLogEntryWidget::Dispatcher. More...
 

Signals

void graphicsUpdated ()
 Signal is emitted if the graphics is updated.
 

Public Member Functions

 SimulatorLogEntryWidget (QWidget *parent=0)
 Construct new widget for a log entry. More...
 
virtual ~SimulatorLogEntryWidget ()
 Destructor.
 
virtual void setDWC (rw::common::Ptr< const rwsim::dynamics::DynamicWorkCell > dwc)=0
 Set the dynamic workcell for visualisation of the log information. More...
 
virtual void setEntry (rw::common::Ptr< const rwsim::log::SimulatorLog > entry)=0
 Set the log entity to show. More...
 
virtual rw::common::Ptr< const rwsim::log::SimulatorLoggetEntry () const =0
 Get the current log entity. More...
 
virtual void updateEntryWidget ()=0
 Re-read logging data and update widget.
 
virtual void showGraphics (rw::common::Ptr< rw::graphics::GroupNode > root, rw::common::Ptr< rw::graphics::SceneGraph > graph)=0
 Add graphics as drawables to a scene-graph. More...
 
virtual std::string getName () const =0
 Get the name of the widget (will be used as the name on tabs). More...
 
virtual void setProperties (rw::common::Ptr< rw::common::PropertyMap > properties)
 Set properties for widget. More...
 

Protected Attributes

rw::common::Ptr< rw::common::PropertyMap_properties
 Widget properties.
 

Detailed Description

A widget that is a graphical representation of a rwsim::log::SimulatorLogEntry.

Constructor & Destructor Documentation

◆ SimulatorLogEntryWidget()

SimulatorLogEntryWidget ( QWidget *  parent = 0)

Construct new widget for a log entry.

Parameters
parent[in] (optional) the parent Qt widget. Ownership is shared by the caller and the parent widget if given.

Member Function Documentation

◆ getEntry()

virtual rw::common::Ptr<const rwsim::log::SimulatorLog> getEntry ( ) const
pure virtual

◆ getName()

virtual std::string getName ( ) const
pure virtual

◆ setDWC()

virtual void setDWC ( rw::common::Ptr< const rwsim::dynamics::DynamicWorkCell dwc)
pure virtual

Set the dynamic workcell for visualisation of the log information.

Parameters
dwc[in] the dynamic workcell.

Implemented in BodyMotionWidget, ContactSetWidget, ForceTorqueWidget, ContactVelocitiesWidget, ConstraintWidget, RWPELogContactTrackingWidget, CollisionResultWidget, EquationSystemWidget, LogMessageWidget, and LogValuesWidget.

◆ setEntry()

virtual void setEntry ( rw::common::Ptr< const rwsim::log::SimulatorLog entry)
pure virtual

◆ setProperties()

virtual void setProperties ( rw::common::Ptr< rw::common::PropertyMap properties)
virtual

Set properties for widget.

Parameters
properties[in/out] properties, such as default values for scaling of graphical elements.

Reimplemented in BodyMotionWidget, ContactSetWidget, and ForceTorqueWidget.

◆ showGraphics()

virtual void showGraphics ( rw::common::Ptr< rw::graphics::GroupNode root,
rw::common::Ptr< rw::graphics::SceneGraph graph 
)
pure virtual

Add graphics as drawables to a scene-graph.

Parameters
root[in] the node to add drawables to.
graph[in] the scene graph.

Implemented in BodyMotionWidget, ContactSetWidget, ForceTorqueWidget, ContactVelocitiesWidget, ConstraintWidget, RWPELogContactTrackingWidget, CollisionResultWidget, EquationSystemWidget, LogMessageWidget, and LogValuesWidget.


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