Developer Documentation
Loading...
Searching...
No Matches
TreeItemObjectSelection Class Reference

Public Member Functions

 TreeItemObjectSelection (int _id, const QString &_name, DataType _type, TreeItemObjectSelection *_parent)
 
int id ()
 id
 
DataType dataType ()
 dataType
 
bool dataType (DataType _type)
 
int group ()
 group
 
bool isGroup ()
 
bool visible ()
 visible
 
void visible (bool _visible)
 
QString name ()
 name
 
void name (const QString &_name)
 
TreeItemObjectSelectionnext ()
 
int level ()
 
Tree : Parent nodes
int row () const
 get the row of this item from the parent
 
TreeItemObjectSelectionparent ()
 Get the parent item ( 0 if rootitem )
 
void setParent (TreeItemObjectSelection *_parent)
 Set the parent pointer.
 
Tree : Children
TreeItemObjectSelectionchildExists (int _objectId)
 Check if the element exists in the subtree of this element.
 
TreeItemObjectSelectionchildExists (QString _name)
 Check if the element exists in the subtree of this element.
 
void appendChild (TreeItemObjectSelection *child)
 add a child to this node
 
TreeItemObjectSelectionchild (int row)
 return a child
 
int childCount () const
 get the number of children
 
void removeChild (TreeItemObjectSelection *_item)
 Remove a child from this object.
 
QList< TreeItemObjectSelection * > getLeafs ()
 get all leafes of the tree below this object ( These will be all visible objects )
 
void deleteSubtree ()
 delete the whole subtree below this item ( The item itself is not touched )
 

Private Attributes

int id_
 
DataType dataType_
 
bool visible_
 
QString name_
 
TreeItemObjectSelectionparentItem_
 Parent item or 0 if rootnode.
 
QList< TreeItemObjectSelection * > childItems_
 Children of this node.
 

Detailed Description

Definition at line 53 of file TreeItemObjectSelection.hh.

Constructor & Destructor Documentation

◆ TreeItemObjectSelection()

TreeItemObjectSelection::TreeItemObjectSelection ( int  _id,
const QString &  _name,
DataType  _type,
TreeItemObjectSelection _parent 
)

Definition at line 50 of file TreeItemObjectSelection.cc.

Member Function Documentation

◆ appendChild()

void TreeItemObjectSelection::appendChild ( TreeItemObjectSelection child)

add a child to this node

Definition at line 212 of file TreeItemObjectSelection.cc.

◆ child()

TreeItemObjectSelection * TreeItemObjectSelection::child ( int  row)

return a child

Definition at line 219 of file TreeItemObjectSelection.cc.

◆ childCount()

int TreeItemObjectSelection::childCount ( ) const

get the number of children

Definition at line 226 of file TreeItemObjectSelection.cc.

◆ childExists() [1/2]

TreeItemObjectSelection * TreeItemObjectSelection::childExists ( int  _objectId)

Check if the element exists in the subtree of this element.

Definition at line 233 of file TreeItemObjectSelection.cc.

◆ childExists() [2/2]

TreeItemObjectSelection * TreeItemObjectSelection::childExists ( QString  _name)

Check if the element exists in the subtree of this element.

Definition at line 251 of file TreeItemObjectSelection.cc.

◆ dataType() [1/2]

DataType TreeItemObjectSelection::dataType ( )

dataType

Definition at line 80 of file TreeItemObjectSelection.cc.

◆ dataType() [2/2]

bool TreeItemObjectSelection::dataType ( DataType  _type)

Definition at line 70 of file TreeItemObjectSelection.cc.

◆ deleteSubtree()

void TreeItemObjectSelection::deleteSubtree ( )

delete the whole subtree below this item ( The item itself is not touched )

Definition at line 307 of file TreeItemObjectSelection.cc.

◆ getLeafs()

QList< TreeItemObjectSelection * > TreeItemObjectSelection::getLeafs ( )

get all leafes of the tree below this object ( These will be all visible objects )

Definition at line 290 of file TreeItemObjectSelection.cc.

◆ group()

int TreeItemObjectSelection::group ( )

group

Definition at line 86 of file TreeItemObjectSelection.cc.

◆ id()

int TreeItemObjectSelection::id ( )

id

Definition at line 64 of file TreeItemObjectSelection.cc.

◆ isGroup()

bool TreeItemObjectSelection::isGroup ( )

Definition at line 105 of file TreeItemObjectSelection.cc.

◆ level()

int TreeItemObjectSelection::level ( )

level of the current object ( root node has level 0)

Definition at line 174 of file TreeItemObjectSelection.cc.

◆ name() [1/2]

QString TreeItemObjectSelection::name ( )

name

Definition at line 125 of file TreeItemObjectSelection.cc.

◆ name() [2/2]

void TreeItemObjectSelection::name ( const QString &  _name)

Definition at line 131 of file TreeItemObjectSelection.cc.

◆ next()

TreeItemObjectSelection * TreeItemObjectSelection::next ( )

Get the next item of the tree (Preorder traversal of the tree)

Definition at line 139 of file TreeItemObjectSelection.cc.

◆ parent()

TreeItemObjectSelection * TreeItemObjectSelection::parent ( )

Get the parent item ( 0 if rootitem )

Definition at line 199 of file TreeItemObjectSelection.cc.

◆ removeChild()

void TreeItemObjectSelection::removeChild ( TreeItemObjectSelection _item)

Remove a child from this object.

Definition at line 269 of file TreeItemObjectSelection.cc.

◆ row()

int TreeItemObjectSelection::row ( ) const

get the row of this item from the parent

Definition at line 189 of file TreeItemObjectSelection.cc.

◆ setParent()

void TreeItemObjectSelection::setParent ( TreeItemObjectSelection _parent)

Set the parent pointer.

Definition at line 206 of file TreeItemObjectSelection.cc.

◆ visible() [1/2]

bool TreeItemObjectSelection::visible ( )

visible

Definition at line 113 of file TreeItemObjectSelection.cc.

◆ visible() [2/2]

void TreeItemObjectSelection::visible ( bool  _visible)

Definition at line 119 of file TreeItemObjectSelection.cc.

Member Data Documentation

◆ childItems_

QList<TreeItemObjectSelection*> TreeItemObjectSelection::childItems_
private

Children of this node.

Definition at line 107 of file TreeItemObjectSelection.hh.

◆ dataType_

DataType TreeItemObjectSelection::dataType_
private

Definition at line 74 of file TreeItemObjectSelection.hh.

◆ id_

int TreeItemObjectSelection::id_
private

Definition at line 73 of file TreeItemObjectSelection.hh.

◆ name_

QString TreeItemObjectSelection::name_
private

Definition at line 89 of file TreeItemObjectSelection.hh.

◆ parentItem_

TreeItemObjectSelection* TreeItemObjectSelection::parentItem_
private

Parent item or 0 if rootnode.

Definition at line 104 of file TreeItemObjectSelection.hh.

◆ visible_

bool TreeItemObjectSelection::visible_
private

Definition at line 88 of file TreeItemObjectSelection.hh.


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