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

vtkKWEPaintbrushWidgetCallbackMapper Class Reference

map widget events into callbacks More...

#include <vtkKWEPaintbrushWidgetCallbackMapper.h>

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

List of all members.

Public Member Functions

void SetPaintbrushWidget (vtkKWEAbstractPaintbrushWidget *w)
virtual void Bindings ()

Static Public Member Functions

static
vtkKWEPaintbrushWidgetCallbackMapper
New ()

Protected Member Functions

 vtkKWEPaintbrushWidgetCallbackMapper ()
 ~vtkKWEPaintbrushWidgetCallbackMapper ()

Protected Attributes

vtkKWEAbstractPaintbrushWidgetPaintbrushWidget



static int IsTypeOf (const char *type)
static
vtkKWEPaintbrushWidgetCallbackMapper
SafeDownCast (vtkObject *o)
virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)

Detailed Description

map widget events into callbacks

vtkKWEPaintbrushWidgetCallbackMapper maps widget events into static callback methods on the paintbrush widget. This class may be overridden to customize the paintbrush widget interactions.

Interactions:

The follwing interactions are defined by this class when the brush is in Edit mode. Left click and drag - Draws a stroke Ctrl-Left click and drag - Erase stroke Shift Left click drag - Draws a stroke on this sketch alone. All other sketches are deemed uneditable while the shift key is depressed. Shft Ctrl Left click drag - Erase stroke on this sketch alone. All other sketches are deemed uneditable while the shift key is depressed. Backspace or Left key - Undo the sketch (deletes the previously drawn stroke in a sketch) Right key - Redo on the given sketch Shift "+" - Start a new sketch. Shift Right - Traverse to the next sketch. Shift Left - Traverse to the previous sketch. Shift Backspace - Delete a sketch. Right click and drag - Resize the shape isotropically Ctrl-Right click and drag - Resize the shape anisotropically Shift "<" - Decrease the opacity of the overlaid drawing Shift ">" - Increase the opacity of the overlaid drawing "l" key - Render the current sketch immutable/mutable. (Supported only when editing labelmaps) Escape - Enable/Disable interactions

The follwing interactions are defined by this class when the brush is in Select Mode Left click - Select/Unselect a sketch Left click and drag - Drag and drop merge of sketches. Backspace key - Delete selected sketches. "m" key - Merge selected sketches. Escape - Enable/Disable interactions

See also:
vtkWidgetEvent vtkWidgetEventTranslator

Definition at line 70 of file vtkKWEPaintbrushWidgetCallbackMapper.h.


Constructor & Destructor Documentation

vtkKWEPaintbrushWidgetCallbackMapper::vtkKWEPaintbrushWidgetCallbackMapper (  )  [protected]
vtkKWEPaintbrushWidgetCallbackMapper::~vtkKWEPaintbrushWidgetCallbackMapper (  )  [protected]

Member Function Documentation

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

Instantiate the class.

Reimplemented from vtkWidgetCallbackMapper.

Reimplemented in vtkKWELightPaintbrushWidgetCallbackMapper.

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

Standard macros.

Reimplemented from vtkWidgetCallbackMapper.

Reimplemented in vtkKWELightPaintbrushWidgetCallbackMapper.

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

Standard macros.

Reimplemented from vtkWidgetCallbackMapper.

Reimplemented in vtkKWELightPaintbrushWidgetCallbackMapper.

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

Standard macros.

Reimplemented from vtkWidgetCallbackMapper.

Reimplemented in vtkKWELightPaintbrushWidgetCallbackMapper.

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

Standard macros.

Reimplemented from vtkWidgetCallbackMapper.

Reimplemented in vtkKWELightPaintbrushWidgetCallbackMapper.

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

Standard macros.

Reimplemented from vtkWidgetCallbackMapper.

Reimplemented in vtkKWELightPaintbrushWidgetCallbackMapper.

void vtkKWEPaintbrushWidgetCallbackMapper::SetPaintbrushWidget ( vtkKWEAbstractPaintbrushWidget w  ) 

Set the paintbrush widget. No reference counting to avoid loops.

virtual void vtkKWEPaintbrushWidgetCallbackMapper::Bindings (  )  [virtual]

Set the default bindings. If you want to set your own bindings, you would create your own subclass of vtkKWEPaintbrushWidgetCallbackMapper and override the Bindings() method.

Reimplemented in vtkKWELightPaintbrushWidgetCallbackMapper.


Member Data Documentation

Definition at line 95 of file vtkKWEPaintbrushWidgetCallbackMapper.h.


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