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

vtkPVSelectWidget Class Reference

Select different subwidgets. More...

#include <vtkPVSelectWidget.h>

Inheritance diagram for vtkPVSelectWidget:

Inheritance graph
[legend]
Collaboration diagram for vtkPVSelectWidget:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 vtkTypeRevisionMacro (vtkPVSelectWidget, vtkPVObjectWidget)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Create (vtkKWApplication *app)
void AddItem (const char *labelVal, vtkPVWidget *pvw, const char *vtkVal)
vtkPVWidgetGetPVWidget (const char *label)
void SetLabel (const char *label)
virtual int GetModifiedFlag ()
virtual void Select ()
virtual void Deselect ()
void MenuCallback ()
vtkKWWidgetGetFrame ()
virtual void Initialize ()
virtual void Trace (ofstream *file)
virtual void UpdateEnableState ()
virtual void SaveInBatchScript (ofstream *file)
virtual void UpdateVTKObjects ()
const char * GetCurrentValue ()
void SetCurrentValue (const char *val)
const char * GetCurrentVTKValue ()
const char * GetVTKValue (int i)
vtkPVSelectWidgetClonePrototype (vtkPVSource *pvSource, vtkArrayMap< vtkPVWidget *, vtkPVWidget * > *map)
virtual void Accept ()
virtual void PostAccept ()
virtual void Reset ()
virtual void ResetInternal ()

Static Public Member Functions

vtkPVSelectWidgetNew ()

Protected Member Functions

 vtkPVSelectWidget ()
 ~vtkPVSelectWidget ()
int FindIndex (const char *str, vtkStringList *list)
void SetCurrentIndex (int idx)
virtual void SetEntryLabel (const char *)
virtual char * GetEntryLabel ()
virtual vtkPVWidgetClonePrototypeInternal (vtkPVSource *pvSource, vtkArrayMap< vtkPVWidget *, vtkPVWidget * > *map)
virtual void CopyProperties (vtkPVWidget *clone, vtkPVSource *pvSource, vtkArrayMap< vtkPVWidget *, vtkPVWidget * > *map)
int ReadXMLAttributes (vtkPVXMLElement *element, vtkPVXMLPackageParser *parser)

Protected Attributes

vtkKWFrameWithLabelLabeledFrame
vtkKWMenuButtonMenu
char * EntryLabel
vtkStringListLabels
vtkStringListValues
vtkPVWidgetCollectionWidgets
int CurrentIndex

Detailed Description

Select different subwidgets.

This widget has a selection menu which will pack different pvWidgets associated with selection values. There is also an object varible assumed to have different string values for each of the entries. This widget was made for selecting clip functions or clip by scalar values.

Definition at line 42 of file vtkPVSelectWidget.h.


Constructor & Destructor Documentation

vtkPVSelectWidget::vtkPVSelectWidget  )  [protected]
 

vtkPVSelectWidget::~vtkPVSelectWidget  )  [protected]
 


Member Function Documentation

vtkPVSelectWidget* vtkPVSelectWidget::New  )  [static]
 

Reimplemented from vtkPVTracedWidget.

vtkPVSelectWidget::vtkTypeRevisionMacro vtkPVSelectWidget  ,
vtkPVObjectWidget 
 

void vtkPVSelectWidget::PrintSelf ostream &  os,
vtkIndent  indent
 

Reimplemented from vtkPVObjectWidget.

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

Create the widget.

Reimplemented from vtkPVWidget.

void vtkPVSelectWidget::AddItem const char *  labelVal,
vtkPVWidget pvw,
const char *  vtkVal
 

Add widgets to the possible selection. The vtkValue is value used to set the vtk object variable.

vtkPVWidget* vtkPVSelectWidget::GetPVWidget const char *  label  ) 
 

Access to the widgets for tracing.

void vtkPVSelectWidget::SetLabel const char *  label  ) 
 

Set the label of the menu.

virtual int vtkPVSelectWidget::GetModifiedFlag  )  [virtual]
 

Looks at children to determine modified state.

Reimplemented from vtkPVWidget.

virtual void vtkPVSelectWidget::Select  )  [virtual]
 

This method is called when the source that contains this widget is selected.

Reimplemented from vtkPVWidget.

virtual void vtkPVSelectWidget::Deselect  )  [virtual]
 

This method is called when the source that contains this widget is deselected.

Reimplemented from vtkPVWidget.

const char* vtkPVSelectWidget::GetCurrentValue  ) 
 

This is how the user can query the state of the selection. The value is the label of the widget item.

void vtkPVSelectWidget::SetCurrentValue const char *  val  ) 
 

This is how the user can query the state of the selection. The value is the label of the widget item.

void vtkPVSelectWidget::MenuCallback  ) 
 

This method gets called when the menu changes.

vtkKWWidget* vtkPVSelectWidget::GetFrame  ) 
 

All sub widgets should have this frame as their parent.

const char* vtkPVSelectWidget::GetCurrentVTKValue  ) 
 

Methods used internally by accept and reset to Set and Get the widget selection.

const char* vtkPVSelectWidget::GetVTKValue int  i  ) 
 

Methods used internally by accept and reset to Set and Get the widget selection.

vtkPVSelectWidget* vtkPVSelectWidget::ClonePrototype vtkPVSource pvSource,
vtkArrayMap< vtkPVWidget *, vtkPVWidget * > *  map
 

Creates and returns a copy of this widget. It will create a new instance of the same type as the current object using NewInstance() and then copy some necessary state parameters.

Reimplemented from vtkPVObjectWidget.

virtual void vtkPVSelectWidget::Accept  )  [virtual]
 

Called when accept button is pushed. Sets the objects variable from UI.

Implements vtkPVWidget.

virtual void vtkPVSelectWidget::PostAccept  )  [virtual]
 

Called when accept button is pushed. Sets the objects variable from UI.

Reimplemented from vtkPVWidget.

virtual void vtkPVSelectWidget::Reset  )  [virtual]
 

Called when reset button is pushed. Sets UI current value from objects variable.

Reimplemented from vtkPVWidget.

virtual void vtkPVSelectWidget::ResetInternal  )  [virtual]
 

Called when reset button is pushed. Sets UI current value from objects variable.

Reimplemented from vtkPVWidget.

virtual void vtkPVSelectWidget::Initialize  )  [virtual]
 

Calls Initialiaze() on currently selected widget.

Implements vtkPVWidget.

virtual void vtkPVSelectWidget::Trace ofstream *  file  )  [virtual]
 

This serves a dual purpose. For tracing and for saving state.

Implements vtkPVWidget.

virtual void vtkPVSelectWidget::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 vtkPVSelectWidget::SaveInBatchScript ofstream *  file  )  [virtual]
 

Save this widget to a file.

Implements vtkPVObjectWidget.

virtual void vtkPVSelectWidget::UpdateVTKObjects  )  [virtual]
 

Forwards UpdateVTKObjects to the currently selected widget.

Reimplemented from vtkPVWidget.

int vtkPVSelectWidget::FindIndex const char *  str,
vtkStringList list
[protected]
 

void vtkPVSelectWidget::SetCurrentIndex int  idx  )  [protected]
 

virtual void vtkPVSelectWidget::SetEntryLabel const char *   )  [protected, virtual]
 

virtual char* vtkPVSelectWidget::GetEntryLabel  )  [protected, virtual]
 

virtual vtkPVWidget* vtkPVSelectWidget::ClonePrototypeInternal vtkPVSource pvSource,
vtkArrayMap< vtkPVWidget *, vtkPVWidget * > *  map
[protected, virtual]
 

Reimplemented from vtkPVWidget.

virtual void vtkPVSelectWidget::CopyProperties vtkPVWidget clone,
vtkPVSource pvSource,
vtkArrayMap< vtkPVWidget *, vtkPVWidget * > *  map
[protected, virtual]
 

Reimplemented from vtkPVObjectWidget.

int vtkPVSelectWidget::ReadXMLAttributes vtkPVXMLElement element,
vtkPVXMLPackageParser parser
[protected, virtual]
 

Called by vtkPVXMLPackageParser to configure the widget from XML attributes.

Reimplemented from vtkPVObjectWidget.


Member Data Documentation

vtkKWFrameWithLabel* vtkPVSelectWidget::LabeledFrame [protected]
 

Definition at line 147 of file vtkPVSelectWidget.h.

vtkKWMenuButton* vtkPVSelectWidget::Menu [protected]
 

Definition at line 148 of file vtkPVSelectWidget.h.

char* vtkPVSelectWidget::EntryLabel [protected]
 

Definition at line 152 of file vtkPVSelectWidget.h.

vtkStringList* vtkPVSelectWidget::Labels [protected]
 

Definition at line 155 of file vtkPVSelectWidget.h.

vtkStringList* vtkPVSelectWidget::Values [protected]
 

Definition at line 156 of file vtkPVSelectWidget.h.

vtkPVWidgetCollection* vtkPVSelectWidget::Widgets [protected]
 

Definition at line 157 of file vtkPVSelectWidget.h.

int vtkPVSelectWidget::CurrentIndex [protected]
 

Definition at line 159 of file vtkPVSelectWidget.h.


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