|
| virtual int | IsA (const char *type) |
| |
| vtkImageTracerWidget * | NewInstance () const |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| virtual void | SetEnabled (int) |
| |
| virtual void | PlaceWidget (double bounds[6]) |
| |
| void | PlaceWidget () |
| |
| void | PlaceWidget (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) |
| |
| virtual void | SetHandleProperty (vtkProperty *) |
| |
| virtual vtkProperty * | GetHandleProperty () |
| |
| virtual void | SetSelectedHandleProperty (vtkProperty *) |
| |
| virtual vtkProperty * | GetSelectedHandleProperty () |
| |
| virtual void | SetLineProperty (vtkProperty *) |
| |
| virtual vtkProperty * | GetLineProperty () |
| |
| virtual void | SetSelectedLineProperty (vtkProperty *) |
| |
| virtual vtkProperty * | GetSelectedLineProperty () |
| |
| void | SetViewProp (vtkProp *prop) |
| |
| virtual void | SetProjectToPlane (int) |
| |
| virtual int | GetProjectToPlane () |
| |
| virtual void | ProjectToPlaneOn () |
| |
| virtual void | ProjectToPlaneOff () |
| |
| virtual void | SetProjectionNormal (int) |
| |
| virtual int | GetProjectionNormal () |
| |
| void | SetProjectionNormalToXAxes () |
| |
| void | SetProjectionNormalToYAxes () |
| |
| void | SetProjectionNormalToZAxes () |
| |
| void | SetProjectionPosition (double position) |
| |
| virtual double | GetProjectionPosition () |
| |
| void | SetSnapToImage (int snap) |
| |
| virtual int | GetSnapToImage () |
| |
| virtual void | SnapToImageOn () |
| |
| virtual void | SnapToImageOff () |
| |
| virtual void | SetAutoClose (int) |
| |
| virtual int | GetAutoClose () |
| |
| virtual void | AutoCloseOn () |
| |
| virtual void | AutoCloseOff () |
| |
| virtual void | SetCaptureRadius (double) |
| |
| virtual double | GetCaptureRadius () |
| |
| void | GetPath (vtkPolyData *pd) |
| |
| vtkGlyphSource2D * | GetGlyphSource () |
| |
| virtual void | SetImageSnapType (int) |
| |
| virtual int | GetImageSnapType () |
| |
| void | SetHandlePosition (int handle, double xyz[3]) |
| |
| void | SetHandlePosition (int handle, double x, double y, double z) |
| |
| void | GetHandlePosition (int handle, double xyz[3]) |
| |
| double * | GetHandlePosition (int handle) |
| |
| virtual int | GetNumberOfHandles () |
| |
| void | SetInteraction (int interact) |
| |
| virtual int | GetInteraction () |
| |
| virtual void | InteractionOn () |
| |
| virtual void | InteractionOff () |
| |
| void | InitializeHandles (vtkPoints *) |
| |
| int | IsClosed () |
| |
| virtual void | SetHandleLeftMouseButton (int) |
| |
| virtual int | GetHandleLeftMouseButton () |
| |
| virtual void | HandleLeftMouseButtonOn () |
| |
| virtual void | HandleLeftMouseButtonOff () |
| |
| virtual void | SetHandleMiddleMouseButton (int) |
| |
| virtual int | GetHandleMiddleMouseButton () |
| |
| virtual void | HandleMiddleMouseButtonOn () |
| |
| virtual void | HandleMiddleMouseButtonOff () |
| |
| virtual void | SetHandleRightMouseButton (int) |
| |
| virtual int | GetHandleRightMouseButton () |
| |
| virtual void | HandleRightMouseButtonOn () |
| |
| virtual void | HandleRightMouseButtonOff () |
| |
| vtk3DWidget * | NewInstance () const |
| |
| virtual void | SetProp3D (vtkProp3D *) |
| |
| virtual vtkProp3D * | GetProp3D () |
| |
| virtual void | SetInputData (vtkDataSet *) |
| |
| virtual void | SetInputConnection (vtkAlgorithmOutput *) |
| |
| virtual vtkDataSet * | GetInput () |
| |
| virtual void | SetPlaceFactor (double) |
| |
| virtual double | GetPlaceFactor () |
| |
| virtual void | SetHandleSize (double) |
| |
| virtual double | GetHandleSize () |
| |
| vtkInteractorObserver * | NewInstance () const |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| int | GetEnabled () |
| |
| void | EnabledOn () |
| |
| void | EnabledOff () |
| |
| void | On () |
| |
| void | Off () |
| |
| virtual void | SetInteractor (vtkRenderWindowInteractor *iren) |
| |
| virtual vtkRenderWindowInteractor * | GetInteractor () |
| |
| virtual void | SetPriority (float) |
| |
| virtual float | GetPriority () |
| |
| virtual void | PickingManagedOn () |
| |
| virtual void | PickingManagedOff () |
| |
| virtual void | SetPickingManaged (bool) |
| |
| virtual bool | GetPickingManaged () |
| |
| virtual void | SetKeyPressActivation (int) |
| |
| virtual int | GetKeyPressActivation () |
| |
| virtual void | KeyPressActivationOn () |
| |
| virtual void | KeyPressActivationOff () |
| |
| virtual void | SetKeyPressActivationValue (char) |
| |
| virtual char | GetKeyPressActivationValue () |
| |
| virtual vtkRenderer * | GetDefaultRenderer () |
| |
| virtual void | SetDefaultRenderer (vtkRenderer *) |
| |
| virtual vtkRenderer * | GetCurrentRenderer () |
| |
| virtual void | SetCurrentRenderer (vtkRenderer *) |
| |
| virtual void | OnChar () |
| |
| void | GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
| |
| void | ReleaseFocus () |
| |
| vtkObject * | NewInstance () const |
| |
| virtual void | DebugOn () |
| |
| virtual void | DebugOff () |
| |
| bool | GetDebug () |
| |
| void | SetDebug (bool debugFlag) |
| |
| virtual void | Modified () |
| |
| virtual unsigned long | GetMTime () |
| |
| unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| |
| unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
| |
| vtkCommand * | GetCommand (unsigned long tag) |
| |
| void | RemoveObserver (vtkCommand *) |
| |
| void | RemoveObservers (unsigned long event, vtkCommand *) |
| |
| void | RemoveObservers (const char *event, vtkCommand *) |
| |
| int | HasObserver (unsigned long event, vtkCommand *) |
| |
| int | HasObserver (const char *event, vtkCommand *) |
| |
| void | RemoveObserver (unsigned long tag) |
| |
| void | RemoveObservers (unsigned long event) |
| |
| void | RemoveObservers (const char *event) |
| |
| void | RemoveAllObservers () |
| |
| int | HasObserver (unsigned long event) |
| |
| int | HasObserver (const char *event) |
| |
| template<class U , class T > |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| |
| template<class U , class T > |
| unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| |
| template<class U , class T > |
| unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| |
| int | InvokeEvent (unsigned long event, void *callData) |
| |
| int | InvokeEvent (const char *event, void *callData) |
| |
| int | InvokeEvent (unsigned long event) |
| |
| int | InvokeEvent (const char *event) |
| |
| const char * | GetClassName () const |
| |
| virtual void | Delete () |
| |
| virtual void | FastDelete () |
| |
| void | Print (ostream &os) |
| |
| virtual void | PrintHeader (ostream &os, vtkIndent indent) |
| |
| virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
| |
| virtual void | Register (vtkObjectBase *o) |
| |
| virtual void | UnRegister (vtkObjectBase *o) |
| |
| int | GetReferenceCount () |
| |
| void | SetReferenceCount (int) |
| |
| void | PrintRevisions (ostream &) |
| |
|
| virtual vtkObjectBase * | NewInstanceInternal () const |
| |
| | vtkImageTracerWidget () |
| |
| | ~vtkImageTracerWidget () |
| |
| void | OnLeftButtonDown () |
| |
| void | OnLeftButtonUp () |
| |
| void | OnMiddleButtonDown () |
| |
| void | OnMiddleButtonUp () |
| |
| void | OnRightButtonDown () |
| |
| void | OnRightButtonUp () |
| |
| void | OnMouseMove () |
| |
| void | AddObservers () |
| |
| void | Trace (int, int) |
| |
| void | Snap (double *) |
| |
| void | MovePoint (const double *, const double *) |
| |
| void | Translate (const double *, const double *) |
| |
| void | ClosePath () |
| |
| void | AppendHandles (double *) |
| |
| void | ResetHandles () |
| |
| void | AllocateHandles (const int &) |
| |
| void | AdjustHandlePosition (const int &, double *) |
| |
| int | HighlightHandle (vtkProp *) |
| |
| void | EraseHandle (const int &) |
| |
| virtual void | SizeHandles () |
| |
| void | InsertHandleOnLine (double *) |
| |
| void | HighlightLine (const int &) |
| |
| void | BuildLinesFromHandles () |
| |
| void | ResetLine (double *) |
| |
| void | AppendLine (double *) |
| |
| virtual void | RegisterPickers () |
| |
| void | CreateDefaultProperties () |
| |
| | vtk3DWidget () |
| |
| | ~vtk3DWidget () |
| |
| void | AdjustBounds (double bounds[6], double newBounds[6], double center[3]) |
| |
| double | SizeHandles (double factor) |
| |
| void | UpdateInput () |
| |
| | vtkInteractorObserver () |
| |
| | ~vtkInteractorObserver () |
| |
| virtual void | StartInteraction () |
| |
| virtual void | EndInteraction () |
| |
| void | ComputeDisplayToWorld (double x, double y, double z, double worldPt[4]) |
| |
| void | ComputeWorldToDisplay (double x, double y, double z, double displayPt[3]) |
| |
| void | UnRegisterPickers () |
| |
| virtual void | PickersModified () |
| |
| vtkPickingManager * | GetPickingManager () |
| |
| vtkAssemblyPath * | GetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker) |
| |
| int | RequestCursorShape (int requestedShape) |
| |
| | vtkObject () |
| |
| virtual | ~vtkObject () |
| |
| virtual void | RegisterInternal (vtkObjectBase *, int check) |
| |
| virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
| |
| void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
| |
| void | InternalReleaseFocus () |
| |
| | vtkObjectBase () |
| |
| virtual | ~vtkObjectBase () |
| |
| virtual void | CollectRevisions (ostream &) |
| |
| virtual void | ReportReferences (vtkGarbageCollector *) |
| |
| | vtkObjectBase (const vtkObjectBase &) |
| |
| void | operator= (const vtkObjectBase &) |
| |
3D widget for tracing on planar props.
vtkImageTracerWidget is different from other widgets in three distinct ways: 1) any sub-class of vtkProp can be input rather than just vtkProp3D, so that vtkImageActor can be set as the prop and then traced over, 2) the widget fires pick events at the input prop to decide where to move its handles, 3) the widget has 2D glyphs for handles instead of 3D spheres as is done in other sub-classes of vtk3DWidget. This widget is primarily designed for manually tracing over image data. The button actions and key modifiers are as follows for controlling the widget: 1) left button click over the image, hold and drag draws a free hand line. 2) left button click and release erases the widget line, if it exists, and repositions the first handle. 3) middle button click starts a snap drawn line. The line is terminated by clicking the middle button while depressing the ctrl key. 4) when tracing a continuous or snap drawn line, if the last cursor position is within a specified tolerance to the first handle, the widget line will form a closed loop. 5) right button clicking and holding on any handle that is part of a snap drawn line allows handle dragging: existing line segments are updated accordingly. If the path is open and AutoClose is set to On, the path can be closed by repositioning the first and last points over one another. 6) ctrl key + right button down on any handle will erase it: existing snap drawn line segments are updated accordingly. If the line was formed by continuous tracing, the line is deleted leaving one handle. 7) shift key + right button down on any snap drawn line segment will insert a handle at the cursor position. The line segment is split accordingly.
- Warning
- the input vtkDataSet should be vtkImageData.
- See also
- vtk3DWidget vtkBoxWidget vtkLineWidget vtkPointWidget vtkSphereWidget vtkImagePlaneWidget vtkImplicitPlaneWidget vtkPlaneWidget
- Events:
- vtkCommand::StartInteractionEvent vtkCommand::EndInteractionEvent vtkCommand::DisableEvent vtkCommand::EnableEvent vtkCommand::InteractionEvent
- Examples:
- vtkImageTracerWidget (Examples)
- Tests:
- vtkImageTracerWidget (Tests)
Definition at line 88 of file vtkImageTracerWidget.h.