RobWorkProject  23.9.11-
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 DistanceMultiResultWidget, BodyMotionWidget, CollisionResultWidget, ConstraintWidget, ContactSetWidget, ContactVelocitiesWidget, DistanceResultWidget, EquationSystemWidget, ForceTorqueWidget, LogMessageWidget, and LogValuesWidget.

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::core::Ptr< const rwsim::dynamics::DynamicWorkCell > dwc)=0
 Set the dynamic workcell for visualisation of the log information. More...
 
virtual void setEntry (rw::core::Ptr< const rwsim::log::SimulatorLog > entry)=0
 Set the log entity to show. More...
 
virtual rw::core::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::core::Ptr< rw::graphics::GroupNode > root, rw::core::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::core::Ptr< rw::core::PropertyMap > properties)
 Set properties for widget. More...
 

Protected Attributes

rw::core::Ptr< rw::core::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::core::Ptr<const rwsim::log::SimulatorLog> getEntry ( ) const
pure virtual

◆ getName()

virtual std::string getName ( ) const
pure virtual

◆ setDWC()

virtual void setDWC ( rw::core::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 LogValuesWidget, LogMessageWidget, ForceTorqueWidget, EquationSystemWidget, DistanceResultWidget, DistanceMultiResultWidget, ContactVelocitiesWidget, ContactSetWidget, ConstraintWidget, CollisionResultWidget, and BodyMotionWidget.

◆ setEntry()

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

◆ setProperties()

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

Set properties for widget.

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

Reimplemented in ForceTorqueWidget, ContactSetWidget, and BodyMotionWidget.

◆ showGraphics()

virtual void showGraphics ( rw::core::Ptr< rw::graphics::GroupNode root,
rw::core::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 LogValuesWidget, LogMessageWidget, ForceTorqueWidget, EquationSystemWidget, DistanceResultWidget, DistanceMultiResultWidget, ContactVelocitiesWidget, ContactSetWidget, ConstraintWidget, CollisionResultWidget, and BodyMotionWidget.


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