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

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

#include <BodyMotionWidget.hpp>

Inherits SimulatorLogEntryWidget::Dispatcher.

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from SimulatorLogEntryWidget::Dispatcher
typedef rw::core::Ptr< const DispatcherPtr
 Smart pointer to a dispatcher.
 

Detailed Description

Dispatchers are responsible for creating new widgets of type SimulatorLogEntryWidget.

Member Function Documentation

◆ accepts()

bool accepts ( rw::core::Ptr< const rwsim::log::SimulatorLog entry) const
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.

Implements SimulatorLogEntryWidget::Dispatcher.

◆ makeWidget()

SimulatorLogEntryWidget* makeWidget ( rw::core::Ptr< const rwsim::log::SimulatorLog entry,
QWidget *  parent = 0 
) const
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.

Implements SimulatorLogEntryWidget::Dispatcher.


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