Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
moveit_rviz_plugin::BaseTaskModel Class Referenceabstract

#include <task_list_model.h>

Inheritance diagram for moveit_rviz_plugin::BaseTaskModel:
Inheritance graph
[legend]

Public Types

enum  TaskModelFlag : uint8_t { LOCAL_MODEL = 0x01, IS_DESTROYED = 0x02, IS_INITIALIZED = 0x04, IS_RUNNING = 0x08 }
 

Public Member Functions

 BaseTaskModel (const planning_scene::PlanningSceneConstPtr &scene, rviz::DisplayContext *display_context, QObject *parent=nullptr)
 
int columnCount (const QModelIndex &=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
virtual rviz::PropertyTreeModelgetPropertyModel (const QModelIndex &index)=0
 get property model for given stage index More...
 
virtual DisplaySolutionPtr getSolution (const QModelIndex &index)=0
 get solution for given solution index More...
 
virtual QAbstractItemModel * getSolutionModel (const QModelIndex &index)=0
 get solution model for given stage index More...
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
virtual QModelIndex indexFromStageId (size_t id) const =0
 retrieve model index associated with given stage id More...
 
virtual void setStageFactory (const StageFactoryPtr &)
 
unsigned int taskFlags () const
 

Static Public Member Functions

static QVariant flowIcon (moveit::task_constructor::InterfaceFlags f)
 

Protected Attributes

rviz::DisplayContextdisplay_context_
 
unsigned int flags_ = 0
 
planning_scene::PlanningSceneConstPtr scene_
 

Detailed Description

Base class to represent a single local or remote Task as a Qt model.

Definition at line 71 of file task_list_model.h.

Member Enumeration Documentation

◆ TaskModelFlag

Enumerator
LOCAL_MODEL 
IS_DESTROYED 
IS_INITIALIZED 
IS_RUNNING 

Definition at line 80 of file task_list_model.h.

Constructor & Destructor Documentation

◆ BaseTaskModel()

moveit_rviz_plugin::BaseTaskModel::BaseTaskModel ( const planning_scene::PlanningSceneConstPtr &  scene,
rviz::DisplayContext display_context,
QObject *  parent = nullptr 
)
inline

Definition at line 88 of file task_list_model.h.

Member Function Documentation

◆ columnCount()

int moveit_rviz_plugin::BaseTaskModel::columnCount ( const QModelIndex &  = QModelIndex()) const
inlineoverride

Definition at line 92 of file task_list_model.h.

◆ data()

QVariant moveit_rviz_plugin::BaseTaskModel::data ( const QModelIndex &  index,
int  role 
) const
override

Definition at line 109 of file task_list_model.cpp.

◆ flowIcon()

QVariant moveit_rviz_plugin::BaseTaskModel::flowIcon ( moveit::task_constructor::InterfaceFlags  f)
static

Definition at line 117 of file task_list_model.cpp.

◆ getPropertyModel()

virtual rviz::PropertyTreeModel* moveit_rviz_plugin::BaseTaskModel::getPropertyModel ( const QModelIndex &  index)
pure virtual

get property model for given stage index

Implemented in moveit_rviz_plugin::LocalTaskModel, and moveit_rviz_plugin::RemoteTaskModel.

◆ getSolution()

virtual DisplaySolutionPtr moveit_rviz_plugin::BaseTaskModel::getSolution ( const QModelIndex &  index)
pure virtual

get solution for given solution index

Implemented in moveit_rviz_plugin::LocalTaskModel, and moveit_rviz_plugin::RemoteTaskModel.

◆ getSolutionModel()

virtual QAbstractItemModel* moveit_rviz_plugin::BaseTaskModel::getSolutionModel ( const QModelIndex &  index)
pure virtual

get solution model for given stage index

Implemented in moveit_rviz_plugin::LocalTaskModel, and moveit_rviz_plugin::RemoteTaskModel.

◆ headerData()

QVariant moveit_rviz_plugin::BaseTaskModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

Definition at line 103 of file task_list_model.cpp.

◆ indexFromStageId()

virtual QModelIndex moveit_rviz_plugin::BaseTaskModel::indexFromStageId ( size_t  id) const
pure virtual

retrieve model index associated with given stage id

Implemented in moveit_rviz_plugin::LocalTaskModel, and moveit_rviz_plugin::RemoteTaskModel.

◆ setStageFactory()

virtual void moveit_rviz_plugin::BaseTaskModel::setStageFactory ( const StageFactoryPtr )
inlinevirtual

Reimplemented in moveit_rviz_plugin::LocalTaskModel.

Definition at line 96 of file task_list_model.h.

◆ taskFlags()

unsigned int moveit_rviz_plugin::BaseTaskModel::taskFlags ( ) const
inline

Definition at line 97 of file task_list_model.h.

Member Data Documentation

◆ display_context_

rviz::DisplayContext* moveit_rviz_plugin::BaseTaskModel::display_context_
protected

Definition at line 77 of file task_list_model.h.

◆ flags_

unsigned int moveit_rviz_plugin::BaseTaskModel::flags_ = 0
protected

Definition at line 75 of file task_list_model.h.

◆ scene_

planning_scene::PlanningSceneConstPtr moveit_rviz_plugin::BaseTaskModel::scene_
protected

Definition at line 76 of file task_list_model.h.


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


visualization
Author(s): Robert Haschke
autogenerated on Thu Feb 27 2025 03:39:51