StateTreeNode Class Reference

#include <ArmarXGui/gui-plugins/StatechartEditorPlugin/model/StateTreeNode.h>

+ Inheritance diagram for StateTreeNode:

Public Types

enum  NodeType { Group, Folder, State }
 
enum  Path { Absolute, RelativeToGroup }
 

Public Member Functions

void appendChild (StateTreeNodePtr child)
 
bool checkCppExists ()
 
StateTreeNodePtr child (int row)
 
int childCount () const
 
int columnCount () const
 
StateTreeNodePtr findNodeByStateName (QString name)
 
std::filesystem::path getAbsoluteBoostPath () const
 
QVector< statechartmodel::StatePtrgetAllStatesRecursively (bool localOnly) const
 
QVector< StateTreeNodePtrgetAllSubNodesRecursively () const
 
QString getBasename () const
 
std::filesystem::path getBoostCppFilePath (Path pathType=Path::Absolute) const
 
std::filesystem::path getBoostGeneratedHFilePath (Path pathType=Path::Absolute) const
 
std::filesystem::path getBoostHFilePath (Path pathType=Path::Absolute) const
 
std::filesystem::path getBoostPath (std::filesystem::path parentPath) const
 
std::filesystem::path getBoostPathRelativeToGroup () const
 
std::filesystem::path getBoostXmlFilePath (Path pathType=Path::Absolute) const
 
QList< StateTreeNodePtrgetChildren () const
 
StateTreeNodePtr getClosestParentFolderOrGroupNode ()
 
bool getCppExists () const
 
QString getDisplay () const
 
StatechartGroupPtr getGroup ()
 
int getNestingLevelRelativeToGroup ()
 
NodeType getNodeType ()
 
StateTreeNodePtr getParent () const
 
armarx::statechartmodel::StatePtr getState () const
 
bool isFolder () const
 
bool isFolderOrGroup () const
 
bool isGroup () const
 
bool isPublic ()
 
bool isState () const
 
void removeChild (StateTreeNodePtr child)
 
int row () const
 
void setPublic (bool isPublic)
 
void sortChildren ()
 
 StateTreeNode (QString display, QString basename, NodeType nodeType, StateTreeNodePtr parentNode, StatechartGroupPtr parentGroup, bool stateIsPublic)
 
 ~StateTreeNode ()
 

Static Public Member Functions

static bool CheckNodeName (QString name)
 

Friends

class StateTreeModel
 

Detailed Description

Definition at line 40 of file StateTreeNode.h.

Member Enumeration Documentation

◆ NodeType

enum NodeType
Enumerator
Group 
Folder 
State 

Definition at line 45 of file StateTreeNode.h.

◆ Path

enum Path
strong
Enumerator
Absolute 
RelativeToGroup 

Definition at line 46 of file StateTreeNode.h.

Constructor & Destructor Documentation

◆ StateTreeNode()

StateTreeNode ( QString  display,
QString  basename,
NodeType  nodeType,
StateTreeNodePtr  parentNode,
StatechartGroupPtr  parentGroup,
bool  stateIsPublic 
)

Definition at line 30 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ ~StateTreeNode()

Definition at line 42 of file StateTreeNode.cpp.

Member Function Documentation

◆ appendChild()

void appendChild ( StateTreeNodePtr  child)

Definition at line 47 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ checkCppExists()

bool checkCppExists ( )

Definition at line 217 of file StateTreeNode.cpp.

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

◆ CheckNodeName()

bool CheckNodeName ( QString  name)
static

Definition at line 369 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ child()

StateTreeNodePtr child ( int  row)

Definition at line 93 of file StateTreeNode.cpp.

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

◆ childCount()

int childCount ( ) const

Definition at line 98 of file StateTreeNode.cpp.

◆ columnCount()

int columnCount ( ) const

Definition at line 103 of file StateTreeNode.cpp.

◆ findNodeByStateName()

StateTreeNodePtr findNodeByStateName ( QString  name)

Definition at line 285 of file StateTreeNode.cpp.

◆ getAbsoluteBoostPath()

std::filesystem::path getAbsoluteBoostPath ( ) const

Definition at line 156 of file StateTreeNode.cpp.

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

◆ getAllStatesRecursively()

QVector< statechartmodel::StatePtr > getAllStatesRecursively ( bool  localOnly) const

Definition at line 322 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ getAllSubNodesRecursively()

QVector< StateTreeNodePtr > getAllSubNodesRecursively ( ) const

Definition at line 305 of file StateTreeNode.cpp.

◆ getBasename()

QString getBasename ( ) const

Definition at line 151 of file StateTreeNode.cpp.

◆ getBoostCppFilePath()

std::filesystem::path getBoostCppFilePath ( StateTreeNode::Path  pathType = Path::Absolute) const

Definition at line 171 of file StateTreeNode.cpp.

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

◆ getBoostGeneratedHFilePath()

std::filesystem::path getBoostGeneratedHFilePath ( StateTreeNode::Path  pathType = Path::Absolute) const

Definition at line 195 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ getBoostHFilePath()

std::filesystem::path getBoostHFilePath ( StateTreeNode::Path  pathType = Path::Absolute) const

Definition at line 183 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ getBoostPath()

std::filesystem::path getBoostPath ( std::filesystem::path  parentPath) const

Definition at line 228 of file StateTreeNode.cpp.

◆ getBoostPathRelativeToGroup()

std::filesystem::path getBoostPathRelativeToGroup ( ) const

Definition at line 233 of file StateTreeNode.cpp.

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

◆ getBoostXmlFilePath()

std::filesystem::path getBoostXmlFilePath ( StateTreeNode::Path  pathType = Path::Absolute) const

Definition at line 161 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ getChildren()

QList< StateTreeNodePtr > getChildren ( ) const

Definition at line 379 of file StateTreeNode.cpp.

◆ getClosestParentFolderOrGroupNode()

StateTreeNodePtr getClosestParentFolderOrGroupNode ( )

Definition at line 272 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ getCppExists()

bool getCppExists ( ) const

Definition at line 207 of file StateTreeNode.cpp.

◆ getDisplay()

QString getDisplay ( ) const

Definition at line 108 of file StateTreeNode.cpp.

◆ getGroup()

StatechartGroupPtr getGroup ( )

Definition at line 142 of file StateTreeNode.cpp.

◆ getNestingLevelRelativeToGroup()

int getNestingLevelRelativeToGroup ( )

Definition at line 359 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ getNodeType()

StateTreeNode::NodeType getNodeType ( )

Definition at line 147 of file StateTreeNode.cpp.

◆ getParent()

StateTreeNodePtr getParent ( ) const

Definition at line 137 of file StateTreeNode.cpp.

+ Here is the caller graph for this function:

◆ getState()

Definition at line 246 of file StateTreeNode.cpp.

◆ isFolder()

bool isFolder ( ) const

Definition at line 267 of file StateTreeNode.cpp.

+ Here is the caller graph for this function:

◆ isFolderOrGroup()

bool isFolderOrGroup ( ) const

Definition at line 257 of file StateTreeNode.cpp.

◆ isGroup()

bool isGroup ( ) const

Definition at line 262 of file StateTreeNode.cpp.

◆ isPublic()

bool isPublic ( )

Definition at line 384 of file StateTreeNode.cpp.

+ Here is the caller graph for this function:

◆ isState()

bool isState ( ) const

Definition at line 252 of file StateTreeNode.cpp.

+ Here is the caller graph for this function:

◆ removeChild()

void removeChild ( StateTreeNodePtr  child)

Definition at line 88 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ row()

int row ( ) const

Definition at line 113 of file StateTreeNode.cpp.

+ Here is the caller graph for this function:

◆ setPublic()

void setPublic ( bool  isPublic)

Definition at line 389 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ sortChildren()

void sortChildren ( )

Definition at line 83 of file StateTreeNode.cpp.

Friends And Related Function Documentation

◆ StateTreeModel

friend class StateTreeModel
friend

Definition at line 43 of file StateTreeNode.h.


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