RobWorkProject
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, EquationSystemWidget::Dispatcher, ForceTorqueWidget::Dispatcher, LogMessageWidget::Dispatcher, and LogValuesWidget::Dispatcher.

Public Types

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

Public Member Functions

virtual ~Dispatcher ()
 Destructor.
 
virtual SimulatorLogEntryWidgetmakeWidget (rw::common::Ptr< const rwsim::log::SimulatorLog > entry, QWidget *parent=0) const =0
 Make new SimulatorLogEntryWidget. More...
 
virtual bool accepts (rw::common::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::common::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 BodyMotionWidget::Dispatcher, ContactSetWidget::Dispatcher, ContactVelocitiesWidget::Dispatcher, ConstraintWidget::Dispatcher, CollisionResultWidget::Dispatcher, ForceTorqueWidget::Dispatcher, EquationSystemWidget::Dispatcher, LogMessageWidget::Dispatcher, and LogValuesWidget::Dispatcher.

◆ makeWidget()

virtual SimulatorLogEntryWidget* makeWidget ( rw::common::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 BodyMotionWidget::Dispatcher, ContactSetWidget::Dispatcher, ContactVelocitiesWidget::Dispatcher, ConstraintWidget::Dispatcher, CollisionResultWidget::Dispatcher, ForceTorqueWidget::Dispatcher, EquationSystemWidget::Dispatcher, LogMessageWidget::Dispatcher, and LogValuesWidget::Dispatcher.


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