StateItemModel Class Reference

#include <ArmarXGui/gui-plugins/StatechartEventSenderPlugin/StateItemModel.h>

+ Inheritance diagram for StateItemModel:

Public Types

enum  eItemType {
  eComponentItem, ePlaceHolderItem, eBaseStateItem, eInstanceStateItem,
  eInputItem
}
 Enum that is used to store the type of a treeEntry. More...
 

Public Member Functions

void findSubstate (StateIceBasePtr state, const std::string &globalStateIdStr, StateIceBasePtr &resultState)
 
StateIceBasePtr getState (std::string componentName, const std::string &globalStateIdStr)
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 
 StateItemModel (QObject *parent=0)
 
void updateModel (const std::string &componentName, const std::vector< StateIceBasePtr > &topLevelBaseStates, const std::vector< StateIceBasePtr > &topLevelRequestedStates)
 
 ~StateItemModel () override
 

Detailed Description

Definition at line 50 of file StateItemModel.h.

Member Enumeration Documentation

◆ eItemType

enum eItemType

Enum that is used to store the type of a treeEntry.

Enumerator
eComponentItem 
ePlaceHolderItem 
eBaseStateItem 
eInstanceStateItem 
eInputItem 

Definition at line 58 of file StateItemModel.h.

Constructor & Destructor Documentation

◆ StateItemModel()

StateItemModel ( QObject *  parent = 0)

Definition at line 31 of file StateItemModel.cpp.

◆ ~StateItemModel()

~StateItemModel ( )
inlineoverride

Definition at line 55 of file StateItemModel.h.

Member Function Documentation

◆ findSubstate()

void findSubstate ( StateIceBasePtr  state,
const std::string &  globalStateIdStr,
StateIceBasePtr &  resultState 
)

Definition at line 93 of file StateItemModel.cpp.

+ Here is the caller graph for this function:

◆ getState()

StateIceBasePtr getState ( std::string  componentName,
const std::string &  globalStateIdStr 
)

Definition at line 63 of file StateItemModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setData()

bool setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
override

Definition at line 366 of file StateItemModel.cpp.

◆ updateModel()

void updateModel ( const std::string &  componentName,
const std::vector< StateIceBasePtr > &  topLevelBaseStates,
const std::vector< StateIceBasePtr > &  topLevelRequestedStates 
)

Definition at line 38 of file StateItemModel.cpp.

+ Here is the caller graph for this function:

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