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 51 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 47 of file StateTreeNode.cpp.

Member Function Documentation

◆ appendChild()

void appendChild ( StateTreeNodePtr  child)

Definition at line 53 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ checkCppExists()

bool checkCppExists ( )

Definition at line 247 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 415 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ child()

StateTreeNodePtr child ( int  row)

Definition at line 104 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 110 of file StateTreeNode.cpp.

◆ columnCount()

int columnCount ( ) const

Definition at line 116 of file StateTreeNode.cpp.

◆ findNodeByStateName()

StateTreeNodePtr findNodeByStateName ( QString  name)

Definition at line 324 of file StateTreeNode.cpp.

◆ getAbsoluteBoostPath()

std::filesystem::path getAbsoluteBoostPath ( ) const

Definition at line 177 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 363 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ getAllSubNodesRecursively()

QVector< StateTreeNodePtr > getAllSubNodesRecursively ( ) const

Definition at line 345 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ getBasename()

QString getBasename ( ) const

Definition at line 171 of file StateTreeNode.cpp.

◆ getBoostCppFilePath()

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

Definition at line 194 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 222 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 208 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 259 of file StateTreeNode.cpp.

◆ getBoostPathRelativeToGroup()

std::filesystem::path getBoostPathRelativeToGroup ( ) const

Definition at line 265 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 183 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ getChildren()

QList< StateTreeNodePtr > getChildren ( ) const

Definition at line 424 of file StateTreeNode.cpp.

◆ getClosestParentFolderOrGroupNode()

StateTreeNodePtr getClosestParentFolderOrGroupNode ( )

Definition at line 310 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ getCppExists()

bool getCppExists ( ) const

Definition at line 236 of file StateTreeNode.cpp.

◆ getDisplay()

QString getDisplay ( ) const

Definition at line 122 of file StateTreeNode.cpp.

◆ getGroup()

StatechartGroupPtr getGroup ( )

Definition at line 159 of file StateTreeNode.cpp.

◆ getNestingLevelRelativeToGroup()

int getNestingLevelRelativeToGroup ( )

Definition at line 404 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ getNodeType()

StateTreeNode::NodeType getNodeType ( )

Definition at line 165 of file StateTreeNode.cpp.

◆ getParent()

StateTreeNodePtr getParent ( ) const

Definition at line 153 of file StateTreeNode.cpp.

+ Here is the caller graph for this function:

◆ getState()

Definition at line 280 of file StateTreeNode.cpp.

◆ isFolder()

bool isFolder ( ) const

Definition at line 304 of file StateTreeNode.cpp.

+ Here is the caller graph for this function:

◆ isFolderOrGroup()

bool isFolderOrGroup ( ) const

Definition at line 292 of file StateTreeNode.cpp.

◆ isGroup()

bool isGroup ( ) const

Definition at line 298 of file StateTreeNode.cpp.

◆ isPublic()

bool isPublic ( )

Definition at line 430 of file StateTreeNode.cpp.

+ Here is the caller graph for this function:

◆ isState()

bool isState ( ) const

Definition at line 286 of file StateTreeNode.cpp.

+ Here is the caller graph for this function:

◆ removeChild()

void removeChild ( StateTreeNodePtr  child)

Definition at line 98 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ row()

int row ( ) const

Definition at line 128 of file StateTreeNode.cpp.

+ Here is the caller graph for this function:

◆ setPublic()

void setPublic ( bool  isPublic)

Definition at line 436 of file StateTreeNode.cpp.

+ Here is the call graph for this function:

◆ sortChildren()

void sortChildren ( )

Definition at line 92 of file StateTreeNode.cpp.

Friends And Related Function Documentation

◆ StateTreeModel

friend class StateTreeModel
friend

Definition at line 42 of file StateTreeNode.h.


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