ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkPVTrackballRotate Class Reference

Rotates camera with xy mouse movement. More...

#include <vtkPVTrackballRotate.h>

Inheritance diagram for vtkPVTrackballRotate:
Inheritance graph
[legend]
Collaboration diagram for vtkPVTrackballRotate:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void OnMouseMove (int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi)
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
virtual void OnButtonDown (int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi)
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
virtual void OnButtonUp (int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi)
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
virtual void OnKeyUp (vtkRenderWindowInteractor *iren)
 These methods are called on all registered manipulators, not just the active one. More...
 
virtual void OnKeyDown (vtkRenderWindowInteractor *iren)
 These methods are called on all registered manipulators, not just the active one. More...
 
virtual void SetCenter (double, double, double)
 For setting the center of rotation. More...
 
virtual void SetCenter (double [3])
 For setting the center of rotation. More...
 
virtual double * GetCenter ()
 For setting the center of rotation. More...
 
virtual void GetCenter (double &, double &, double &)
 For setting the center of rotation. More...
 
virtual void GetCenter (double [3])
 For setting the center of rotation. More...
 
- Public Member Functions inherited from vtkCameraManipulator
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void StartInteraction ()
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
virtual void EndInteraction ()
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
virtual void SetButton (int)
 These settings determine which button and modifiers the manipulator responds to. More...
 
virtual int GetButton ()
 These settings determine which button and modifiers the manipulator responds to. More...
 
virtual void SetShift (int)
 These settings determine which button and modifiers the manipulator responds to. More...
 
virtual int GetShift ()
 These settings determine which button and modifiers the manipulator responds to. More...
 
virtual void ShiftOn ()
 These settings determine which button and modifiers the manipulator responds to. More...
 
virtual void ShiftOff ()
 These settings determine which button and modifiers the manipulator responds to. More...
 
virtual void SetControl (int)
 These settings determine which button and modifiers the manipulator responds to. More...
 
virtual int GetControl ()
 These settings determine which button and modifiers the manipulator responds to. More...
 
virtual void ControlOn ()
 These settings determine which button and modifiers the manipulator responds to. More...
 
virtual void ControlOff ()
 These settings determine which button and modifiers the manipulator responds to. More...
 
virtual void SetRotationFactor (double)
 Set and get the rotation factor. More...
 
virtual double GetRotationFactor ()
 Set and get the rotation factor. More...
 
virtual void SetManipulatorName (const char *)
 Set and get the manipulator name. More...
 
virtual char * GetManipulatorName ()
 Set and get the manipulator name. More...
 
void SetGUIHelper (vtkCameraManipulatorGUIHelper *)
 Get/Set the GUI helper. More...
 
virtual vtkCameraManipulatorGUIHelperGetGUIHelper ()
 Get/Set the GUI helper. More...
 

Static Public Member Functions

static vtkPVTrackballRotateNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPVTrackballRotateSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkCameraManipulator
static vtkCameraManipulatorNew ()
 
static int IsTypeOf (const char *type)
 
static vtkCameraManipulatorSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkPVTrackballRotate (const vtkPVTrackballRotate &) VTK_DELETE_FUNCTION
 
void operator= (const vtkPVTrackballRotate &) VTK_DELETE_FUNCTION
 
- Protected Member Functions inherited from vtkCameraManipulator
void ComputeDisplayCenter (vtkRenderer *ren)
 
 vtkCameraManipulator ()
 Get/Set the GUI helper. More...
 
 ~vtkCameraManipulator ()
 Get/Set the GUI helper. More...
 

Protected Attributes

double Center [3]
 
double DisplayCenter [2]
 
char KeyCode
 
- Protected Attributes inherited from vtkCameraManipulator
char * ManipulatorName
 
int Button
 
int Shift
 
int Control
 
double Center [3]
 
double RotationFactor
 
double DisplayCenter [2]
 
vtkCameraManipulatorGUIHelperGUIHelper
 
virtual char GetKeyCode ()
 Returns the currently pressed key code. More...
 
 vtkPVTrackballRotate ()
 Returns the currently pressed key code. More...
 
 ~vtkPVTrackballRotate ()
 Returns the currently pressed key code. More...
 

Detailed Description

Rotates camera with xy mouse movement.

vtkPVTrackballRotate allows the user to interactively manipulate the camera, the viewpoint of the scene.

Definition at line 29 of file vtkPVTrackballRotate.h.

Member Typedef Documentation

§ Superclass

Definition at line 33 of file vtkPVTrackballRotate.h.

Constructor & Destructor Documentation

§ vtkPVTrackballRotate() [1/2]

vtkPVTrackballRotate::vtkPVTrackballRotate ( )
protected

Returns the currently pressed key code.

§ ~vtkPVTrackballRotate()

vtkPVTrackballRotate::~vtkPVTrackballRotate ( )
protected

Returns the currently pressed key code.

§ vtkPVTrackballRotate() [2/2]

vtkPVTrackballRotate::vtkPVTrackballRotate ( const vtkPVTrackballRotate )
protected

Member Function Documentation

§ New()

static vtkPVTrackballRotate* vtkPVTrackballRotate::New ( )
static

§ GetClassName()

virtual const char* vtkPVTrackballRotate::GetClassName ( )
virtual

Reimplemented from vtkCameraManipulator.

§ IsTypeOf()

static int vtkPVTrackballRotate::IsTypeOf ( const char *  type)
static

§ IsA()

virtual int vtkPVTrackballRotate::IsA ( const char *  type)
virtual

Reimplemented from vtkCameraManipulator.

§ SafeDownCast()

static vtkPVTrackballRotate* vtkPVTrackballRotate::SafeDownCast ( vtkObject *  o)
static

§ PrintSelf()

void vtkPVTrackballRotate::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

§ OnMouseMove()

virtual void vtkPVTrackballRotate::OnMouseMove ( int  x,
int  y,
vtkRenderer *  ren,
vtkRenderWindowInteractor *  rwi 
)
virtual

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkCameraManipulator.

§ OnButtonDown()

virtual void vtkPVTrackballRotate::OnButtonDown ( int  x,
int  y,
vtkRenderer *  ren,
vtkRenderWindowInteractor *  rwi 
)
virtual

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkCameraManipulator.

§ OnButtonUp()

virtual void vtkPVTrackballRotate::OnButtonUp ( int  x,
int  y,
vtkRenderer *  ren,
vtkRenderWindowInteractor *  rwi 
)
virtual

Event bindings controlling the effects of pressing mouse buttons or moving the mouse.

Reimplemented from vtkCameraManipulator.

§ OnKeyUp()

virtual void vtkPVTrackballRotate::OnKeyUp ( vtkRenderWindowInteractor *  iren)
virtual

These methods are called on all registered manipulators, not just the active one.

Hence, these should just be used to record state and not perform any interactions. Overridden to capture if the x,y,z key is pressed.

Reimplemented from vtkCameraManipulator.

§ OnKeyDown()

virtual void vtkPVTrackballRotate::OnKeyDown ( vtkRenderWindowInteractor *  iren)
virtual

These methods are called on all registered manipulators, not just the active one.

Hence, these should just be used to record state and not perform any interactions. Overridden to capture if the x,y,z key is pressed.

Reimplemented from vtkCameraManipulator.

§ SetCenter() [1/2]

virtual void vtkPVTrackballRotate::SetCenter ( double  ,
double  ,
double   
)
virtual

For setting the center of rotation.

Reimplemented from vtkCameraManipulator.

§ SetCenter() [2/2]

virtual void vtkPVTrackballRotate::SetCenter ( double  [3])
virtual

For setting the center of rotation.

Reimplemented from vtkCameraManipulator.

§ GetCenter() [1/3]

virtual double* vtkPVTrackballRotate::GetCenter ( )
virtual

For setting the center of rotation.

Reimplemented from vtkCameraManipulator.

§ GetCenter() [2/3]

virtual void vtkPVTrackballRotate::GetCenter ( double &  ,
double &  ,
double &   
)
virtual

For setting the center of rotation.

Reimplemented from vtkCameraManipulator.

§ GetCenter() [3/3]

virtual void vtkPVTrackballRotate::GetCenter ( double  [3])
virtual

For setting the center of rotation.

Reimplemented from vtkCameraManipulator.

§ GetKeyCode()

virtual char vtkPVTrackballRotate::GetKeyCode ( )
virtual

Returns the currently pressed key code.

§ operator=()

void vtkPVTrackballRotate::operator= ( const vtkPVTrackballRotate )
protected

Member Data Documentation

§ Center

double vtkPVTrackballRotate::Center[3]
protected

Definition at line 76 of file vtkPVTrackballRotate.h.

§ DisplayCenter

double vtkPVTrackballRotate::DisplayCenter[2]
protected

Definition at line 77 of file vtkPVTrackballRotate.h.

§ KeyCode

char vtkPVTrackballRotate::KeyCode
protected

Definition at line 79 of file vtkPVTrackballRotate.h.


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