VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
vtkOrientationMarkerWidget Class Reference

2D widget for manipulating a marker prop More...

#include <vtkOrientationMarkerWidget.h>

Inheritance diagram for vtkOrientationMarkerWidget:
[legend]
Collaboration diagram for vtkOrientationMarkerWidget:
[legend]

Public Types

typedef vtkInteractorObserver Superclass
 
- Public Types inherited from vtkInteractorObserver
typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class. More...
 
vtkOrientationMarkerWidgetNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual void SetEnabled (int)
 Enable/disable the widget. More...
 
void ExecuteCameraUpdateEvent (vtkObject *o, unsigned long event, void *calldata)
 Callback to keep the camera for the orientation marker up to date with the camera in the parent renderer. More...
 
virtual void SetOrientationMarker (vtkProp *prop)
 Set/get the orientation marker to be displayed in this widget. More...
 
virtual vtkPropGetOrientationMarker ()
 Set/get the orientation marker to be displayed in this widget. More...
 
void SetInteractive (int state)
 Set/get whether to allow this widget to be interactively moved/scaled. More...
 
virtual int GetInteractive ()
 Set/get whether to allow this widget to be interactively moved/scaled. More...
 
virtual void InteractiveOn ()
 Set/get whether to allow this widget to be interactively moved/scaled. More...
 
virtual void InteractiveOff ()
 Set/get whether to allow this widget to be interactively moved/scaled. More...
 
void SetOutlineColor (double r, double g, double b)
 Set/get the color of the outline of this widget. More...
 
doubleGetOutlineColor ()
 Set/get the color of the outline of this widget. More...
 
virtual void SetViewport (double, double, double, double)
 Set/get the viewport to position/size this widget. More...
 
virtual void SetViewport (double[4])
 Set/get the viewport to position/size this widget. More...
 
virtual doubleGetViewport ()
 Set/get the viewport to position/size this widget. More...
 
virtual void GetViewport (double &, double &, double &, double &)
 Set/get the viewport to position/size this widget. More...
 
virtual void GetViewport (double[4])
 Set/get the viewport to position/size this widget. More...
 
virtual void SetTolerance (int)
 The tolerance representing the distance to the widget (in pixels) in which the cursor is considered to be on the widget, or on a widget feature (e.g., a corner point or edge). More...
 
virtual int GetTolerance ()
 The tolerance representing the distance to the widget (in pixels) in which the cursor is considered to be on the widget, or on a widget feature (e.g., a corner point or edge). More...
 
- Public Member Functions inherited from vtkInteractorObserver
vtkInteractorObserverNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 
int GetEnabled ()
 
void EnabledOn ()
 
void EnabledOff ()
 
void On ()
 
void Off ()
 
virtual void OnChar ()
 Sets up the keypress-i event. More...
 
virtual void SetInteractor (vtkRenderWindowInteractor *iren)
 This method is used to associate the widget with the render window interactor. More...
 
virtual vtkRenderWindowInteractorGetInteractor ()
 This method is used to associate the widget with the render window interactor. More...
 
virtual void SetPriority (float)
 Set/Get the priority at which events are processed. More...
 
virtual float GetPriority ()
 Set/Get the priority at which events are processed. More...
 
virtual void PickingManagedOn ()
 Enable/Disable the use of a manager to process the picking. More...
 
virtual void PickingManagedOff ()
 Enable/Disable the use of a manager to process the picking. More...
 
virtual void SetPickingManaged (bool)
 Enable/Disable the use of a manager to process the picking. More...
 
virtual bool GetPickingManaged ()
 Enable/Disable the use of a manager to process the picking. More...
 
virtual void SetKeyPressActivation (int)
 Enable/Disable of the use of a keypress to turn on and off the interactor observer. More...
 
virtual int GetKeyPressActivation ()
 Enable/Disable of the use of a keypress to turn on and off the interactor observer. More...
 
virtual void KeyPressActivationOn ()
 Enable/Disable of the use of a keypress to turn on and off the interactor observer. More...
 
virtual void KeyPressActivationOff ()
 Enable/Disable of the use of a keypress to turn on and off the interactor observer. More...
 
virtual void SetKeyPressActivationValue (char)
 Specify which key press value to use to activate the interactor observer (if key press activation is enabled). More...
 
virtual char GetKeyPressActivationValue ()
 Specify which key press value to use to activate the interactor observer (if key press activation is enabled). More...
 
virtual vtkRendererGetDefaultRenderer ()
 Set/Get the default renderer to use when activating the interactor observer. More...
 
virtual void SetDefaultRenderer (vtkRenderer *)
 Set/Get the default renderer to use when activating the interactor observer. More...
 
virtual vtkRendererGetCurrentRenderer ()
 Set/Get the current renderer. More...
 
virtual void SetCurrentRenderer (vtkRenderer *)
 Set/Get the current renderer. More...
 
void GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor. More...
 
void ReleaseFocus ()
 These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor. More...
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 Turn debugging output on. More...
 
virtual void DebugOff ()
 Turn debugging output off. More...
 
bool GetDebug ()
 Get the value of the debug flag. More...
 
void SetDebug (bool debugFlag)
 Set the value of the debug flag. More...
 
virtual void Modified ()
 Update the modification time for this object. More...
 
virtual vtkMTimeType GetMTime ()
 Return this object's modified time. More...
 
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)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkCommandGetCommand (unsigned long tag)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObserver (vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
int HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
int HasObserver (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Allow user to set the AbortFlagOn() with the return value of the callback method. More...
 
int InvokeEvent (unsigned long event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
int InvokeEvent (const char *event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string. More...
 
virtual void Delete ()
 Delete a VTK object. More...
 
virtual void FastDelete ()
 Delete a reference to this object. More...
 
void InitializeObjectBase ()
 
void Print (ostream &os)
 Print an object to an ostream. More...
 
virtual void Register (vtkObjectBase *o)
 Increase the reference count (mark as used by another object). More...
 
virtual void UnRegister (vtkObjectBase *o)
 Decrease the reference count (release by another object). More...
 
int GetReferenceCount ()
 Return the current reference count of this object. More...
 
void SetReferenceCount (int)
 Sets the reference count. More...
 
void PrintRevisions (ostream &)
 Legacy. More...
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 

Static Public Member Functions

static vtkOrientationMarkerWidgetNew ()
 
static int IsTypeOf (const char *type)
 
static vtkOrientationMarkerWidgetSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkInteractorObserver
static int IsTypeOf (const char *type)
 
static vtkInteractorObserverSafeDownCast (vtkObjectBase *o)
 
static void ComputeDisplayToWorld (vtkRenderer *ren, double x, double y, double z, double worldPt[4])
 Convenience methods for outside classes. More...
 
static void ComputeWorldToDisplay (vtkRenderer *ren, double x, double y, double z, double displayPt[3])
 Convenience methods for outside classes. More...
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
static void BreakOnError ()
 This method is called when vtkErrorMacro executes. More...
 
static void SetGlobalWarningDisplay (int val)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static int GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 Return 1 if this class type is the same type of (or a subclass of) the named class. More...
 
static vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 

Protected Types

enum  WidgetState {
  Outside = 0, Inside, Translating, AdjustingP1,
  AdjustingP2, AdjustingP3, AdjustingP4
}
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkOrientationMarkerWidget ()
 
 ~vtkOrientationMarkerWidget ()
 
void OnLeftButtonDown ()
 
void OnLeftButtonUp ()
 
void OnMouseMove ()
 
int ComputeStateBasedOnPosition (int X, int Y, int *pos1, int *pos2)
 
void SetCursor (int state)
 
void MoveWidget (int X, int Y)
 
void ResizeTopLeft (int X, int Y)
 
void ResizeTopRight (int X, int Y)
 
void ResizeBottomLeft (int X, int Y)
 
void ResizeBottomRight (int X, int Y)
 
void SquareRenderer ()
 
void UpdateOutline ()
 
void UpdateViewport ()
 
- Protected Member Functions inherited from vtkInteractorObserver
 vtkInteractorObserver ()
 
 ~vtkInteractorObserver ()
 
virtual void RegisterPickers ()
 Register internal Pickers in the Picking Manager. More...
 
void UnRegisterPickers ()
 Unregister internal pickers from the Picking Manager. More...
 
virtual void PickersModified ()
 Update the pickers registered in the Picking Manager when pickers are modified. More...
 
vtkPickingManagerGetPickingManager ()
 Return the picking manager associated on the context on which the observer currently belong. More...
 
vtkAssemblyPathGetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker)
 Proceed to a pick, whether through the PickingManager if the picking is managed or directly using the picker, and return the assembly path. More...
 
int RequestCursorShape (int requestedShape)
 
virtual void StartInteraction ()
 Utility routines used to start and end interaction. More...
 
virtual void EndInteraction ()
 Utility routines used to start and end interaction. More...
 
void ComputeDisplayToWorld (double x, double y, double z, double worldPt[4])
 Helper method for subclasses. More...
 
void ComputeWorldToDisplay (double x, double y, double z, double displayPt[3])
 Helper method for subclasses. More...
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
 ~vtkObject () override
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 These methods allow a command to exclusively grab all events. More...
 
void InternalReleaseFocus ()
 These methods allow a command to exclusively grab all events. More...
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Static Protected Member Functions

static void ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 
- Static Protected Member Functions inherited from vtkInteractorObserver
static void ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 Handles the char widget activation event. More...
 

Protected Attributes

vtkRendererRenderer
 
vtkPropOrientationMarker
 
vtkPolyDataOutline
 
vtkActor2DOutlineActor
 
unsigned long StartEventObserverId
 
vtkOrientationMarkerWidgetObserver * Observer
 
int Interactive
 
int Tolerance
 
int Moving
 
double Viewport [4]
 
int StartPosition [2]
 
int State
 
- Protected Attributes inherited from vtkInteractorObserver
int Enabled
 
vtkCallbackCommandEventCallbackCommand
 
vtkCallbackCommandKeyPressCallbackCommand
 
float Priority
 
bool PickingManaged
 
int KeyPressActivation
 
char KeyPressActivationValue
 
vtkRenderWindowInteractorInteractor
 
vtkRendererCurrentRenderer
 
vtkRendererDefaultRenderer
 
unsigned long CharObserverTag
 
unsigned long DeleteObserverTag
 
vtkObserverMediatorObserverMediator
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

2D widget for manipulating a marker prop

This class provides support for interactively manipulating the position, size, and apparent orientation of a prop that represents an orientation marker. This class works by adding its internal renderer to an external "parent" renderer on a different layer. The input orientation marker is rendered as an overlay on the parent renderer and, thus, appears superposed over all props in the parent's scene. The camera view of the orientation the marker is made to match that of the parent's by means of an observer mechanism, giving the illusion that the orientation of the marker reflects that of the prop(s) in the parent's scene.

The widget listens to left mouse button and mouse movement events. It will change the cursor shape based on its location. If the cursor is over the overlay renderer, it will change the cursor shape to a SIZEALL shape or to a resize corner shape (e.g., SIZENW) if the cursor is near a corner. If the left mouse button is pressed and held down while moving, the overlay renderer, and hence, the orientation marker, is resized or moved. I the case of a resize operation, releasing the left mouse button causes the widget to enforce its renderer to be square. The diagonally opposite corner to the one moved is repositioned such that all edges of the renderer have the same length: the minimum.

To use this object, there are two key steps: 1) invoke SetInteractor() with the argument of the method a vtkRenderWindowInteractor, and 2) invoke SetOrientationMarker with an instance of vtkProp (see caveats below). Specifically, vtkAxesActor and vtkAnnotatedCubeActor are two classes designed to work with this class. A composite orientation marker can be generated by adding instances of vtkAxesActor and vtkAnnotatedCubeActor to a vtkPropAssembly, which can then be set as the input orientation marker. The widget can be also be set up in a non-interactive fashion by setting Ineractive to Off and sizing/placing the overlay renderer in its parent renderer by calling the widget's SetViewport method.

Thanks:
This class was based originally on Paraview's vtkPVAxesWidget.
Warning
The input orientation marker prop should calculate its bounds as though they are symmetric about it's origin. This must currently be done to correctly implement the camera synchronization between the ivar renderer and the renderer associated with the set interactor. Importantly, the InteractorStyle associated with the interactor must be of the type vtkInteractorStyle*Camera. Where desirable, the parent renderer should be set by the SetDefaultRenderer method. The parent renderer's number of layers is modified to 2 where required.
See also
vtkInteractorObserver vtkXYPlotWidget vtkScalarBarWidget vtkAxesActor vtkAnnotatedCubeActor
Examples:
vtkOrientationMarkerWidget (Examples)
Tests:
vtkOrientationMarkerWidget (Tests)

Definition at line 87 of file vtkOrientationMarkerWidget.h.

Member Typedef Documentation

Definition at line 91 of file vtkOrientationMarkerWidget.h.

Member Enumeration Documentation

Enumerator
Outside 
Inside 
Translating 
AdjustingP1 
AdjustingP2 
AdjustingP3 
AdjustingP4 

Definition at line 194 of file vtkOrientationMarkerWidget.h.

Constructor & Destructor Documentation

vtkOrientationMarkerWidget::vtkOrientationMarkerWidget ( )
protected
vtkOrientationMarkerWidget::~vtkOrientationMarkerWidget ( )
protected

Member Function Documentation

static vtkOrientationMarkerWidget* vtkOrientationMarkerWidget::New ( )
static
static int vtkOrientationMarkerWidget::IsTypeOf ( const char *  type)
static
virtual int vtkOrientationMarkerWidget::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class.

Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkInteractorObserver.

static vtkOrientationMarkerWidget* vtkOrientationMarkerWidget::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkOrientationMarkerWidget::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkInteractorObserver.

vtkOrientationMarkerWidget* vtkOrientationMarkerWidget::NewInstance ( ) const
void vtkOrientationMarkerWidget::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses.

Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

virtual void vtkOrientationMarkerWidget::SetOrientationMarker ( vtkProp prop)
virtual

Set/get the orientation marker to be displayed in this widget.

virtual vtkProp* vtkOrientationMarkerWidget::GetOrientationMarker ( )
virtual

Set/get the orientation marker to be displayed in this widget.

virtual void vtkOrientationMarkerWidget::SetEnabled ( int  )
virtual

Enable/disable the widget.

Default is 0 (disabled).

Reimplemented from vtkInteractorObserver.

void vtkOrientationMarkerWidget::ExecuteCameraUpdateEvent ( vtkObject o,
unsigned long  event,
void *  calldata 
)

Callback to keep the camera for the orientation marker up to date with the camera in the parent renderer.

void vtkOrientationMarkerWidget::SetInteractive ( int  state)

Set/get whether to allow this widget to be interactively moved/scaled.

Default is On.

virtual int vtkOrientationMarkerWidget::GetInteractive ( )
virtual

Set/get whether to allow this widget to be interactively moved/scaled.

Default is On.

virtual void vtkOrientationMarkerWidget::InteractiveOn ( )
virtual

Set/get whether to allow this widget to be interactively moved/scaled.

Default is On.

virtual void vtkOrientationMarkerWidget::InteractiveOff ( )
virtual

Set/get whether to allow this widget to be interactively moved/scaled.

Default is On.

void vtkOrientationMarkerWidget::SetOutlineColor ( double  r,
double  g,
double  b 
)

Set/get the color of the outline of this widget.

The outline is visible when (in interactive mode) the cursor is over this widget. Default is white (1,1,1).

double* vtkOrientationMarkerWidget::GetOutlineColor ( )

Set/get the color of the outline of this widget.

The outline is visible when (in interactive mode) the cursor is over this widget. Default is white (1,1,1).

virtual void vtkOrientationMarkerWidget::SetViewport ( double  ,
double  ,
double  ,
double   
)
virtual

Set/get the viewport to position/size this widget.

Coordinates are expressed as (xmin,ymin,xmax,ymax), where each coordinate is 0 <= coordinate <= 1.0. Default is bottom left corner (0,0,0.2,0.2). Note that this viewport is scaled with respect to the viewport of the current renderer i.e. if the viewport of the current renderer is (0.5, 0.5, 0.75, 0.75) and Viewport is set to (0, 0, 1, 1), the orientation marker will be confined to a viewport of (0.5, 0.5, 0.75, 0.75) in the render window.

See also
SetCurrentRenderer()
virtual void vtkOrientationMarkerWidget::SetViewport ( double  [4])
virtual

Set/get the viewport to position/size this widget.

Coordinates are expressed as (xmin,ymin,xmax,ymax), where each coordinate is 0 <= coordinate <= 1.0. Default is bottom left corner (0,0,0.2,0.2). Note that this viewport is scaled with respect to the viewport of the current renderer i.e. if the viewport of the current renderer is (0.5, 0.5, 0.75, 0.75) and Viewport is set to (0, 0, 1, 1), the orientation marker will be confined to a viewport of (0.5, 0.5, 0.75, 0.75) in the render window.

See also
SetCurrentRenderer()
virtual double* vtkOrientationMarkerWidget::GetViewport ( )
virtual

Set/get the viewport to position/size this widget.

Coordinates are expressed as (xmin,ymin,xmax,ymax), where each coordinate is 0 <= coordinate <= 1.0. Default is bottom left corner (0,0,0.2,0.2). Note that this viewport is scaled with respect to the viewport of the current renderer i.e. if the viewport of the current renderer is (0.5, 0.5, 0.75, 0.75) and Viewport is set to (0, 0, 1, 1), the orientation marker will be confined to a viewport of (0.5, 0.5, 0.75, 0.75) in the render window.

See also
SetCurrentRenderer()
virtual void vtkOrientationMarkerWidget::GetViewport ( double ,
double ,
double ,
double  
)
virtual

Set/get the viewport to position/size this widget.

Coordinates are expressed as (xmin,ymin,xmax,ymax), where each coordinate is 0 <= coordinate <= 1.0. Default is bottom left corner (0,0,0.2,0.2). Note that this viewport is scaled with respect to the viewport of the current renderer i.e. if the viewport of the current renderer is (0.5, 0.5, 0.75, 0.75) and Viewport is set to (0, 0, 1, 1), the orientation marker will be confined to a viewport of (0.5, 0.5, 0.75, 0.75) in the render window.

See also
SetCurrentRenderer()
virtual void vtkOrientationMarkerWidget::GetViewport ( double  [4])
virtual

Set/get the viewport to position/size this widget.

Coordinates are expressed as (xmin,ymin,xmax,ymax), where each coordinate is 0 <= coordinate <= 1.0. Default is bottom left corner (0,0,0.2,0.2). Note that this viewport is scaled with respect to the viewport of the current renderer i.e. if the viewport of the current renderer is (0.5, 0.5, 0.75, 0.75) and Viewport is set to (0, 0, 1, 1), the orientation marker will be confined to a viewport of (0.5, 0.5, 0.75, 0.75) in the render window.

See also
SetCurrentRenderer()
virtual void vtkOrientationMarkerWidget::SetTolerance ( int  )
virtual

The tolerance representing the distance to the widget (in pixels) in which the cursor is considered to be on the widget, or on a widget feature (e.g., a corner point or edge).

virtual int vtkOrientationMarkerWidget::GetTolerance ( )
virtual

The tolerance representing the distance to the widget (in pixels) in which the cursor is considered to be on the widget, or on a widget feature (e.g., a corner point or edge).

static void vtkOrientationMarkerWidget::ProcessEvents ( vtkObject object,
unsigned long  event,
void *  clientdata,
void *  calldata 
)
staticprotected
void vtkOrientationMarkerWidget::OnLeftButtonDown ( )
protected
void vtkOrientationMarkerWidget::OnLeftButtonUp ( )
protected
void vtkOrientationMarkerWidget::OnMouseMove ( )
protected
int vtkOrientationMarkerWidget::ComputeStateBasedOnPosition ( int  X,
int  Y,
int pos1,
int pos2 
)
protected
void vtkOrientationMarkerWidget::SetCursor ( int  state)
protected
void vtkOrientationMarkerWidget::MoveWidget ( int  X,
int  Y 
)
protected
void vtkOrientationMarkerWidget::ResizeTopLeft ( int  X,
int  Y 
)
protected
void vtkOrientationMarkerWidget::ResizeTopRight ( int  X,
int  Y 
)
protected
void vtkOrientationMarkerWidget::ResizeBottomLeft ( int  X,
int  Y 
)
protected
void vtkOrientationMarkerWidget::ResizeBottomRight ( int  X,
int  Y 
)
protected
void vtkOrientationMarkerWidget::SquareRenderer ( )
protected
void vtkOrientationMarkerWidget::UpdateOutline ( )
protected
void vtkOrientationMarkerWidget::UpdateViewport ( )
protected

Member Data Documentation

vtkRenderer* vtkOrientationMarkerWidget::Renderer
protected

Definition at line 164 of file vtkOrientationMarkerWidget.h.

vtkProp* vtkOrientationMarkerWidget::OrientationMarker
protected

Definition at line 165 of file vtkOrientationMarkerWidget.h.

vtkPolyData* vtkOrientationMarkerWidget::Outline
protected

Definition at line 166 of file vtkOrientationMarkerWidget.h.

vtkActor2D* vtkOrientationMarkerWidget::OutlineActor
protected

Definition at line 167 of file vtkOrientationMarkerWidget.h.

unsigned long vtkOrientationMarkerWidget::StartEventObserverId
protected

Definition at line 169 of file vtkOrientationMarkerWidget.h.

vtkOrientationMarkerWidgetObserver* vtkOrientationMarkerWidget::Observer
protected

Definition at line 180 of file vtkOrientationMarkerWidget.h.

int vtkOrientationMarkerWidget::Interactive
protected

Definition at line 182 of file vtkOrientationMarkerWidget.h.

int vtkOrientationMarkerWidget::Tolerance
protected

Definition at line 183 of file vtkOrientationMarkerWidget.h.

int vtkOrientationMarkerWidget::Moving
protected

Definition at line 184 of file vtkOrientationMarkerWidget.h.

double vtkOrientationMarkerWidget::Viewport[4]
protected

Definition at line 187 of file vtkOrientationMarkerWidget.h.

int vtkOrientationMarkerWidget::StartPosition[2]
protected

Definition at line 190 of file vtkOrientationMarkerWidget.h.

int vtkOrientationMarkerWidget::State
protected

Definition at line 193 of file vtkOrientationMarkerWidget.h.


The documentation for this class was generated from the following file: