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 Types

typedef vtkKWCoreWidget Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void AddNode (const char *parent, const char *node, const char *text)
virtual void DeleteNode (const char *node)
virtual int HasNode (const char *node)
virtual void DeleteAllNodes ()
virtual void DeleteNodeChildren (const char *node)
virtual const char * GetNodeChildren (const char *node)
virtual const char * GetNodeParent (const char *node)
virtual int IsNodeAncestor (const char *ancestor, const char *node)
virtual void MoveNode (const char *node, const char *new_parent, int pos)
virtual void SelectSingleNode (const char *node)
virtual void ClearSelection ()
virtual const char * GetSelection ()
virtual int HasSelection ()
virtual void SeeNode (const char *node)
virtual void DeleteAllNodeWindows (const char *parent)
virtual void SetOpenCommand (vtkObject *object, const char *method)
virtual void SetCloseCommand (vtkObject *object, const char *method)
virtual void UpdateEnableState ()
virtual void DisplayChildNodes (const char *node)

Static Public Member Functions

static vtkKWTreeNew ()
static int IsTypeOf (const char *type)
static vtkKWTreeSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkKWTree ()
 ~vtkKWTree ()
virtual void CreateWidget ()
virtual void InvokeSelectionChangedCommand ()
virtual void InvokeNodeParentChangedCommand (const char *node, const char *new_parent, const char *previous_parent)
virtual void UpdateDragAndDrop ()

Protected Attributes

int SelectionMode
int EnableReparenting
int UseRawNodeUserData
int UseRawNodeText
char * SelectionChangedCommand
char * NodeParentChangedCommand
vtkKWTreeInternals * Internals



enum  { SelectionChangedEvent = 10000, RightClickOnNodeEvent, NodeParentChangedEvent }
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 const char * GetNodeUserData (const char *node)
virtual void SetNodeUserData (const char *node, const char *data)
virtual int GetNodeUserDataAsInt (const char *node)
virtual void SetNodeUserDataAsInt (const char *node, int)
virtual const char * FindNodeWithUserData (const char *parent, const char *data)
virtual const char * FindNodeWithUserDataAsInt (const char *parent, int data)
virtual void SetSelectionMode (int)
virtual int GetSelectionMode ()
virtual void SetSelectionModeToSingle ()
virtual void SetSelectionModeToMultiple ()
virtual void SelectNode (const char *node)
virtual void DeselectNode (const char *node)
virtual void SelectNodeChildren (const char *node)
virtual void DeselectNodeChildren (const char *node)
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 void EnableReparentingOn ()
virtual void EnableReparentingOff ()
virtual int GetEnableReparenting ()
virtual void SetEnableReparenting (int)
virtual void SetWidth (int)
virtual int GetWidth ()
virtual void SetHeight (int)
virtual int GetHeight ()
virtual void SetNodeImageToIcon (const char *node, vtkKWIcon *icon)
virtual void SetNodeImageToPredefinedIcon (const char *node, int icon_index)
virtual void SetNodeImageToPixels (const char *node, const unsigned char *pixels, int width, int height, int pixel_size, unsigned long buffer_length=0)
virtual void SetNodeWindow (const char *node, vtkKWWidget *w)
virtual vtkKWWidgetGetNodeWindow (const char *node)
virtual void SetNodePadX (const char *node, int)
virtual int GetNodePadX (const char *node)
virtual void RedrawOnIdleOn ()
virtual void RedrawOnIdleOff ()
virtual void SetRedrawOnIdle (int)
virtual int GetRedrawOnIdle ()
virtual void LinesVisibilityOn ()
virtual void LinesVisibilityOff ()
virtual void SetLinesVisibility (int)
virtual int GetLinesVisibility ()
virtual void SelectionFillOn ()
virtual void SelectionFillOff ()
virtual void SetSelectionFill (int)
virtual int GetSelectionFill ()
virtual void GetBackgroundColor (double *r, double *g, double *b)
virtual double * GetBackgroundColor ()
virtual void SetBackgroundColor (double r, double g, double b)
virtual void SetBackgroundColor (double rgb[3])
virtual void SetHighlightThickness (int)
virtual int GetHighlightThickness ()
virtual void SetBorderWidth (int)
virtual int GetBorderWidth ()
virtual void SetRelief (int)
virtual int GetRelief ()
virtual void SetReliefToRaised ()
virtual void SetReliefToSunken ()
virtual void SetReliefToFlat ()
virtual void SetReliefToRidge ()
virtual void SetReliefToSolid ()
virtual void SetReliefToGroove ()
virtual void SetPadX (int)
virtual int GetPadX ()
virtual void SetDeltaX (int)
virtual int GetDeltaX ()
virtual void SetDeltaY (int)
virtual int GetDeltaY ()
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 SetBinding (const char *event, vtkObject *object, const char *method)
virtual void SetBinding (const char *event, const char *command)
virtual void AddBinding (const char *event, vtkObject *object, const char *method)
virtual void AddBinding (const char *event, const char *command)
virtual void RemoveBinding (const char *event)
virtual void RemoveBinding (const char *event, vtkObject *object, const char *method)
virtual void SetBindText (const char *event, vtkObject *object, const char *method)
virtual void SetDoubleClickOnNodeCommand (vtkObject *object, const char *method)
virtual void SetSingleClickOnNodeCommand (vtkObject *object, const char *method)
virtual void SetRightClickOnNodeCommand (vtkObject *object, const char *method)
virtual void SetSelectionChangedCommand (vtkObject *object, const char *method)
virtual void SetNodeParentChangedCommand (vtkObject *object, const char *method)
virtual void UseRawNodeTextOn ()
virtual void UseRawNodeTextOff ()
virtual int GetUseRawNodeText ()
virtual void SetUseRawNodeText (int)
virtual void UseRawNodeUserDataOn ()
virtual void UseRawNodeUserDataOff ()
virtual int GetUseRawNodeUserData ()
virtual void SetUseRawNodeUserData (int)
virtual void Focus ()
virtual int HasFocus ()
virtual void SelectionCallback ()
virtual void RightClickOnNodeCallback (const char *node)
virtual void KeyNavigationCallback (const char *key)
virtual void DropOverNodeCallback (const char *, const char *, const char *, const char *, const char *, const char *)

Detailed Description

tree widget

A simple tree widget

Events:
vtkKWTree::NodeParentChangedEvent vtkKWTree::RightClickOnNodeEvent vtkKWTree::SelectionChangedEvent

Definition at line 52 of file vtkKWTree.h.


Member Typedef Documentation

Reimplemented from vtkKWCoreWidget.

Definition at line 57 of file vtkKWTree.h.


Member Enumeration Documentation

anonymous enum

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
Enumerator:
SelectionChangedEvent 
RightClickOnNodeEvent 
NodeParentChangedEvent 

Definition at line 480 of file vtkKWTree.h.


Constructor & Destructor Documentation

vtkKWTree::vtkKWTree (  )  [protected]
vtkKWTree::~vtkKWTree (  )  [protected]

Member Function Documentation

static vtkKWTree* vtkKWTree::New (  )  [static]

Reimplemented from vtkKWCoreWidget.

virtual const char* vtkKWTree::GetClassName (  )  [virtual]

Reimplemented from vtkKWCoreWidget.

static int vtkKWTree::IsTypeOf ( const char *  type  )  [static]

Reimplemented from vtkKWCoreWidget.

virtual int vtkKWTree::IsA ( const char *  type  )  [virtual]

Reimplemented from vtkKWCoreWidget.

static vtkKWTree* vtkKWTree::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkKWCoreWidget.

void vtkKWTree::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Reimplemented from vtkKWCoreWidget.

virtual void vtkKWTree::AddNode ( const char *  parent,
const char *  node,
const char *  text 
) [virtual]

Add a new node identified by 'node' at the end of the children list of 'parent'. If parent is NULL, or an empty string or 'root', insert at the root of the tree automatically. Note that the 'node' parameter is the string identifier to be used later on to refer to the node. The label of the node itself is provided by the 'text' parameter. A new node is selectable and closed by default.

virtual void vtkKWTree::DeleteNode ( const char *  node  )  [virtual]

Delete a node identified by parameter 'node', which is the unique string identifier.

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

Set/Get the label of the node. The return value of GetNodeText is a pointer to a temporary buffer which contents should be copied *right away*.

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

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual int vtkKWTree::GetNodeSelectableFlag ( const char *  node  )  [virtual]

Set/Get if node can be selected.

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

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual const char* vtkKWTree::GetNodeFont ( const char *  node  )  [virtual]

Specifies the font to use when drawing a specific node. You can use predefined font names (e.g. 'system'), or you can specify a set of font attributes with a platform-independent name, for example, 'times 12 bold'. In this example, the font is specified with a three element list: the first element is the font family, the second is the size, the third is a list of style parameters (normal, bold, roman, italic, underline, overstrike). Example: 'times 12 {bold italic}'. The Times, Courier and Helvetica font families are guaranteed to exist and will be matched to the corresponding (closest) font on your system. If you are familiar with the X font names specification, you can also describe the font that way (say, '*times-medium-r-*-*-12*'). The return value of GetNodeFont is a pointer to a temporary buffer which contents should be copied *right away*.

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

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetNodeFontWeightToBold ( const char *  node  )  [virtual]

Convenience methods to set the font weight/slant for a specific node. For more control, check the SetNodeFont method.

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

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetNodeFontSlantToItalic ( const char *  node  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetNodeFontSlantToRoman ( const char *  node  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual const char* vtkKWTree::GetNodeUserData ( const char *  node  )  [virtual]

Set/Get the user data associated to the node. This can be used to bury additional data in the node. The return value of GetNodeUserData is a pointer to a temporary buffer which contents should be copied right away*.

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

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual int vtkKWTree::GetNodeUserDataAsInt ( const char *  node  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetNodeUserDataAsInt ( const char *  node,
int   
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
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 void vtkKWTree::DeleteNodeChildren ( const char *  node  )  [virtual]

Delete all child nodes of the given node

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

Get node's children as a space separated list of nodes The return value of GetNodeChildren is a pointer to a temporary buffer which contents should be copied *right away*.

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

Get node's parent The return value of GetNodeParent is a pointer to a temporary buffer which contents should be copied *right away*.

virtual int vtkKWTree::IsNodeAncestor ( const char *  ancestor,
const char *  node 
) [virtual]

Return if a node is the ancestor of another node.

virtual void vtkKWTree::MoveNode ( const char *  node,
const char *  new_parent,
int  pos 
) [virtual]

Mode a node to the children list of parent at position index. Parent can not be a descendant of node.

virtual const char* vtkKWTree::FindNodeWithUserData ( const char *  parent,
const char *  data 
) [virtual]

Find a node with a specific user data associated, starting the search among the children of a specific node (set it to NULL or 'root' to search the whole tree). Return node name if found, NULL otherwise. The return value of both methods is a pointer to a temporary buffer which contents should be copied *right away*.

virtual const char* vtkKWTree::FindNodeWithUserDataAsInt ( const char *  parent,
int  data 
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetSelectionMode ( int   )  [virtual]

Set/Get the one of several styles for manipulating the selection. Valid constants can be found in vtkKWOptions::SelectionModeType.

virtual int vtkKWTree::GetSelectionMode (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetSelectionModeToSingle (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetSelectionModeToMultiple (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SelectNode ( const char *  node  )  [virtual]

Select a node (this adds the node to the selection), deselect a node. Note that this selecting more than one node is likely not to work if the SelectionMode is not Multiple.

virtual void vtkKWTree::DeselectNode ( const char *  node  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SelectSingleNode ( const char *  node  )  [virtual]

Select a single node (any other selection is cleared first)

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 The return value of GetSelection is a pointer to a temporary buffer which contents should be copied *right away*.

virtual int vtkKWTree::HasSelection (  )  [virtual]

Return if a node is selected

virtual void vtkKWTree::SelectNodeChildren ( const char *  node  )  [virtual]

Select/Deselect all the node's children. Note that this selecting more than one node is likely not to work if the SelectionMode is not Multiple.

virtual void vtkKWTree::DeselectNodeChildren ( const char *  node  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
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]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual int vtkKWTree::IsNodeOpen ( const char *  node  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::OpenFirstNode (  )  [virtual]

Open/close the first node of the tree.

virtual void vtkKWTree::CloseFirstNode (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
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]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::EnableReparentingOn (  )  [virtual]

Specifies wether or not a node can be reparented interactively using drag and drop. Check the NodeParentChangedCommand callback and NodeParentChangedEvent to be notified about the change.

virtual void vtkKWTree::EnableReparentingOff (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual int vtkKWTree::GetEnableReparenting (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetEnableReparenting ( int   )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetWidth ( int   )  [virtual]

Set/Get the width/height.

virtual int vtkKWTree::GetWidth (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetHeight ( int   )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual int vtkKWTree::GetHeight (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetNodeImageToIcon ( const char *  node,
vtkKWIcon icon 
) [virtual]

Specifies an image to display at the left of the label of a node. The SetImageToPredefinedIcon method accepts an index to one of the predefined icon listed in vtkKWIcon. The SetImageToPixels method sets the image using pixel data. It expects a pointer to the pixels and the structure of the image, i.e. its width, height and the pixel_size (how many bytes per pixel, say 3 for RGB, or 1 for grayscale). If buffer_length = 0, it is computed automatically from the previous parameters. If it is not, it will most likely indicate that the buffer has been encoded using base64 and/or zlib. If pixel_size > 3 (i.e. RGBA), the image is blend the with background color of the widget.

virtual void vtkKWTree::SetNodeImageToPredefinedIcon ( const char *  node,
int  icon_index 
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetNodeImageToPixels ( const char *  node,
const unsigned char *  pixels,
int  width,
int  height,
int  pixel_size,
unsigned long  buffer_length = 0 
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetNodeWindow ( const char *  node,
vtkKWWidget w 
) [virtual]

Set/Get a window/widget to display at the left of the label of a node. This option overrides any image option. Note that this window/widget *has* to be a child of this tree instance.

virtual vtkKWWidget* vtkKWTree::GetNodeWindow ( const char *  node  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::DeleteAllNodeWindows ( const char *  parent  )  [virtual]

Starting with node, find all children nodes with a NodeWindow set and call Delete() and each of the corresponding widget. Use NULL or "root" to delete from the top.

virtual void vtkKWTree::SetNodePadX ( const char *  node,
int   
) [virtual]

Set/Get the distance between image or window and text of a node.

virtual int vtkKWTree::GetNodePadX ( const char *  node  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
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]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetRedrawOnIdle ( int   )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual int vtkKWTree::GetRedrawOnIdle (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::LinesVisibilityOn (  )  [virtual]

Specifies wether or not lines should be drawn between nodes.

virtual void vtkKWTree::LinesVisibilityOff (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetLinesVisibility ( int   )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual int vtkKWTree::GetLinesVisibility (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
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]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetSelectionFill ( int   )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual int vtkKWTree::GetSelectionFill (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::GetBackgroundColor ( double *  r,
double *  g,
double *  b 
) [virtual]

Set/Get the background color of the widget.

virtual double* vtkKWTree::GetBackgroundColor (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetBackgroundColor ( double  r,
double  g,
double  b 
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetBackgroundColor ( double  rgb[3]  )  [inline, virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX

Definition at line 305 of file vtkKWTree.h.

virtual void vtkKWTree::SetHighlightThickness ( int   )  [virtual]

Set/Get the highlight thickness, a non-negative value indicating the width of the highlight rectangle to draw around the outside of the widget when it has the input focus.

virtual int vtkKWTree::GetHighlightThickness (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetBorderWidth ( int   )  [virtual]

Set/Get the border width, a non-negative value indicating the width of the 3-D border to draw around the outside of the widget (if such a border is being drawn; the Relief option typically determines this).

virtual int vtkKWTree::GetBorderWidth (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetRelief ( int   )  [virtual]

Set/Get the 3-D effect desired for the widget. The value indicates how the interior of the widget should appear relative to its exterior. Valid constants can be found in vtkKWOptions::ReliefType.

virtual int vtkKWTree::GetRelief (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetReliefToRaised (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetReliefToSunken (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetReliefToFlat (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetReliefToRidge (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetReliefToSolid (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetReliefToGroove (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetPadX ( int   )  [virtual]

Set/Get the distance between image or window and text of the nodes.

virtual int vtkKWTree::GetPadX (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetDeltaX ( int   )  [virtual]

Set/Get the horizontal indentation between a node and its children.

virtual int vtkKWTree::GetDeltaX (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetDeltaY ( int   )  [virtual]

Set/Get the vertical size of the nodes.

virtual int vtkKWTree::GetDeltaY (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::GetSelectionBackgroundColor ( double *  r,
double *  g,
double *  b 
) [virtual]

Set/Get the selection foreground and background color

virtual double* vtkKWTree::GetSelectionBackgroundColor (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetSelectionBackgroundColor ( double  r,
double  g,
double  b 
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetSelectionBackgroundColor ( double  rgb[3]  )  [inline, virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX

Definition at line 362 of file vtkKWTree.h.

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

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual double* vtkKWTree::GetSelectionForegroundColor (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetSelectionForegroundColor ( double  r,
double  g,
double  b 
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetSelectionForegroundColor ( double  rgb[3]  )  [inline, virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX

Definition at line 367 of file vtkKWTree.h.

virtual void vtkKWTree::SetOpenCommand ( vtkObject object,
const char *  method 
) [virtual]

Specifies a command to associate with the widget. This command is typically invoked when the user opens a node. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command. The following parameters are also passed to the command: - path to the opened node: const char*

virtual void vtkKWTree::SetCloseCommand ( vtkObject object,
const char *  method 
) [virtual]

Specifies a command to associate with the widget. This command is typically invoked when the user closes a node. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command. The following parameters are also passed to the command: - path to the closed node: const char*

virtual void vtkKWTree::SetBinding ( const char *  event,
vtkObject object,
const char *  method 
) [virtual]

Set/add/remove a binding to a widget, i.e. the command that is invoked whenever the 'event' is triggered on the widget. SetBinding will replace any old bindings, whereas AddBinding will add the binding to the list of bindings already defined for that event. RemoveBinding can remove a specific binding or all bindings for an event. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command.

Reimplemented from vtkKWWidget.

virtual void vtkKWTree::SetBinding ( const char *  event,
const char *  command 
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX

Reimplemented from vtkKWWidget.

virtual void vtkKWTree::AddBinding ( const char *  event,
vtkObject object,
const char *  method 
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX

Reimplemented from vtkKWWidget.

virtual void vtkKWTree::AddBinding ( const char *  event,
const char *  command 
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX

Reimplemented from vtkKWWidget.

virtual void vtkKWTree::RemoveBinding ( const char *  event  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX

Reimplemented from vtkKWWidget.

virtual void vtkKWTree::RemoveBinding ( const char *  event,
vtkObject object,
const char *  method 
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX

Reimplemented from vtkKWWidget.

virtual void vtkKWTree::SetBindText ( const char *  event,
vtkObject object,
const char *  method 
) [virtual]

Specifies a command to execute whenever the event sequence given by 'event' occurs on the label of a node. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command. The following parameters are also passed to the command: - path to the node for which the event occured: const char*

virtual void vtkKWTree::SetDoubleClickOnNodeCommand ( vtkObject object,
const char *  method 
) [virtual]

Set the command for single/double/right click on a node. This, in turn, just calls SetBindText. WARNING: SetSingleClickOnNodeCommand will override the default behaviour that selects a node when it is clicked on. It is therefore up to the user to select the node if needed. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command. The following parameters are also passed to the command: - path to the node for which the event occured: const char*

virtual void vtkKWTree::SetSingleClickOnNodeCommand ( vtkObject object,
const char *  method 
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetRightClickOnNodeCommand ( vtkObject object,
const char *  method 
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetSelectionChangedCommand ( vtkObject object,
const char *  method 
) [virtual]

Specifies a command to associate with the widget. This command is typically invoked when the selection changes. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command.

virtual void vtkKWTree::SetNodeParentChangedCommand ( vtkObject object,
const char *  method 
) [virtual]

Specifies a command to associate with the widget. This command is typically invoked when a node is reparented interactively. The 'object' argument is the object that will have the method called on it. The 'method' argument is the name of the method to be called and any arguments in string form. If the object is NULL, the method is still evaluated as a simple command. The following parameters are also passed to the command: - path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char*

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.

virtual void vtkKWTree::UseRawNodeTextOn (  )  [virtual]

Specifies if the node text should be stored in a raw format, i.e. without converting from the application's CharacterEncoding to the internal Tcl/Tk encoding. Off by default.

virtual void vtkKWTree::UseRawNodeTextOff (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual int vtkKWTree::GetUseRawNodeText (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetUseRawNodeText ( int   )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::UseRawNodeUserDataOn (  )  [virtual]

Specifies if the node user data should be stored in a raw format, i.e. without converting from the application's CharacterEncoding to the internal Tcl/Tk encoding. Off by default.

virtual void vtkKWTree::UseRawNodeUserDataOff (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual int vtkKWTree::GetUseRawNodeUserData (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::SetUseRawNodeUserData ( int   )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::Focus (  )  [virtual]

Set focus to this widget.

Reimplemented from vtkKWWidget.

virtual int vtkKWTree::HasFocus (  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX

Reimplemented from vtkKWWidget.

virtual void vtkKWTree::SelectionCallback (  )  [virtual]

Callbacks. Internal, do not use.

virtual void vtkKWTree::RightClickOnNodeCallback ( const char *  node  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::KeyNavigationCallback ( const char *  key  )  [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::DropOverNodeCallback ( const char *  ,
const char *  ,
const char *  ,
const char *  ,
const char *  ,
const char *   
) [virtual]

Events. The SelectionChangedEvent is triggered when the selection is changed (i.e. one or more node(s) are selected/deselected). It is similar in concept as the 'SelectionChangedCommand' but can be used by multiple listeners/observers at a time. The RightClickOnNodeEvent event is triggered when right-clicking on a specific node. The following parameters are also passed as client data for RightClickOnNodeEvent: - path to the node: const char* The following parameters are also passed as client data for NodeParentChangedEvent:

  • path to the node that was reparented: const char* - path to the node's new parent: const char* - path to the node's previous parent: const char* BTX
virtual void vtkKWTree::DisplayChildNodes ( const char *  node  )  [virtual]

Automatically scroll the window to show most, if not all, sub-directories of the given node

virtual void vtkKWTree::CreateWidget (  )  [protected, virtual]

Create the widget.

Reimplemented from vtkKWCoreWidget.

virtual void vtkKWTree::InvokeSelectionChangedCommand (  )  [protected, virtual]
virtual void vtkKWTree::InvokeNodeParentChangedCommand ( const char *  node,
const char *  new_parent,
const char *  previous_parent 
) [protected, virtual]
virtual void vtkKWTree::UpdateDragAndDrop (  )  [protected, virtual]

Member Data Documentation

int vtkKWTree::SelectionMode [protected]

Definition at line 542 of file vtkKWTree.h.

Definition at line 543 of file vtkKWTree.h.

Definition at line 544 of file vtkKWTree.h.

int vtkKWTree::UseRawNodeText [protected]

Definition at line 545 of file vtkKWTree.h.

Definition at line 547 of file vtkKWTree.h.

Definition at line 550 of file vtkKWTree.h.

vtkKWTreeInternals* vtkKWTree::Internals [protected]

PIMPL Encapsulation for STL containers

Reimplemented from vtkKWCoreWidget.

Definition at line 558 of file vtkKWTree.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Tue Apr 27 02:38:39 2010 for KWWidgets by  doxygen 1.6.1