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

#include <vtkPVJoystickFly.h>

Inheritance diagram for vtkPVJoystickFly:
Collaboration diagram for vtkPVJoystickFly:

Public Member Functions

 vtkTypeMacro (vtkPVJoystickFly, 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
 
 vtkSetClampMacro (FlySpeed, double, 1, 30)
 
 vtkGetMacro (FlySpeed, double)
 
- 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)
 

Protected Member Functions

 vtkPVJoystickFly ()
 
 ~vtkPVJoystickFly () override
 
void Fly (vtkRenderer *ren, vtkRenderWindowInteractor *rwi, double scale, double speed)
 
void ComputeCameraAxes (vtkRenderer *)
 
 vtkPVJoystickFly (const vtkPVJoystickFly &)=delete
 
void operator= (const vtkPVJoystickFly &)=delete
 
- Protected Member Functions inherited from vtkCameraManipulator
 vtkCameraManipulator ()
 
 ~vtkCameraManipulator () override
 
void ComputeDisplayCenter (vtkRenderer *ren)
 

Protected Attributes

int In
 
int FlyFlag
 
double FlySpeed
 
double Scale
 
double LastRenderTime
 
double CameraXAxis [3]
 
double CameraYAxis [3]
 
double CameraZAxis [3]
 
- Protected Attributes inherited from vtkCameraManipulator
char * ManipulatorName
 
int Button
 
int Shift
 
int Control
 
double Center [3]
 
double RotationFactor
 
double DisplayCenter [2]
 
vtkCameraManipulatorGUIHelperGUIHelper
 

Additional Inherited Members

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

Detailed Description

Definition at line 15 of file vtkPVJoystickFly.h.

Constructor & Destructor Documentation

◆ vtkPVJoystickFly() [1/2]

vtkPVJoystickFly::vtkPVJoystickFly ( )
protected

Definition at line 27 of file vtkPVJoystickFly.cxx.

References CameraXAxis, CameraYAxis, CameraZAxis, FlyFlag, FlySpeed, In, and LastRenderTime.

◆ ~vtkPVJoystickFly()

vtkPVJoystickFly::~vtkPVJoystickFly ( )
overrideprotected

Definition at line 48 of file vtkPVJoystickFly.cxx.

◆ vtkPVJoystickFly() [2/2]

vtkPVJoystickFly::vtkPVJoystickFly ( const vtkPVJoystickFly )
protecteddelete

Member Function Documentation

◆ ComputeCameraAxes()

void vtkPVJoystickFly::ComputeCameraAxes ( vtkRenderer *  ren)
protected

◆ Fly()

void vtkPVJoystickFly::Fly ( vtkRenderer *  ren,
vtkRenderWindowInteractor *  rwi,
double  scale,
double  speed 
)
protected

Definition at line 89 of file vtkPVJoystickFly.cxx.

References FlyFlag, LastRenderTime, Pi, and size.

Referenced by OnButtonDown().

◆ OnButtonDown()

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

Reimplemented from vtkCameraManipulator.

Definition at line 53 of file vtkPVJoystickFly.cxx.

References Fly(), FlySpeed, and In.

◆ OnButtonUp()

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

Reimplemented from vtkCameraManipulator.

Definition at line 77 of file vtkPVJoystickFly.cxx.

References FlyFlag.

◆ OnMouseMove()

void vtkPVJoystickFly::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.

Definition at line 84 of file vtkPVJoystickFly.cxx.

◆ operator=()

void vtkPVJoystickFly::operator= ( const vtkPVJoystickFly )
protecteddelete

◆ PrintSelf()

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

Definition at line 247 of file vtkPVJoystickFly.cxx.

References QtCompat::endl(), and FlySpeed.

◆ vtkGetMacro()

vtkPVJoystickFly::vtkGetMacro ( FlySpeed  ,
double   
)

◆ vtkSetClampMacro()

vtkPVJoystickFly::vtkSetClampMacro ( FlySpeed  ,
double  ,
,
30   
)

Set and get the speed of flying.

◆ vtkTypeMacro()

vtkPVJoystickFly::vtkTypeMacro ( vtkPVJoystickFly  ,
vtkCameraManipulator   
)

Member Data Documentation

◆ CameraXAxis

double vtkPVJoystickFly::CameraXAxis[3]
protected

Definition at line 57 of file vtkPVJoystickFly.h.

Referenced by ComputeCameraAxes(), and vtkPVJoystickFly().

◆ CameraYAxis

double vtkPVJoystickFly::CameraYAxis[3]
protected

Definition at line 58 of file vtkPVJoystickFly.h.

Referenced by ComputeCameraAxes(), and vtkPVJoystickFly().

◆ CameraZAxis

double vtkPVJoystickFly::CameraZAxis[3]
protected

Definition at line 59 of file vtkPVJoystickFly.h.

Referenced by ComputeCameraAxes(), and vtkPVJoystickFly().

◆ FlyFlag

int vtkPVJoystickFly::FlyFlag
protected

Definition at line 52 of file vtkPVJoystickFly.h.

Referenced by Fly(), OnButtonUp(), and vtkPVJoystickFly().

◆ FlySpeed

double vtkPVJoystickFly::FlySpeed
protected

Definition at line 54 of file vtkPVJoystickFly.h.

Referenced by OnButtonDown(), PrintSelf(), and vtkPVJoystickFly().

◆ In

int vtkPVJoystickFly::In
protected

◆ LastRenderTime

double vtkPVJoystickFly::LastRenderTime
protected

Definition at line 56 of file vtkPVJoystickFly.h.

Referenced by Fly(), and vtkPVJoystickFly().

◆ Scale

double vtkPVJoystickFly::Scale
protected

Definition at line 55 of file vtkPVJoystickFly.h.


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