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

interactive manipulation of the camera More...

#include <vtkPVInteractorStyle.h>

Inherits vtkInteractorStyleTrackballCamera.

Collaboration diagram for vtkPVInteractorStyle:
Collaboration graph
[legend]

Public Types

typedef vtkInteractorStyleTrackballCamera Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void OnChar ()
 Overrides superclass behaviors to only support the key codes that make sense in a ParaView application. More...
 
void AddManipulator (vtkCameraManipulator *m)
 Access to adding or removing manipulators. More...
 
void RemoveAllManipulators ()
 Removes all manipulators. More...
 
virtual vtkCameraManipulatorFindManipulator (int button, int shift, int control)
 Returns the chosen manipulator based on the modifiers. More...
 
virtual void OnMouseMove ()
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
virtual void OnLeftButtonDown ()
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
virtual void OnLeftButtonUp ()
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
virtual void OnMiddleButtonDown ()
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
virtual void OnMiddleButtonUp ()
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
virtual void OnRightButtonDown ()
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
virtual void OnRightButtonUp ()
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
virtual void OnKeyDown ()
 Unlike mouse events, these are forwarded to all camera manipulators since we don't have a mechanism to activate a manipulator by key presses currently. More...
 
virtual void OnKeyUp ()
 Unlike mouse events, these are forwarded to all camera manipulators since we don't have a mechanism to activate a manipulator by key presses currently. More...
 
virtual vtkCollection * GetCameraManipulators ()
 Accessor for the collection of camera manipulators. More...
 
virtual void SetCenterOfRotation (double, double, double)
 Propagates the center to the manipulators. More...
 
virtual void SetCenterOfRotation (double [3])
 Propagates the center to the manipulators. More...
 
virtual double * GetCenterOfRotation ()
 Propagates the center to the manipulators. More...
 
virtual void GetCenterOfRotation (double &, double &, double &)
 Propagates the center to the manipulators. More...
 
virtual void GetCenterOfRotation (double [3])
 Propagates the center to the manipulators. More...
 
virtual void SetRotationFactor (double)
 Propagates the rotation factor to the manipulators. More...
 
virtual double GetRotationFactor ()
 Propagates the rotation factor to the manipulators. More...
 

Static Public Member Functions

static vtkPVInteractorStyleNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPVInteractorStyleSafeDownCast (vtkObject *o)
 
static void DollyToPosition (double fact, int *position, vtkRenderer *renderer)
 Dolly the renderer's camera to a specific point. More...
 
static void TranslateCamera (vtkRenderer *renderer, int toX, int toY, int fromX, int fromY)
 Translate the renderer's camera. More...
 

Protected Member Functions

 vtkPVInteractorStyle ()
 
 ~vtkPVInteractorStyle ()
 
virtual void Dolly (double factor)
 
void OnButtonDown (int button, int shift, int control)
 
void OnButtonUp (int button)
 
void ResetLights ()
 
 vtkPVInteractorStyle (const vtkPVInteractorStyle &) VTK_DELETE_FUNCTION
 
void operator= (const vtkPVInteractorStyle &) VTK_DELETE_FUNCTION
 

Protected Attributes

vtkCameraManipulatorCurrentManipulator
 
double CenterOfRotation [3]
 
double RotationFactor
 
vtkCollection * CameraManipulators
 

Detailed Description

interactive manipulation of the camera

vtkPVInteractorStyle allows the user to interactively manipulate the camera, the viewpoint of the scene. The left button is for rotation; shift + left button is for rolling; the right button is for panning; and shift + right button is for zooming. This class fires vtkCommand::StartInteractionEvent and vtkCommand::EndInteractionEvent to signal start and end of interaction.

Definition at line 36 of file vtkPVInteractorStyle.h.

Member Typedef Documentation

◆ Superclass

typedef vtkInteractorStyleTrackballCamera vtkPVInteractorStyle::Superclass

Definition at line 41 of file vtkPVInteractorStyle.h.

Constructor & Destructor Documentation

◆ vtkPVInteractorStyle() [1/2]

vtkPVInteractorStyle::vtkPVInteractorStyle ( )
protected

◆ ~vtkPVInteractorStyle()

vtkPVInteractorStyle::~vtkPVInteractorStyle ( )
protected

◆ vtkPVInteractorStyle() [2/2]

vtkPVInteractorStyle::vtkPVInteractorStyle ( const vtkPVInteractorStyle )
protected

Member Function Documentation

◆ New()

static vtkPVInteractorStyle* vtkPVInteractorStyle::New ( )
static

◆ GetClassName()

virtual const char* vtkPVInteractorStyle::GetClassName ( )
virtual

◆ IsTypeOf()

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

◆ IsA()

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

◆ SafeDownCast()

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

◆ PrintSelf()

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

◆ OnMouseMove()

virtual void vtkPVInteractorStyle::OnMouseMove ( )
virtual

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

◆ OnLeftButtonDown()

virtual void vtkPVInteractorStyle::OnLeftButtonDown ( )
virtual

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

◆ OnLeftButtonUp()

virtual void vtkPVInteractorStyle::OnLeftButtonUp ( )
virtual

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

◆ OnMiddleButtonDown()

virtual void vtkPVInteractorStyle::OnMiddleButtonDown ( )
virtual

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

◆ OnMiddleButtonUp()

virtual void vtkPVInteractorStyle::OnMiddleButtonUp ( )
virtual

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

◆ OnRightButtonDown()

virtual void vtkPVInteractorStyle::OnRightButtonDown ( )
virtual

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

◆ OnRightButtonUp()

virtual void vtkPVInteractorStyle::OnRightButtonUp ( )
virtual

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

◆ OnKeyDown()

virtual void vtkPVInteractorStyle::OnKeyDown ( )
virtual

Unlike mouse events, these are forwarded to all camera manipulators since we don't have a mechanism to activate a manipulator by key presses currently.

◆ OnKeyUp()

virtual void vtkPVInteractorStyle::OnKeyUp ( )
virtual

Unlike mouse events, these are forwarded to all camera manipulators since we don't have a mechanism to activate a manipulator by key presses currently.

◆ OnChar()

virtual void vtkPVInteractorStyle::OnChar ( )
virtual

Overrides superclass behaviors to only support the key codes that make sense in a ParaView application.

◆ AddManipulator()

void vtkPVInteractorStyle::AddManipulator ( vtkCameraManipulator m)

Access to adding or removing manipulators.

◆ RemoveAllManipulators()

void vtkPVInteractorStyle::RemoveAllManipulators ( )

Removes all manipulators.

◆ GetCameraManipulators()

virtual vtkCollection* vtkPVInteractorStyle::GetCameraManipulators ( )
virtual

Accessor for the collection of camera manipulators.

◆ SetCenterOfRotation() [1/2]

virtual void vtkPVInteractorStyle::SetCenterOfRotation ( double  ,
double  ,
double   
)
virtual

Propagates the center to the manipulators.

This simply sets an interal ivar. It is propagated to a manipulator before the event is sent to it. Also changing the CenterOfRotation during interaction i.e. after a button press but before a button up has no effect until the next button press.

◆ SetCenterOfRotation() [2/2]

virtual void vtkPVInteractorStyle::SetCenterOfRotation ( double  [3])
virtual

Propagates the center to the manipulators.

This simply sets an interal ivar. It is propagated to a manipulator before the event is sent to it. Also changing the CenterOfRotation during interaction i.e. after a button press but before a button up has no effect until the next button press.

◆ GetCenterOfRotation() [1/3]

virtual double* vtkPVInteractorStyle::GetCenterOfRotation ( )
virtual

Propagates the center to the manipulators.

This simply sets an interal ivar. It is propagated to a manipulator before the event is sent to it. Also changing the CenterOfRotation during interaction i.e. after a button press but before a button up has no effect until the next button press.

◆ GetCenterOfRotation() [2/3]

virtual void vtkPVInteractorStyle::GetCenterOfRotation ( double &  ,
double &  ,
double &   
)
virtual

Propagates the center to the manipulators.

This simply sets an interal ivar. It is propagated to a manipulator before the event is sent to it. Also changing the CenterOfRotation during interaction i.e. after a button press but before a button up has no effect until the next button press.

◆ GetCenterOfRotation() [3/3]

virtual void vtkPVInteractorStyle::GetCenterOfRotation ( double  [3])
virtual

Propagates the center to the manipulators.

This simply sets an interal ivar. It is propagated to a manipulator before the event is sent to it. Also changing the CenterOfRotation during interaction i.e. after a button press but before a button up has no effect until the next button press.

◆ SetRotationFactor()

virtual void vtkPVInteractorStyle::SetRotationFactor ( double  )
virtual

Propagates the rotation factor to the manipulators.

This simply sets an interal ivar. It is propagated to a manipulator before the event is sent to it. Also changing the RotationFactor during interaction i.e. after a button press but before a button up has no effect until the next button press.

◆ GetRotationFactor()

virtual double vtkPVInteractorStyle::GetRotationFactor ( )
virtual

Propagates the rotation factor to the manipulators.

This simply sets an interal ivar. It is propagated to a manipulator before the event is sent to it. Also changing the RotationFactor during interaction i.e. after a button press but before a button up has no effect until the next button press.

◆ FindManipulator()

virtual vtkCameraManipulator* vtkPVInteractorStyle::FindManipulator ( int  button,
int  shift,
int  control 
)
virtual

Returns the chosen manipulator based on the modifiers.

◆ DollyToPosition()

static void vtkPVInteractorStyle::DollyToPosition ( double  fact,
int *  position,
vtkRenderer *  renderer 
)
static

Dolly the renderer's camera to a specific point.

◆ TranslateCamera()

static void vtkPVInteractorStyle::TranslateCamera ( vtkRenderer *  renderer,
int  toX,
int  toY,
int  fromX,
int  fromY 
)
static

Translate the renderer's camera.

◆ Dolly()

virtual void vtkPVInteractorStyle::Dolly ( double  factor)
protectedvirtual

◆ OnButtonDown()

void vtkPVInteractorStyle::OnButtonDown ( int  button,
int  shift,
int  control 
)
protected

◆ OnButtonUp()

void vtkPVInteractorStyle::OnButtonUp ( int  button)
protected

◆ ResetLights()

void vtkPVInteractorStyle::ResetLights ( )
protected

◆ operator=()

void vtkPVInteractorStyle::operator= ( const vtkPVInteractorStyle )
protected

Member Data Documentation

◆ CurrentManipulator

vtkCameraManipulator* vtkPVInteractorStyle::CurrentManipulator
protected

Definition at line 142 of file vtkPVInteractorStyle.h.

◆ CenterOfRotation

double vtkPVInteractorStyle::CenterOfRotation[3]
protected

Definition at line 143 of file vtkPVInteractorStyle.h.

◆ RotationFactor

double vtkPVInteractorStyle::RotationFactor
protected

Definition at line 144 of file vtkPVInteractorStyle.h.

◆ CameraManipulators

vtkCollection* vtkPVInteractorStyle::CameraManipulators
protected

Definition at line 147 of file vtkPVInteractorStyle.h.


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