RobWorkProject  23.9.11-
Public Types | Public Member Functions | List of all members
SimulatorLogEntryWidget::Dispatcher Class Referenceabstract

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

#include <SimulatorLogEntryWidget.hpp>

Inherited by BodyMotionWidget::Dispatcher, CollisionResultWidget::Dispatcher, ConstraintWidget::Dispatcher, ContactSetWidget::Dispatcher, ContactVelocitiesWidget::Dispatcher, DistanceResultWidget::Dispatcher, EquationSystemWidget::Dispatcher, ForceTorqueWidget::Dispatcher, LogMessageWidget::Dispatcher, and LogValuesWidget::Dispatcher.

Public Types

typedef rw::core::Ptr< const DispatcherPtr
 Smart pointer to a dispatcher.
 

Public Member Functions

virtual ~Dispatcher ()
 Destructor.
 
virtual SimulatorLogEntryWidgetmakeWidget (rw::core::Ptr< const rwsim::log::SimulatorLog > entry, QWidget *parent=0) const =0
 Make new SimulatorLogEntryWidget. More...
 
virtual bool accepts (rw::core::Ptr< const rwsim::log::SimulatorLog > entry) const =0
 Check if the widget created by this dispatcher will be work for the given log entry. More...
 

Detailed Description

Dispatchers are responsible for creating new widgets of type SimulatorLogEntryWidget.

Member Function Documentation

◆ accepts()

virtual bool accepts ( rw::core::Ptr< const rwsim::log::SimulatorLog entry) const
pure virtual

Check if the widget created by this dispatcher will be work for the given log entry.

Parameters
entry[in] the entry.
Returns
true if widgets will work for this entry, or false otherwise.

Implemented in LogValuesWidget::Dispatcher, LogMessageWidget::Dispatcher, ForceTorqueWidget::Dispatcher, EquationSystemWidget::Dispatcher, DistanceResultWidget::Dispatcher, ContactVelocitiesWidget::Dispatcher, ContactSetWidget::Dispatcher, ConstraintWidget::Dispatcher, CollisionResultWidget::Dispatcher, and BodyMotionWidget::Dispatcher.

◆ makeWidget()

virtual SimulatorLogEntryWidget* makeWidget ( rw::core::Ptr< const rwsim::log::SimulatorLog entry,
QWidget *  parent = 0 
) const
pure virtual

Make new SimulatorLogEntryWidget.

Parameters
entry[in] the entry to make widget for.
parent[in] the parent Qt widget (optional).
Returns
a pointer to the widget - ownership is shared by the caller and the parent widget if given.

Implemented in LogValuesWidget::Dispatcher, LogMessageWidget::Dispatcher, ForceTorqueWidget::Dispatcher, EquationSystemWidget::Dispatcher, DistanceResultWidget::Dispatcher, ContactVelocitiesWidget::Dispatcher, ContactSetWidget::Dispatcher, ConstraintWidget::Dispatcher, CollisionResultWidget::Dispatcher, and BodyMotionWidget::Dispatcher.


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