Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes

vtkKWEPaintbrushSelectionWidget Class Reference

#include <vtkKWEPaintbrushSelectionWidget.h>

Inheritance diagram for vtkKWEPaintbrushSelectionWidget:
Inheritance graph
[legend]
Collaboration diagram for vtkKWEPaintbrushSelectionWidget:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void SetEnabled (int)
void SetRepresentation (vtkKWEPaintbrushSelectionRepresentation *r)
virtual void CreateDefaultRepresentation ()
virtual void DeleteSelectedSketches ()
virtual void DeepCopy (vtkAbstractWidget *)

 vtkTypeRevisionMacro (vtkKWEPaintbrushSelectionWidget, vtkKWEAbstractPaintbrushWidget)
void PrintSelf (ostream &os, vtkIndent indent)

virtual void SetEnableDragAndDrop (int)
virtual int GetEnableDragAndDrop ()
virtual void EnableDragAndDropOn ()
virtual void EnableDragAndDropOff ()

virtual vtkCallbackCommandGetEventCallbackCommand ()

Static Public Member Functions

static
vtkKWEPaintbrushSelectionWidget
New ()

Protected Types

enum  { Disabled = 10000, BeginSelecting, EndSelecting, None }

Protected Member Functions

 vtkKWEPaintbrushSelectionWidget ()
 ~vtkKWEPaintbrushSelectionWidget ()

int SelectSketchAction (vtkKWEPaintbrushSelectionWidget *dispatcher)
int UnselectSketchAction (vtkKWEPaintbrushSelectionWidget *dispatcher)
int SelectAllSketchesAction (vtkKWEPaintbrushSelectionWidget *dispatcher)
int UnSelectAllSketchesAction (vtkKWEPaintbrushSelectionWidget *dispatcher)
int ReleaseSelectAction (vtkKWEPaintbrushSelectionWidget *dispatcher)
int DeleteSelectionAction (vtkKWEPaintbrushSelectionWidget *dispatcher)
int MergeSelectionAction (vtkKWEPaintbrushSelectionWidget *dispatcher)

Static Protected Member Functions

static void BeginToggleSelectSketchCallback (vtkAbstractWidget *)
static void EndToggleSelectSketchCallback (vtkAbstractWidget *)
static void DeleteSelectionCallback (vtkAbstractWidget *)
static void MergeSelectionCallback (vtkAbstractWidget *)
static void SelectAllSketchesCallback (vtkAbstractWidget *)
static void UnSelectAllSketchesCallback (vtkAbstractWidget *)
static void ToggleSelectAllSketchesCallback (vtkAbstractWidget *)
static void MoveCallback (vtkAbstractWidget *)

Protected Attributes

int WidgetState
vtkKWEPaintbrushSketchMergedSketch
int RemoveSketchesDuringMerge
int EnableDragAndDrop

Detailed Description

Definition at line 36 of file vtkKWEPaintbrushSelectionWidget.h.


Member Enumeration Documentation

anonymous enum [protected]

States BTX

Enumerator:
Disabled 
BeginSelecting 
EndSelecting 
None 

Definition at line 98 of file vtkKWEPaintbrushSelectionWidget.h.


Constructor & Destructor Documentation

vtkKWEPaintbrushSelectionWidget::vtkKWEPaintbrushSelectionWidget (  )  [protected]
vtkKWEPaintbrushSelectionWidget::~vtkKWEPaintbrushSelectionWidget (  )  [protected]

Member Function Documentation

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

Instantiate this class.

Reimplemented from vtkObject.

vtkKWEPaintbrushSelectionWidget::vtkTypeRevisionMacro ( vtkKWEPaintbrushSelectionWidget  ,
vtkKWEAbstractPaintbrushWidget   
)

Standard methods for a VTK class.

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

Standard methods for a VTK class.

Reimplemented from vtkKWEAbstractPaintbrushWidget.

virtual void vtkKWEPaintbrushSelectionWidget::SetEnabled ( int   )  [virtual]

The method for activiating and deactiviating this widget. This method must be overridden because it is a composite widget and does more than its superclass' vtkAbstractWidget::SetEnabled() method.

Reimplemented from vtkAbstractWidget.

void vtkKWEPaintbrushSelectionWidget::SetRepresentation ( vtkKWEPaintbrushSelectionRepresentation r  ) 

Specify an instance of vtkWidgetRepresentation used to represent this widget in the scene. Note that the representation is a subclass of vtkProp so it can be added to the renderer independent of the widget.

virtual void vtkKWEPaintbrushSelectionWidget::CreateDefaultRepresentation (  )  [virtual]

Method to satisfy the superclass API. Create the default vtkKWEPaintbrushRepresentation if one is not set.

Implements vtkAbstractWidget.

virtual void vtkKWEPaintbrushSelectionWidget::SetEnableDragAndDrop ( int   )  [virtual]

The widget by default supports drag and drop merge of sketches. You may enable/disable this

virtual int vtkKWEPaintbrushSelectionWidget::GetEnableDragAndDrop (  )  [virtual]

The widget by default supports drag and drop merge of sketches. You may enable/disable this

virtual void vtkKWEPaintbrushSelectionWidget::EnableDragAndDropOn (  )  [virtual]

The widget by default supports drag and drop merge of sketches. You may enable/disable this

virtual void vtkKWEPaintbrushSelectionWidget::EnableDragAndDropOff (  )  [virtual]

The widget by default supports drag and drop merge of sketches. You may enable/disable this

virtual void vtkKWEPaintbrushSelectionWidget::DeleteSelectedSketches (  )  [virtual]

Delete selected sketches.

virtual void vtkKWEPaintbrushSelectionWidget::DeepCopy ( vtkAbstractWidget  )  [virtual]

Merge sketches into supplied sketch. Old sketches virtual void MergeSelectedSketches( vtkKWEPaintbrushSketch * s );

Synchronize states etc.

virtual vtkCallbackCommand* vtkKWEPaintbrushSelectionWidget::GetEventCallbackCommand (  )  [virtual]

INTERNAL - Do not use To be used by the vtkKWEPaintbrushWidget to propagate Abort events from the callback command, since this widget is meant to be used as a child of vtkKWEPaintbrushWidget

static void vtkKWEPaintbrushSelectionWidget::BeginToggleSelectSketchCallback ( vtkAbstractWidget  )  [static, protected]

Callback interface to tie ends with the CallbackMapper for the events invoked by this widget. Note the seperation of "Callbacks" and "Actions". The callbacks are invoked in response to events from the RenderWindowInteractor. They are then dispatched to the WidgetGroup, who inturn calls the corresponding "Actions" on each of the widgets in the group. As a rule of thumb, the mapping of "Callbacks" is to "Events" from the Callbackmapper. The mapping of "Actions" is meant to be one pertinent to the geometry changes on the widget's representation. For instance a MouseMoveEvent should map to a "MoveCallback". This can, depending on the state of the widget, trigger any of three Actions: HoverAction, DrawAction, ResizeAction. This is done, so that you can have multiple widgets, say a seed widget drawn on 3 render windows and have them all synchronized, if they belong to the same group.

static void vtkKWEPaintbrushSelectionWidget::EndToggleSelectSketchCallback ( vtkAbstractWidget  )  [static, protected]

Callback interface to tie ends with the CallbackMapper for the events invoked by this widget. Note the seperation of "Callbacks" and "Actions". The callbacks are invoked in response to events from the RenderWindowInteractor. They are then dispatched to the WidgetGroup, who inturn calls the corresponding "Actions" on each of the widgets in the group. As a rule of thumb, the mapping of "Callbacks" is to "Events" from the Callbackmapper. The mapping of "Actions" is meant to be one pertinent to the geometry changes on the widget's representation. For instance a MouseMoveEvent should map to a "MoveCallback". This can, depending on the state of the widget, trigger any of three Actions: HoverAction, DrawAction, ResizeAction. This is done, so that you can have multiple widgets, say a seed widget drawn on 3 render windows and have them all synchronized, if they belong to the same group.

static void vtkKWEPaintbrushSelectionWidget::DeleteSelectionCallback ( vtkAbstractWidget  )  [static, protected]

Callback interface to tie ends with the CallbackMapper for the events invoked by this widget. Note the seperation of "Callbacks" and "Actions". The callbacks are invoked in response to events from the RenderWindowInteractor. They are then dispatched to the WidgetGroup, who inturn calls the corresponding "Actions" on each of the widgets in the group. As a rule of thumb, the mapping of "Callbacks" is to "Events" from the Callbackmapper. The mapping of "Actions" is meant to be one pertinent to the geometry changes on the widget's representation. For instance a MouseMoveEvent should map to a "MoveCallback". This can, depending on the state of the widget, trigger any of three Actions: HoverAction, DrawAction, ResizeAction. This is done, so that you can have multiple widgets, say a seed widget drawn on 3 render windows and have them all synchronized, if they belong to the same group.

static void vtkKWEPaintbrushSelectionWidget::MergeSelectionCallback ( vtkAbstractWidget  )  [static, protected]

Callback interface to tie ends with the CallbackMapper for the events invoked by this widget. Note the seperation of "Callbacks" and "Actions". The callbacks are invoked in response to events from the RenderWindowInteractor. They are then dispatched to the WidgetGroup, who inturn calls the corresponding "Actions" on each of the widgets in the group. As a rule of thumb, the mapping of "Callbacks" is to "Events" from the Callbackmapper. The mapping of "Actions" is meant to be one pertinent to the geometry changes on the widget's representation. For instance a MouseMoveEvent should map to a "MoveCallback". This can, depending on the state of the widget, trigger any of three Actions: HoverAction, DrawAction, ResizeAction. This is done, so that you can have multiple widgets, say a seed widget drawn on 3 render windows and have them all synchronized, if they belong to the same group.

static void vtkKWEPaintbrushSelectionWidget::SelectAllSketchesCallback ( vtkAbstractWidget  )  [static, protected]

Callback interface to tie ends with the CallbackMapper for the events invoked by this widget. Note the seperation of "Callbacks" and "Actions". The callbacks are invoked in response to events from the RenderWindowInteractor. They are then dispatched to the WidgetGroup, who inturn calls the corresponding "Actions" on each of the widgets in the group. As a rule of thumb, the mapping of "Callbacks" is to "Events" from the Callbackmapper. The mapping of "Actions" is meant to be one pertinent to the geometry changes on the widget's representation. For instance a MouseMoveEvent should map to a "MoveCallback". This can, depending on the state of the widget, trigger any of three Actions: HoverAction, DrawAction, ResizeAction. This is done, so that you can have multiple widgets, say a seed widget drawn on 3 render windows and have them all synchronized, if they belong to the same group.

static void vtkKWEPaintbrushSelectionWidget::UnSelectAllSketchesCallback ( vtkAbstractWidget  )  [static, protected]

Callback interface to tie ends with the CallbackMapper for the events invoked by this widget. Note the seperation of "Callbacks" and "Actions". The callbacks are invoked in response to events from the RenderWindowInteractor. They are then dispatched to the WidgetGroup, who inturn calls the corresponding "Actions" on each of the widgets in the group. As a rule of thumb, the mapping of "Callbacks" is to "Events" from the Callbackmapper. The mapping of "Actions" is meant to be one pertinent to the geometry changes on the widget's representation. For instance a MouseMoveEvent should map to a "MoveCallback". This can, depending on the state of the widget, trigger any of three Actions: HoverAction, DrawAction, ResizeAction. This is done, so that you can have multiple widgets, say a seed widget drawn on 3 render windows and have them all synchronized, if they belong to the same group.

static void vtkKWEPaintbrushSelectionWidget::ToggleSelectAllSketchesCallback ( vtkAbstractWidget  )  [static, protected]

Callback interface to tie ends with the CallbackMapper for the events invoked by this widget. Note the seperation of "Callbacks" and "Actions". The callbacks are invoked in response to events from the RenderWindowInteractor. They are then dispatched to the WidgetGroup, who inturn calls the corresponding "Actions" on each of the widgets in the group. As a rule of thumb, the mapping of "Callbacks" is to "Events" from the Callbackmapper. The mapping of "Actions" is meant to be one pertinent to the geometry changes on the widget's representation. For instance a MouseMoveEvent should map to a "MoveCallback". This can, depending on the state of the widget, trigger any of three Actions: HoverAction, DrawAction, ResizeAction. This is done, so that you can have multiple widgets, say a seed widget drawn on 3 render windows and have them all synchronized, if they belong to the same group.

static void vtkKWEPaintbrushSelectionWidget::MoveCallback ( vtkAbstractWidget  )  [static, protected]

Callback interface to tie ends with the CallbackMapper for the events invoked by this widget. Note the seperation of "Callbacks" and "Actions". The callbacks are invoked in response to events from the RenderWindowInteractor. They are then dispatched to the WidgetGroup, who inturn calls the corresponding "Actions" on each of the widgets in the group. As a rule of thumb, the mapping of "Callbacks" is to "Events" from the Callbackmapper. The mapping of "Actions" is meant to be one pertinent to the geometry changes on the widget's representation. For instance a MouseMoveEvent should map to a "MoveCallback". This can, depending on the state of the widget, trigger any of three Actions: HoverAction, DrawAction, ResizeAction. This is done, so that you can have multiple widgets, say a seed widget drawn on 3 render windows and have them all synchronized, if they belong to the same group.

int vtkKWEPaintbrushSelectionWidget::SelectSketchAction ( vtkKWEPaintbrushSelectionWidget dispatcher  )  [protected]

Geometric actions / states on that the representation responds to.

int vtkKWEPaintbrushSelectionWidget::UnselectSketchAction ( vtkKWEPaintbrushSelectionWidget dispatcher  )  [protected]

Geometric actions / states on that the representation responds to.

int vtkKWEPaintbrushSelectionWidget::SelectAllSketchesAction ( vtkKWEPaintbrushSelectionWidget dispatcher  )  [protected]

Geometric actions / states on that the representation responds to.

int vtkKWEPaintbrushSelectionWidget::UnSelectAllSketchesAction ( vtkKWEPaintbrushSelectionWidget dispatcher  )  [protected]

Geometric actions / states on that the representation responds to.

int vtkKWEPaintbrushSelectionWidget::ReleaseSelectAction ( vtkKWEPaintbrushSelectionWidget dispatcher  )  [protected]

Geometric actions / states on that the representation responds to.

int vtkKWEPaintbrushSelectionWidget::DeleteSelectionAction ( vtkKWEPaintbrushSelectionWidget dispatcher  )  [protected]

Geometric actions / states on that the representation responds to.

int vtkKWEPaintbrushSelectionWidget::MergeSelectionAction ( vtkKWEPaintbrushSelectionWidget dispatcher  )  [protected]

Geometric actions / states on that the representation responds to.


Member Data Documentation

Definition at line 144 of file vtkKWEPaintbrushSelectionWidget.h.

Definition at line 145 of file vtkKWEPaintbrushSelectionWidget.h.

Definition at line 146 of file vtkKWEPaintbrushSelectionWidget.h.

Definition at line 147 of file vtkKWEPaintbrushSelectionWidget.h.


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