#include <itkTreeNode.h>
Inheritance diagram for itk::TreeNode< TValueType >:


Public Types | |
| typedef Object | Superclass |
| typedef TreeNode< TValueType > | Self |
| typedef SmartPointer< Self > | Pointer |
| typedef SmartPointer< const Self > | ConstPointer |
| typedef std::vector< Pointer > | ChildrenListType |
Public Member Functions | |
| virtual const char * | GetNameOfClass () const |
| const TValueType & | Get () const |
| TValueType | Set (const TValueType data) |
| TreeNode< TValueType > * | GetChild (int number) const |
| TreeNode< TValueType > * | GetParent () const |
| bool | HasChildren () const |
| bool | HasParent () const |
| void | SetParent (TreeNode< TValueType > *n) |
| int | CountChildren () const |
| bool | Remove (TreeNode< TValueType > *n) |
| unsigned int | GetNumberOfChildren (unsigned int depth=0, char *name=NULL) const |
| bool | ReplaceChild (TreeNode< TValueType > *oldChild, TreeNode< TValueType > *newChild) |
| int | ChildPosition (const TreeNode< TValueType > *node) const |
| int | ChildPosition (TValueType node) const |
| void | AddChild (TreeNode< TValueType > *node) |
| virtual void | AddChild (int number, TreeNode< TValueType > *node) |
| virtual ChildrenListType * | GetChildren (unsigned int depth=0, char *name=NULL) const |
| virtual ChildrenListType & | GetChildrenList () |
Static Public Member Functions | |
| Pointer | New () |
Protected Member Functions | |
| TreeNode () | |
| virtual | ~TreeNode () |
Protected Attributes | |
| TValueType | m_Data |
| Self * | m_Parent |
| ChildrenListType | m_Children |
This class derives from the Object class.
The class is templated over the type of the elements.
Template parameters for class TreeNode:
Definition at line 41 of file itkTreeNode.h.
|
|||||
|
Reimplemented in itk::SpatialObjectTreeNode< TDimension >. Definition at line 51 of file itkTreeNode.h. |
|
|||||
|
Reimplemented from itk::Object. Reimplemented in itk::SpatialObjectTreeNode< TDimension >. Definition at line 50 of file itkTreeNode.h. |
|
|||||
|
Reimplemented from itk::Object. Reimplemented in itk::SpatialObjectTreeNode< TDimension >. Definition at line 49 of file itkTreeNode.h. |
|
|||||
|
Smart pointer typedef support. Reimplemented from itk::Object. Reimplemented in itk::SpatialObjectTreeNode< TDimension >. Definition at line 48 of file itkTreeNode.h. |
|
|||||
|
Standard typedefs Reimplemented from itk::Object. Reimplemented in itk::SpatialObjectTreeNode< TDimension >. Definition at line 47 of file itkTreeNode.h. |
|
|||||||||
|
Set the data of the node |
|
|||||||||
|
|
|
||||||||||||||||
|
Add a child to the node and specify the number in the children list |
|
||||||||||
|
Add a child to the node |
|
||||||||||
|
Return the child position given a value |
|
||||||||||
|
Return the child position given a node |
|
|||||||||
|
Return the number of children |
|
|||||||||
|
Get the value of the node |
|
||||||||||
|
Get the child node |
|
||||||||||||||||
|
Get the children list Reimplemented in itk::SpatialObjectTreeNode< TDimension >. |
|
|||||||||
|
Get the internal list of children Definition at line 108 of file itkTreeNode.h. |
|
|||||||||
|
Run-time type information (and related methods). Reimplemented from itk::Object. Reimplemented in itk::SpatialObjectTreeNode< TDimension >. |
|
||||||||||||||||
|
Get the number of children given a name and depth |
|
|||||||||
|
Get the parent node |
|
|||||||||
|
Return true if the node has children |
|
|||||||||
|
Return true if the node has a parent |
|
|||||||||
|
Method for creation through the object factory. Reimplemented from itk::Object. Reimplemented in itk::SpatialObjectTreeNode< TDimension >. |
|
||||||||||
|
Remove a node from the node |
|
||||||||||||||||
|
Replace a given child by a new one |
|
||||||||||
|
Set the current value of the node |
|
||||||||||
|
Set the parent of the node |
|
|||||
|
Definition at line 119 of file itkTreeNode.h. |
|
|||||
|
Definition at line 117 of file itkTreeNode.h. |
|
|||||
|
Definition at line 118 of file itkTreeNode.h. |
1.3.5 written by Dimitri van Heesch,
© 1997-2000