map widget events into callbacks More...
#include <vtkKWEPaintbrushWidgetCallbackMapper.h>


Public Member Functions | |
| void | SetPaintbrushWidget (vtkKWEAbstractPaintbrushWidget *w) |
| virtual void | Bindings () |
Static Public Member Functions | |
| static vtkKWEPaintbrushWidgetCallbackMapper * | New () |
Protected Member Functions | |
| vtkKWEPaintbrushWidgetCallbackMapper () | |
| ~vtkKWEPaintbrushWidgetCallbackMapper () | |
Protected Attributes | |
| vtkKWEAbstractPaintbrushWidget * | PaintbrushWidget |
|
| |
| 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) |
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.
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
Definition at line 70 of file vtkKWEPaintbrushWidgetCallbackMapper.h.
| vtkKWEPaintbrushWidgetCallbackMapper::vtkKWEPaintbrushWidgetCallbackMapper | ( | ) | [protected] |
| vtkKWEPaintbrushWidgetCallbackMapper::~vtkKWEPaintbrushWidgetCallbackMapper | ( | ) | [protected] |
| 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.
Definition at line 95 of file vtkKWEPaintbrushWidgetCallbackMapper.h.
1.7.1