ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
vtkPVTrackballZoom Class Reference

#include <vtkPVTrackballZoom.h>

Inheritance diagram for vtkPVTrackballZoom:
Collaboration diagram for vtkPVTrackballZoom:

Public Member Functions

 vtkTypeMacro (vtkPVTrackballZoom, vtkCameraManipulator)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void OnMouseMove (int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
 
void OnButtonDown (int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
 
void OnButtonUp (int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *rwi) override
 
 vtkSetMacro (UseDollyForPerspectiveProjection, bool)
 
 vtkGetMacro (UseDollyForPerspectiveProjection, bool)
 
 vtkBooleanMacro (UseDollyForPerspectiveProjection, bool)
 
- Public Member Functions inherited from vtkCameraManipulator
 vtkTypeMacro (vtkCameraManipulator, vtkObject)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void StartInteraction ()
 
virtual void EndInteraction ()
 
virtual void OnKeyUp (vtkRenderWindowInteractor *iren)
 
virtual void OnKeyDown (vtkRenderWindowInteractor *iren)
 
 vtkSetMacro (Button, int)
 
 vtkGetMacro (Button, int)
 
 vtkSetMacro (Shift, int)
 
 vtkGetMacro (Shift, int)
 
 vtkBooleanMacro (Shift, int)
 
 vtkSetMacro (Control, int)
 
 vtkGetMacro (Control, int)
 
 vtkBooleanMacro (Control, int)
 
 vtkSetVector3Macro (Center, double)
 
 vtkGetVector3Macro (Center, double)
 
 vtkSetMacro (RotationFactor, double)
 
 vtkGetMacro (RotationFactor, double)
 
 vtkSetStringMacro (ManipulatorName)
 
 vtkGetStringMacro (ManipulatorName)
 
void SetGUIHelper (vtkCameraManipulatorGUIHelper *)
 
 vtkGetObjectMacro (GUIHelper, vtkCameraManipulatorGUIHelper)
 

Static Public Member Functions

static vtkPVTrackballZoomNew ()
 
- Static Public Member Functions inherited from vtkCameraManipulator
static vtkCameraManipulatorNew ()
 

Protected Member Functions

 vtkPVTrackballZoom ()
 
 ~vtkPVTrackballZoom () override
 
 vtkPVTrackballZoom (const vtkPVTrackballZoom &)=delete
 
void operator= (const vtkPVTrackballZoom &)=delete
 
- Protected Member Functions inherited from vtkCameraManipulator
 vtkCameraManipulator ()
 
 ~vtkCameraManipulator () override
 
void ComputeDisplayCenter (vtkRenderer *ren)
 

Protected Attributes

bool UseDollyForPerspectiveProjection
 
double ZoomScale
 
- Protected Attributes inherited from vtkCameraManipulator
char * ManipulatorName
 
int Button
 
int Shift
 
int Control
 
double Center [3]
 
double RotationFactor
 
double DisplayCenter [2]
 
vtkCameraManipulatorGUIHelperGUIHelper
 

Detailed Description

Definition at line 13 of file vtkPVTrackballZoom.h.

Constructor & Destructor Documentation

◆ vtkPVTrackballZoom() [1/2]

vtkPVTrackballZoom::vtkPVTrackballZoom ( )
protected

Definition at line 26 of file vtkPVTrackballZoom.cxx.

References UseDollyForPerspectiveProjection, and ZoomScale.

◆ ~vtkPVTrackballZoom()

vtkPVTrackballZoom::~vtkPVTrackballZoom ( )
overrideprotected

Definition at line 33 of file vtkPVTrackballZoom.cxx.

◆ vtkPVTrackballZoom() [2/2]

vtkPVTrackballZoom::vtkPVTrackballZoom ( const vtkPVTrackballZoom )
protecteddelete

Member Function Documentation

◆ New()

static vtkPVTrackballZoom* vtkPVTrackballZoom::New ( )
static

◆ OnButtonDown()

void vtkPVTrackballZoom::OnButtonDown ( int  x,
int  y,
vtkRenderer *  ren,
vtkRenderWindowInteractor *  rwi 
)
overridevirtual

Reimplemented from vtkCameraManipulator.

Reimplemented in vtkPVTrackballZoomToMouse.

Definition at line 38 of file vtkPVTrackballZoom.cxx.

References size, and ZoomScale.

◆ OnButtonUp()

void vtkPVTrackballZoom::OnButtonUp ( int  x,
int  y,
vtkRenderer *  ren,
vtkRenderWindowInteractor *  rwi 
)
overridevirtual

Reimplemented from vtkCameraManipulator.

Definition at line 55 of file vtkPVTrackballZoom.cxx.

◆ OnMouseMove()

void vtkPVTrackballZoom::OnMouseMove ( int  x,
int  y,
vtkRenderer *  ren,
vtkRenderWindowInteractor *  rwi 
)
overridevirtual

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

Reimplemented from vtkCameraManipulator.

Reimplemented in vtkPVTrackballZoomToMouse.

Definition at line 60 of file vtkPVTrackballZoom.cxx.

References y, and ZoomScale.

◆ operator=()

void vtkPVTrackballZoom::operator= ( const vtkPVTrackballZoom )
protecteddelete

◆ PrintSelf()

void vtkPVTrackballZoom::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override

◆ vtkBooleanMacro()

vtkPVTrackballZoom::vtkBooleanMacro ( UseDollyForPerspectiveProjection  ,
bool   
)

◆ vtkGetMacro()

vtkPVTrackballZoom::vtkGetMacro ( UseDollyForPerspectiveProjection  ,
bool   
)

◆ vtkSetMacro()

vtkPVTrackballZoom::vtkSetMacro ( UseDollyForPerspectiveProjection  ,
bool   
)

Set this to false (true by default) to not dolly in case of perspective projection and use zoom i.e. change view angle, instead.

◆ vtkTypeMacro()

vtkPVTrackballZoom::vtkTypeMacro ( vtkPVTrackballZoom  ,
vtkCameraManipulator   
)

Member Data Documentation

◆ UseDollyForPerspectiveProjection

bool vtkPVTrackballZoom::UseDollyForPerspectiveProjection
protected

Definition at line 50 of file vtkPVTrackballZoom.h.

Referenced by PrintSelf(), and vtkPVTrackballZoom().

◆ ZoomScale

double vtkPVTrackballZoom::ZoomScale
protected

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