Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkKWTree Class Reference

tree widget More...

#include <vtkKWTree.h>

Inheritance diagram for vtkKWTree:

Inheritance graph
[legend]
Collaboration diagram for vtkKWTree:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vtkTypeRevisionMacro (vtkKWTree, vtkKWCoreWidget)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Create (vtkKWApplication *app)
virtual void SetSelectionToNode (const char *node)
virtual void ClearSelection ()
virtual const char * GetSelection ()
virtual int HasSelection ()
virtual void SeeNode (const char *node)
virtual int HasNode (const char *node)
virtual void DeleteAllNodes ()
virtual const char * GetNodeChildren (const char *node)
virtual const char * GetNodeParent (const char *node)
virtual void SetOpenCommand (vtkObject *obj, const char *method)
virtual void SetCloseCommand (vtkObject *obj, const char *method)
virtual void UpdateEnableState ()
virtual void AddNode (const char *parent, const char *node, const char *text=NULL, const char *data=NULL, int is_open=0, int is_selectable=1)
virtual void OpenNode (const char *node)
virtual void CloseNode (const char *node)
virtual int IsNodeOpen (const char *node)
virtual void OpenFirstNode ()
virtual void CloseFirstNode ()
virtual void OpenTree (const char *node)
virtual void CloseTree (const char *node)
virtual const char * GetNodeUserData (const char *node)
virtual void SetNodeUserData (const char *node, const char *data)
virtual const char * GetNodeText (const char *node)
virtual void SetNodeText (const char *node, const char *text)
virtual int GetNodeSelectableFlag (const char *node)
virtual void SetNodeSelectableFlag (const char *node, int flag)
virtual const char * GetNodeFont (const char *node)
virtual void SetNodeFont (const char *node, const char *font)
virtual void SetNodeFontWeightToBold (const char *node)
virtual void SetNodeFontWeightToNormal (const char *node)
virtual void SetNodeFontSlantToItalic (const char *node)
virtual void SetNodeFontSlantToRoman (const char *node)
virtual void SetWidth (int)
virtual int GetWidth ()
virtual void SetHeight (int)
virtual int GetHeight ()
virtual void RedrawOnIdleOn ()
virtual void RedrawOnIdleOff ()
virtual void SetRedrawOnIdle (int)
virtual int GetRedrawOnIdle ()
virtual void SelectionFillOn ()
virtual void SelectionFillOff ()
virtual void SetSelectionFill (int)
virtual int GetSelectionFill ()
virtual void GetSelectionBackgroundColor (double *r, double *g, double *b)
virtual double * GetSelectionBackgroundColor ()
virtual void SetSelectionBackgroundColor (double r, double g, double b)
virtual void SetSelectionBackgroundColor (double rgb[3])
virtual void GetSelectionForegroundColor (double *r, double *g, double *b)
virtual double * GetSelectionForegroundColor ()
virtual void SetSelectionForegroundColor (double r, double g, double b)
virtual void SetSelectionForegroundColor (double rgb[3])
virtual void SetBindText (const char *event, vtkObject *obj, const char *method)
virtual void SetDoubleClickOnNodeCommand (vtkObject *obj, const char *method)
virtual void SetSingleClickOnNodeCommand (vtkObject *obj, const char *method)
virtual void SetSelectionChangedCommand (vtkObject *obj, const char *method)

Static Public Member Functions

vtkKWTreeNew ()

Protected Member Functions

 vtkKWTree ()
 ~vtkKWTree ()

Detailed Description

tree widget

A simple tree widget

Definition at line 47 of file vtkKWTree.h.


Constructor & Destructor Documentation

vtkKWTree::vtkKWTree  )  [inline, protected]
 

Definition at line 213 of file vtkKWTree.h.

vtkKWTree::~vtkKWTree  )  [inline, protected]
 

Definition at line 214 of file vtkKWTree.h.


Member Function Documentation

vtkKWTree* vtkKWTree::New  )  [static]
 

Reimplemented from vtkKWCoreWidget.

vtkKWTree::vtkTypeRevisionMacro vtkKWTree  ,
vtkKWCoreWidget 
 

void vtkKWTree::PrintSelf ostream &  os,
vtkIndent  indent
 

Reimplemented from vtkKWCoreWidget.

virtual void vtkKWTree::Create vtkKWApplication app  )  [virtual]
 

Create the widget.

Reimplemented from vtkKWCoreWidget.

virtual void vtkKWTree::SetSelectionToNode const char *  node  )  [virtual]
 

Set the selection to node

virtual void vtkKWTree::ClearSelection  )  [virtual]
 

Clear the selection

virtual const char* vtkKWTree::GetSelection  )  [virtual]
 

Return the selection as a list of space separated selected nodes

virtual int vtkKWTree::HasSelection  )  [virtual]
 

Return if a node is selected

virtual void vtkKWTree::AddNode const char *  parent,
const char *  node,
const char *  text = NULL,
const char *  data = NULL,
int  is_open = 0,
int  is_selectable = 1
[virtual]
 

Add a new node identified by 'node' at the end of the children list of 'parent'. If parent is NULL, or an emptry string or 'root', insert at the root of the tree automatically. Provides its text (i.e. the label displayed at the node position), an optional user-data field to associate with that node, its open and selectable status. On a Pentium M 1.8 GHz, a Debug build could fill about 5000 nodes/s.

virtual void vtkKWTree::SeeNode const char *  node  )  [virtual]
 

Arrange the tree to see a given node

virtual void vtkKWTree::OpenNode const char *  node  )  [virtual]
 

Open/close a node.

virtual void vtkKWTree::CloseNode const char *  node  )  [virtual]
 

Open/close a node.

virtual int vtkKWTree::IsNodeOpen const char *  node  )  [virtual]
 

Open/close a node.

virtual void vtkKWTree::OpenFirstNode  )  [virtual]
 

Open/close the first node of the tree.

virtual void vtkKWTree::CloseFirstNode  )  [virtual]
 

Open/close the first node of the tree.

virtual void vtkKWTree::OpenTree const char *  node  )  [virtual]
 

Open/close a tree, i.e. a node and all its children.

virtual void vtkKWTree::CloseTree const char *  node  )  [virtual]
 

Open/close a tree, i.e. a node and all its children.

virtual int vtkKWTree::HasNode const char *  node  )  [virtual]
 

Query if given node exists in the tree

virtual void vtkKWTree::DeleteAllNodes  )  [virtual]
 

Delete all nodes

virtual const char* vtkKWTree::GetNodeChildren const char *  node  )  [virtual]
 

Get node's children as a space separated list of nodes

virtual const char* vtkKWTree::GetNodeParent const char *  node  )  [virtual]
 

Get node's parent

virtual const char* vtkKWTree::GetNodeUserData const char *  node  )  [virtual]
 

Set/Get the parameters

virtual void vtkKWTree::SetNodeUserData const char *  node,
const char *  data
[virtual]
 

Set/Get the parameters

virtual const char* vtkKWTree::GetNodeText const char *  node  )  [virtual]
 

Set/Get the parameters

virtual void vtkKWTree::SetNodeText const char *  node,
const char *  text
[virtual]
 

Set/Get the parameters

virtual int vtkKWTree::GetNodeSelectableFlag const char *  node  )  [virtual]
 

Set/Get the parameters

virtual void vtkKWTree::SetNodeSelectableFlag const char *  node,
int  flag
[virtual]
 

Set/Get the parameters

virtual const char* vtkKWTree::GetNodeFont const char *  node  )  [virtual]
 

Set/Get the parameters

virtual void vtkKWTree::SetNodeFont const char *  node,
const char *  font
[virtual]
 

Set/Get the parameters

virtual void vtkKWTree::SetNodeFontWeightToBold const char *  node  )  [virtual]
 

Set/Get the parameters

virtual void vtkKWTree::SetNodeFontWeightToNormal const char *  node  )  [virtual]
 

Set/Get the parameters

virtual void vtkKWTree::SetNodeFontSlantToItalic const char *  node  )  [virtual]
 

Set/Get the parameters

virtual void vtkKWTree::SetNodeFontSlantToRoman const char *  node  )  [virtual]
 

Set/Get the parameters

virtual void vtkKWTree::SetWidth int   )  [virtual]
 

Set/Get the width/height.

virtual int vtkKWTree::GetWidth  )  [virtual]
 

Set/Get the width/height.

virtual void vtkKWTree::SetHeight int   )  [virtual]
 

Set/Get the width/height.

virtual int vtkKWTree::GetHeight  )  [virtual]
 

Set/Get the width/height.

virtual void vtkKWTree::RedrawOnIdleOn  )  [virtual]
 

Specifies wether or not the tree should be redrawn when entering idle. Set it to false if you call update while modifying the tree

virtual void vtkKWTree::RedrawOnIdleOff  )  [virtual]
 

Specifies wether or not the tree should be redrawn when entering idle. Set it to false if you call update while modifying the tree

virtual void vtkKWTree::SetRedrawOnIdle int   )  [virtual]
 

Specifies wether or not the tree should be redrawn when entering idle. Set it to false if you call update while modifying the tree

virtual int vtkKWTree::GetRedrawOnIdle  )  [virtual]
 

Specifies wether or not the tree should be redrawn when entering idle. Set it to false if you call update while modifying the tree

virtual void vtkKWTree::SelectionFillOn  )  [virtual]
 

If true, the selection box will be drawn across the entire tree from left-to-right instead of just around the item text.

virtual void vtkKWTree::SelectionFillOff  )  [virtual]
 

If true, the selection box will be drawn across the entire tree from left-to-right instead of just around the item text.

virtual void vtkKWTree::SetSelectionFill int   )  [virtual]
 

If true, the selection box will be drawn across the entire tree from left-to-right instead of just around the item text.

virtual int vtkKWTree::GetSelectionFill  )  [virtual]
 

If true, the selection box will be drawn across the entire tree from left-to-right instead of just around the item text.

virtual void vtkKWTree::GetSelectionBackgroundColor double *  r,
double *  g,
double *  b
[virtual]
 

Set/Get the selection foreground and background color

virtual double* vtkKWTree::GetSelectionBackgroundColor  )  [virtual]
 

Set/Get the selection foreground and background color

virtual void vtkKWTree::SetSelectionBackgroundColor double  r,
double  g,
double  b
[virtual]
 

Set/Get the selection foreground and background color

virtual void vtkKWTree::SetSelectionBackgroundColor double  rgb[3]  )  [inline, virtual]
 

Set/Get the selection foreground and background color

Definition at line 163 of file vtkKWTree.h.

virtual void vtkKWTree::GetSelectionForegroundColor double *  r,
double *  g,
double *  b
[virtual]
 

Set/Get the selection foreground and background color

virtual double* vtkKWTree::GetSelectionForegroundColor  )  [virtual]
 

Set/Get the selection foreground and background color

virtual void vtkKWTree::SetSelectionForegroundColor double  r,
double  g,
double  b
[virtual]
 

Set/Get the selection foreground and background color

virtual void vtkKWTree::SetSelectionForegroundColor double  rgb[3]  )  [inline, virtual]
 

Set/Get the selection foreground and background color

Definition at line 168 of file vtkKWTree.h.

virtual void vtkKWTree::SetOpenCommand vtkObject *  obj,
const char *  method
[virtual]
 

Set the method to be called when the user opens a node. The path of the opened node is appended to the command.

virtual void vtkKWTree::SetCloseCommand vtkObject *  obj,
const char *  method
[virtual]
 

Set the method to be called when the user closes a node. The path of the closed node is appended to the command.

virtual void vtkKWTree::SetBindText const char *  event,
vtkObject *  obj,
const char *  method
[virtual]
 

Associates a object/method to execute whenever the event sequence given by 'event' occurs on the label of a node. The node idenfier on which the event occurs is appended to the command.

virtual void vtkKWTree::SetDoubleClickOnNodeCommand vtkObject *  obj,
const char *  method
[virtual]
 

Convenience method to set the callback for single click and double click on a node. This, in turn, just calls SetBindText. The node idenfier on which the event occurs is appended to the command.

virtual void vtkKWTree::SetSingleClickOnNodeCommand vtkObject *  obj,
const char *  method
[virtual]
 

Convenience method to set the callback for single click and double click on a node. This, in turn, just calls SetBindText. The node idenfier on which the event occurs is appended to the command.

virtual void vtkKWTree::SetSelectionChangedCommand vtkObject *  obj,
const char *  method
[virtual]
 

Set the callback to invoke when the selection changes.

virtual void vtkKWTree::UpdateEnableState  )  [virtual]
 

Update the "enable" state of the object and its internal parts. Depending on different Ivars (this->Enabled, the application's Limited Edition Mode, etc.), the "enable" state of the object is updated and propagated to its internal parts/subwidgets. This will, for example, enable/disable parts of the widget UI, enable/disable the visibility of 3D widgets, etc.

Reimplemented from vtkKWWidget.


The documentation for this class was generated from the following file:
Generated on Tue May 30 12:46:13 2006 for ParaView by doxygen 1.3.5