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

Pans camera with x y mouse movements. More...

#include <vtkTrackballPan.h>

Inheritance diagram for vtkTrackballPan:
Inheritance graph
[legend]
Collaboration diagram for vtkTrackballPan:
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) override
 
void OnKeyUp (vtkRenderWindowInteractor *) override
 These methods are called on all registered manipulators, not just the active one. More...
 
void OnKeyDown (vtkRenderWindowInteractor *) override
 These methods are called on all registered manipulators, not just the active one. More...
 
void OnMouseMove (int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren) override
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
void OnButtonDown (int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren) override
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
void OnButtonUp (int x, int y, vtkRenderer *ren, vtkRenderWindowInteractor *iren) override
 Event bindings controlling the effects of pressing mouse buttons or moving the mouse. More...
 
- Public Member Functions inherited from vtkCameraManipulator
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 SetCenter (double, double, double)
 For setting the center of rotation. More...
 
virtual void SetCenter (double [3])
 For setting the center of rotation. More...
 
virtual doubleGetCenter ()
 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...
 
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...
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual vtkMTimeType GetMTime ()
 
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)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 

Static Public Member Functions

static vtkTrackballPanNew ()
 
static int IsTypeOf (const char *type)
 
static vtkTrackballPanSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkCameraManipulator
static vtkCameraManipulatorNew ()
 
static int IsTypeOf (const char *type)
 
static vtkCameraManipulatorSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkTrackballPan ()
 
 ~vtkTrackballPan () override
 
 vtkTrackballPan (const vtkTrackballPan &)=delete
 
void operator= (const vtkTrackballPan &)=delete
 
- Protected Member Functions inherited from vtkCameraManipulator
void ComputeDisplayCenter (vtkRenderer *ren)
 
 vtkCameraManipulator ()
 Get/Set the GUI helper. More...
 
 ~vtkCameraManipulator () override
 Get/Set the GUI helper. More...
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

std::unique_ptr< Internal > Internals
 
- Protected Attributes inherited from vtkCameraManipulator
char * ManipulatorName
 
int Button
 
int Shift
 
int Control
 
double Center [3]
 
double RotationFactor
 
double DisplayCenter [2]
 
vtkCameraManipulatorGUIHelperGUIHelper
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

Pans camera with x y mouse movements.

vtkTrackballPan allows the user to interactively manipulate the camera, the viewpoint of the scene. Moving the mouse down zooms in. Up zooms out. This manipulator has not been extended to parallel projection yet. It works in perspective by rotating the camera.

Definition at line 21 of file vtkTrackballPan.h.

Member Typedef Documentation

◆ Superclass

Definition at line 25 of file vtkTrackballPan.h.

Constructor & Destructor Documentation

◆ vtkTrackballPan() [1/2]

vtkTrackballPan::vtkTrackballPan ( )
protected

◆ ~vtkTrackballPan()

vtkTrackballPan::~vtkTrackballPan ( )
overrideprotected

◆ vtkTrackballPan() [2/2]

vtkTrackballPan::vtkTrackballPan ( const vtkTrackballPan )
protecteddelete

Member Function Documentation

◆ New()

static vtkTrackballPan* vtkTrackballPan::New ( )
static

◆ GetClassName()

virtual const char* vtkTrackballPan::GetClassName ( )
virtual

Reimplemented from vtkCameraManipulator.

◆ IsTypeOf()

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

◆ IsA()

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

Reimplemented from vtkCameraManipulator.

◆ SafeDownCast()

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

◆ PrintSelf()

void vtkTrackballPan::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Reimplemented from vtkCameraManipulator.

◆ OnKeyUp()

void vtkTrackballPan::OnKeyUp ( vtkRenderWindowInteractor iren)
overridevirtual

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.

Reimplemented from vtkCameraManipulator.

◆ OnKeyDown()

void vtkTrackballPan::OnKeyDown ( vtkRenderWindowInteractor iren)
overridevirtual

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.

Reimplemented from vtkCameraManipulator.

◆ OnMouseMove()

void vtkTrackballPan::OnMouseMove ( int  x,
int  y,
vtkRenderer ren,
vtkRenderWindowInteractor iren 
)
overridevirtual

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

Reimplemented from vtkCameraManipulator.

◆ OnButtonDown()

void vtkTrackballPan::OnButtonDown ( int  x,
int  y,
vtkRenderer ren,
vtkRenderWindowInteractor iren 
)
overridevirtual

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

Reimplemented from vtkCameraManipulator.

◆ OnButtonUp()

void vtkTrackballPan::OnButtonUp ( int  x,
int  y,
vtkRenderer ren,
vtkRenderWindowInteractor iren 
)
overridevirtual

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

Reimplemented from vtkCameraManipulator.

◆ operator=()

void vtkTrackballPan::operator= ( const vtkTrackballPan )
protecteddelete

Member Data Documentation

◆ Internals

std::unique_ptr<Internal> vtkTrackballPan::Internals
protected

Definition at line 48 of file vtkTrackballPan.h.


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