RobWorkProject  23.9.11-
Classes | Public Member Functions | List of all members
BodyMotionWidget Class Reference

Graphical representation of the log entries rwsim::log::LogPositions and rwsim::log::LogVelocities. More...

#include <BodyMotionWidget.hpp>

Inherits SimulatorLogEntryWidget.

Classes

class  Dispatcher
 Dispatchers are responsible for creating new widgets of type SimulatorLogEntryWidget. More...
 

Public Member Functions

 BodyMotionWidget (rw::core::Ptr< const rwsim::log::LogPositions > entry, QWidget *parent=0)
 Construct new widget for a log entry. More...
 
 BodyMotionWidget (rw::core::Ptr< const rwsim::log::LogVelocities > entry, QWidget *parent=0)
 Construct new widget for a log entry. More...
 
virtual ~BodyMotionWidget ()
 Destructor.
 
virtual void setDWC (rw::core::Ptr< const rwsim::dynamics::DynamicWorkCell > dwc)
 Set the dynamic workcell for visualisation of the log information. More...
 
virtual void setEntry (rw::core::Ptr< const rwsim::log::SimulatorLog > entry)
 Set the log entity to show. More...
 
virtual rw::core::Ptr< const rwsim::log::SimulatorLoggetEntry () const
 Get the current log entity. More...
 
virtual void updateEntryWidget ()
 Re-read logging data and update widget. More...
 
virtual void showGraphics (rw::core::Ptr< rw::graphics::GroupNode > root, rw::core::Ptr< rw::graphics::SceneGraph > graph)
 Add graphics as drawables to a scene-graph. More...
 
virtual std::string getName () const
 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...
 
- Public Member Functions inherited from SimulatorLogEntryWidget
 SimulatorLogEntryWidget (QWidget *parent=0)
 Construct new widget for a log entry. More...
 
virtual ~SimulatorLogEntryWidget ()
 Destructor.
 

Additional Inherited Members

- Signals inherited from SimulatorLogEntryWidget
void graphicsUpdated ()
 Signal is emitted if the graphics is updated.
 
- Protected Attributes inherited from SimulatorLogEntryWidget
rw::core::Ptr< rw::core::PropertyMap_properties
 Widget properties.
 

Detailed Description

Graphical representation of the log entries rwsim::log::LogPositions and rwsim::log::LogVelocities.

Constructor & Destructor Documentation

◆ BodyMotionWidget() [1/2]

BodyMotionWidget ( rw::core::Ptr< const rwsim::log::LogPositions entry,
QWidget *  parent = 0 
)

Construct new widget for a log entry.

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

◆ BodyMotionWidget() [2/2]

BodyMotionWidget ( rw::core::Ptr< const rwsim::log::LogVelocities entry,
QWidget *  parent = 0 
)

Construct new widget for a log entry.

Parameters
entry[in] a velocities entry.
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
virtual

Get the current log entity.

Returns
the log entity.

Implements SimulatorLogEntryWidget.

◆ getName()

virtual std::string getName ( ) const
virtual

Get the name of the widget (will be used as the name on tabs).

Returns
the name.

Implements SimulatorLogEntryWidget.

◆ setDWC()

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

Set the dynamic workcell for visualisation of the log information.

Parameters
dwc[in] the dynamic workcell.

Implements SimulatorLogEntryWidget.

◆ setEntry()

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

Set the log entity to show.

Parameters
entry[in] the log entity.

Implements SimulatorLogEntryWidget.

◆ 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 from SimulatorLogEntryWidget.

◆ showGraphics()

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

Add graphics as drawables to a scene-graph.

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

Implements SimulatorLogEntryWidget.

◆ updateEntryWidget()

virtual void updateEntryWidget ( )
virtual

Re-read logging data and update widget.

Implements SimulatorLogEntryWidget.


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