StateTreeNode Class Reference

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

+ Inheritance diagram for StateTreeNode:

Public Types

enum  NodeType { Group , Folder , State }
 
enum class  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::StatePtr > getAllStatesRecursively (bool localOnly) const
 
QVector< StateTreeNodePtr > getAllSubNodesRecursively () 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< StateTreeNodePtr > getChildren () 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
 

Member Enumeration Documentation

◆ NodeType

enum NodeType
Enumerator
Group 
Folder 
State 

◆ Path

enum class Path
strong
Enumerator
Absolute 
RelativeToGroup 

Constructor & Destructor Documentation

◆ StateTreeNode()

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

◆ ~StateTreeNode()

Member Function Documentation

◆ appendChild()

void appendChild ( StateTreeNodePtr child)

◆ checkCppExists()

bool checkCppExists ( )

◆ CheckNodeName()

bool CheckNodeName ( QString name)
static

◆ child()

StateTreeNodePtr child ( int row)

◆ childCount()

int childCount ( ) const

◆ columnCount()

int columnCount ( ) const

◆ findNodeByStateName()

StateTreeNodePtr findNodeByStateName ( QString name)

◆ getAbsoluteBoostPath()

std::filesystem::path getAbsoluteBoostPath ( ) const

◆ getAllStatesRecursively()

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

◆ getAllSubNodesRecursively()

QVector< StateTreeNodePtr > getAllSubNodesRecursively ( ) const

◆ getBasename()

QString getBasename ( ) const

◆ getBoostCppFilePath()

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

◆ getBoostGeneratedHFilePath()

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

◆ getBoostHFilePath()

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

◆ getBoostPath()

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

◆ getBoostPathRelativeToGroup()

std::filesystem::path getBoostPathRelativeToGroup ( ) const

◆ getBoostXmlFilePath()

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

◆ getChildren()

QList< StateTreeNodePtr > getChildren ( ) const

◆ getClosestParentFolderOrGroupNode()

StateTreeNodePtr getClosestParentFolderOrGroupNode ( )

◆ getCppExists()

bool getCppExists ( ) const

◆ getDisplay()

QString getDisplay ( ) const

◆ getGroup()

StatechartGroupPtr getGroup ( )

◆ getNestingLevelRelativeToGroup()

int getNestingLevelRelativeToGroup ( )

◆ getNodeType()

StateTreeNode::NodeType getNodeType ( )

◆ getParent()

StateTreeNodePtr getParent ( ) const

◆ getState()

◆ isFolder()

bool isFolder ( ) const

◆ isFolderOrGroup()

bool isFolderOrGroup ( ) const

◆ isGroup()

bool isGroup ( ) const

◆ isPublic()

bool isPublic ( )

◆ isState()

bool isState ( ) const

◆ removeChild()

void removeChild ( StateTreeNodePtr child)

◆ row()

int row ( ) const

◆ setPublic()

void setPublic ( bool isPublic)

◆ sortChildren()

void sortChildren ( )

Friends And Related Symbol Documentation

◆ StateTreeModel

friend class StateTreeModel
friend

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