|
| virtual int | IsA (const char *type) |
| |
| vtkSphereWidget * | 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 | SetRepresentation (int) |
| |
| virtual int | GetRepresentation () |
| |
| void | SetRepresentationToOff () |
| |
| void | SetRepresentationToWireframe () |
| |
| void | SetRepresentationToSurface () |
| |
| void | SetThetaResolution (int r) |
| |
| int | GetThetaResolution () |
| |
| void | SetPhiResolution (int r) |
| |
| int | GetPhiResolution () |
| |
| void | SetRadius (double r) |
| |
| double | GetRadius () |
| |
| void | SetCenter (double x, double y, double z) |
| |
| void | SetCenter (double x[3]) |
| |
| double * | GetCenter () |
| |
| void | GetCenter (double xyz[3]) |
| |
| virtual void | SetTranslation (int) |
| |
| virtual int | GetTranslation () |
| |
| virtual void | TranslationOn () |
| |
| virtual void | TranslationOff () |
| |
| virtual void | SetScale (int) |
| |
| virtual int | GetScale () |
| |
| virtual void | ScaleOn () |
| |
| virtual void | ScaleOff () |
| |
| virtual void | SetHandleVisibility (int) |
| |
| virtual int | GetHandleVisibility () |
| |
| virtual void | HandleVisibilityOn () |
| |
| virtual void | HandleVisibilityOff () |
| |
| virtual void | SetHandleDirection (double, double, double) |
| |
| virtual void | SetHandleDirection (double[3]) |
| |
| virtual double * | GetHandleDirection () |
| |
| virtual void | GetHandleDirection (double &, double &, double &) |
| |
| virtual void | GetHandleDirection (double[3]) |
| |
| virtual double * | GetHandlePosition () |
| |
| virtual void | GetHandlePosition (double &, double &, double &) |
| |
| virtual void | GetHandlePosition (double[3]) |
| |
| void | GetPolyData (vtkPolyData *pd) |
| |
| void | GetSphere (vtkSphere *sphere) |
| |
| virtual vtkProperty * | GetSphereProperty () |
| |
| virtual vtkProperty * | GetSelectedSphereProperty () |
| |
| virtual vtkProperty * | GetHandleProperty () |
| |
| virtual vtkProperty * | GetSelectedHandleProperty () |
| |
| 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 |
| |
| | vtkSphereWidget () |
| |
| | ~vtkSphereWidget () |
| |
| void | OnLeftButtonDown () |
| |
| void | OnLeftButtonUp () |
| |
| void | OnRightButtonDown () |
| |
| void | OnRightButtonUp () |
| |
| void | OnMouseMove () |
| |
| void | HighlightSphere (int highlight) |
| |
| void | SelectRepresentation () |
| |
| virtual void | RegisterPickers () |
| |
| void | Translate (double *p1, double *p2) |
| |
| void | ScaleSphere (double *p1, double *p2, int X, int Y) |
| |
| void | MoveHandle (double *p1, double *p2, int X, int Y) |
| |
| void | PlaceHandle (double *center, double radius) |
| |
| void | CreateDefaultProperties () |
| |
| void | HighlightHandle (int) |
| |
| virtual void | SizeHandles () |
| |
| | 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 sphere
This 3D widget defines a sphere that can be interactively placed in a scene.
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. The interactor will act normally until the "i" key (for "interactor") is pressed, at which point the vtkSphereWidget will appear. (See superclass documentation for information about changing this behavior.) 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 vtkSphereWidget has several methods that can be used in conjunction with other VTK objects. The Set/GetThetaResolution() and Set/GetPhiResolution() methods control the number of subdivisions of the sphere in the theta and phi directions; the GetPolyData() method can be used to get the polygonal representation and can be used for things like seeding streamlines. The GetSphere() method returns a sphere implicit function that can be used for cutting and clipping. 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 (any mouse 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 sphere.
- See also
- vtk3DWidget vtkLineWidget vtkBoxWidget vtkPlaneWidget
- Events:
- vtkCommand::StartInteractionEvent vtkCommand::EndInteractionEvent vtkCommand::EnableEvent vtkCommand::InteractionEvent vtkCommand::DisableEvent
- Examples:
- vtkSphereWidget (Examples)
- Tests:
- vtkSphereWidget (Tests)
Definition at line 81 of file vtkSphereWidget.h.