|
| virtual int | IsA (const char *type) |
| |
| vtkPlaneWidget * | 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) |
| |
| void | SetResolution (int r) |
| |
| int | GetResolution () |
| |
| void | SetOrigin (double x, double y, double z) |
| |
| void | SetOrigin (double x[3]) |
| |
| double * | GetOrigin () |
| |
| void | GetOrigin (double xyz[3]) |
| |
| void | SetPoint1 (double x, double y, double z) |
| |
| void | SetPoint1 (double x[3]) |
| |
| double * | GetPoint1 () |
| |
| void | GetPoint1 (double xyz[3]) |
| |
| void | SetPoint2 (double x, double y, double z) |
| |
| void | SetPoint2 (double x[3]) |
| |
| double * | GetPoint2 () |
| |
| void | GetPoint2 (double xyz[3]) |
| |
| void | SetCenter (double x, double y, double z) |
| |
| void | SetCenter (double x[3]) |
| |
| double * | GetCenter () |
| |
| void | GetCenter (double xyz[3]) |
| |
| void | SetNormal (double x, double y, double z) |
| |
| void | SetNormal (double x[3]) |
| |
| double * | GetNormal () |
| |
| void | GetNormal (double xyz[3]) |
| |
| virtual void | SetRepresentation (int) |
| |
| virtual int | GetRepresentation () |
| |
| void | SetRepresentationToOff () |
| |
| void | SetRepresentationToOutline () |
| |
| void | SetRepresentationToWireframe () |
| |
| void | SetRepresentationToSurface () |
| |
| virtual void | SetNormalToXAxis (int) |
| |
| virtual int | GetNormalToXAxis () |
| |
| virtual void | NormalToXAxisOn () |
| |
| virtual void | NormalToXAxisOff () |
| |
| virtual void | SetNormalToYAxis (int) |
| |
| virtual int | GetNormalToYAxis () |
| |
| virtual void | NormalToYAxisOn () |
| |
| virtual void | NormalToYAxisOff () |
| |
| virtual void | SetNormalToZAxis (int) |
| |
| virtual int | GetNormalToZAxis () |
| |
| virtual void | NormalToZAxisOn () |
| |
| virtual void | NormalToZAxisOff () |
| |
| void | GetPolyData (vtkPolyData *pd) |
| |
| void | GetPlane (vtkPlane *plane) |
| |
| vtkPolyDataAlgorithm * | GetPolyDataAlgorithm () |
| |
| void | UpdatePlacement (void) |
| |
| virtual vtkProperty * | GetHandleProperty () |
| |
| virtual vtkProperty * | GetSelectedHandleProperty () |
| |
| virtual void | SetPlaneProperty (vtkProperty *) |
| |
| virtual vtkProperty * | GetPlaneProperty () |
| |
| virtual vtkProperty * | GetSelectedPlaneProperty () |
| |
| vtkPolyDataSourceWidget * | NewInstance () const |
| |
| void | PrintSelf (ostream &os, vtkIndent indent) |
| |
| void | PlaceWidget (double xmin, double xmax, double ymin, double ymax, double zmin, double zmax) |
| |
| 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 |
| |
| | vtkPlaneWidget () |
| |
| | ~vtkPlaneWidget () |
| |
| void | OnLeftButtonDown () |
| |
| void | OnLeftButtonUp () |
| |
| void | OnMiddleButtonDown () |
| |
| void | OnMiddleButtonUp () |
| |
| void | OnRightButtonDown () |
| |
| void | OnRightButtonUp () |
| |
| void | OnMouseMove () |
| |
| void | SelectRepresentation () |
| |
| void | HighlightPlane (int highlight) |
| |
| void | PositionHandles () |
| |
| void | HandlesOn (double length) |
| |
| void | HandlesOff () |
| |
| int | HighlightHandle (vtkProp *prop) |
| |
| virtual void | SizeHandles () |
| |
| void | HighlightNormal (int highlight) |
| |
| virtual void | RegisterPickers () |
| |
| void | MoveOrigin (double *p1, double *p2) |
| |
| void | MovePoint1 (double *p1, double *p2) |
| |
| void | MovePoint2 (double *p1, double *p2) |
| |
| void | MovePoint3 (double *p1, double *p2) |
| |
| void | Rotate (int X, int Y, double *p1, double *p2, double *vpn) |
| |
| void | Spin (double *p1, double *p2) |
| |
| void | Scale (double *p1, double *p2, int X, int Y) |
| |
| void | Translate (double *p1, double *p2) |
| |
| void | Push (double *p1, double *p2) |
| |
| void | CreateDefaultProperties () |
| |
| void | GeneratePlane () |
| |
| | vtkPolyDataSourceWidget () |
| |
| | 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 manipulating a finite plane
This 3D widget defines a finite (bounded) plane that can be interactively placed in a scene. The plane has four handles (at its corner vertices), a normal vector, and the plane itself. The handles are used to resize the plane; the normal vector to rotate it, and the plane can be picked and translated. Selecting the plane while pressing CTRL makes it spin around the normal. A nice feature of the object is that the vtkPlaneWidget, like any 3D widget, will work with the current interactor style. That is, if vtkPlaneWidget does not handle an event, then all other registered observers (including the interactor style) have an opportunity to process the event. Otherwise, the vtkPlaneWidget will terminate the processing of the event that it handles.
To use this object, just invoke SetInteractor() with the argument of the method a vtkRenderWindowInteractor. You may also wish to invoke "PlaceWidget()" to initially position the widget. If the "i" key (for "interactor") is pressed, the vtkPlaneWidget will appear. (See superclass documentation for information about changing this behavior.) By grabbing the one of the four handles (use the left mouse button), the plane can be resized. By grabbing the plane itself, the entire plane can be arbitrarily translated. Pressing CTRL while grabbing the plane will spin the plane around the normal. If you select the normal vector, the plane can be arbitrarily rotated. Selecting any part of the widget with the middle mouse button enables translation of the plane along its normal. (Once selected using middle mouse, moving the mouse in the direction of the normal translates the plane in the direction of the normal; moving in the direction opposite the normal translates the plane in the direction opposite the normal.) Scaling (about the center of the plane) is achieved by using the right mouse button. By moving the mouse "up" the render window the plane will be made bigger; by moving "down" the render window the widget will be made smaller. Events that occur outside of the widget (i.e., no part of the widget is picked) are propagated to any other registered obsevers (such as the interaction style). Turn off the widget by pressing the "i" key again (or invoke the Off() method).
The vtkPlaneWidget has several methods that can be used in conjunction with other VTK objects. The Set/GetResolution() methods control the number of subdivisions of the plane; the GetPolyData() method can be used to get the polygonal representation and can be used for things like seeding stream lines. GetPlane() can be used to update a vtkPlane implicit function. Typical usage of the widget is to make use of the StartInteractionEvent, InteractionEvent, and EndInteractionEvent events. The InteractionEvent is called on mouse motion; the other two events are called on button down and button up (either left or right button).
Some additional features of this class include the ability to control the properties of the widget. You can set the properties of the selected and unselected representations of the plane. For example, you can set the property for the handles and plane. In addition there are methods to constrain the plane so that it is perpendicular to the x-y-z axes.
- See also
- vtk3DWidget vtkBoxWidget vtkLineWidget vtkSphereWidget vtkImplicitPlaneWidget
- Events:
- vtkCommand::StartInteractionEvent vtkCommand::InteractionEvent vtkCommand::EnableEvent vtkCommand::DisableEvent vtkCommand::EndInteractionEvent
- Examples:
- vtkPlaneWidget (Examples)
- Tests:
- vtkPlaneWidget (Tests)
Definition at line 108 of file vtkPlaneWidget.h.