vtkTree - Generic tree.
Super Class: vtkReferenceCount
Description:
OK Here is the approach: Tree objects are similar to vtkCollections, but they manage generic pointers, and have multiple levels (see note1). Trees have internal elements (nodes and leaves) that are not subclasses of vtkObject. Memory usage is conhsidered an important issue, especially for leaves. There are two methods for accessing the data in tree: 1: Slow and stable: Tree allow traversal up and down hierachy. 2: Fast but risky: Internal objects can be delt with directly. This is risky because changes to the internal tree code could Affect other objects.
Methods:
void vtkTree () | |
void vtkTree () | |
const char *GetClassName () | |
static vtkTree *New () | |
void PrintSelf (unknown & ,vtkIndent ) | |
int GetNumberOfChildren () | |
int GetCurrentLevel () | |
int MoveToChild (int ) | |
int MoveToParent () | |
void MoveToLevel (int ) | |
int AddNewNode () | |
int AddNewLeaf () | |
void SetItem (void *) | |
void *GetItem () | |
int GetNumberOfItems () | |
void *GetItem (int ) | |
int CutChild (int ,vtkTree *) | |
int PasteChild (vtkTree * ,int ) | |
void DeleteElement (vtkTreeElement *) | |
void DeleteItem (void *) | |
void PrintElement (unknown & ,vtkIndent ,vtkTreeElement *) | |
void PrintItem (unknown & ,vtkIndent ,void *) |
Detailed Method Descriptions: