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

OpenGL camera. More...

#include <vtkOpenGLCamera.h>

Inheritance diagram for vtkOpenGLCamera:
[legend]
Collaboration diagram for vtkOpenGLCamera:
[legend]

Public Types

typedef vtkCamera Superclass
 
typedef vtkCamera Superclass
 
- Public Types inherited from vtkCamera
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkOpenGLCamera * NewInstance () const
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
void Render (vtkRenderer *ren)
 
void UpdateViewport (vtkRenderer *ren)
 
virtual int IsA (const char *type)
 
vtkOpenGLCamera * NewInstance () const
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
void Render (vtkRenderer *ren)
 
void UpdateViewport (vtkRenderer *ren)
 
void GetKeyMatrices (vtkRenderer *ren, vtkMatrix4x4 *&WCVCMatrix, vtkMatrix3x3 *&normalMatrix, vtkMatrix4x4 *&VCDCMatrix, vtkMatrix4x4 *&WCDCMatrix)
 
- Public Member Functions inherited from vtkCamera
vtkCamera * NewInstance () const
 
void OrthogonalizeViewUp ()
 
void SetDistance (double)
 
void Dolly (double value)
 
void Roll (double angle)
 
void Azimuth (double angle)
 
void Yaw (double angle)
 
void Elevation (double angle)
 
void Pitch (double angle)
 
void Zoom (double factor)
 
void SetObliqueAngles (double alpha, double beta)
 
void ApplyTransform (vtkTransform *t)
 
void GetEyePlaneNormal (double normal[3])
 
void SetEyeTransformMatrix (const double elements[16])
 
void SetModelTransformMatrix (const double elements[16])
 
virtual vtkMatrix4x4 * GetModelViewTransformMatrix ()
 
virtual vtkTransform * GetModelViewTransformObject ()
 
virtual vtkMatrix4x4 * GetViewTransformMatrix ()
 
virtual vtkTransform * GetViewTransformObject ()
 
virtual vtkMatrix4x4 * GetProjectionTransformMatrix (vtkRenderer *ren)
 
unsigned long GetViewingRaysMTime ()
 
void ViewingRaysModified ()
 
virtual void GetFrustumPlanes (double aspect, double planes[24])
 
void ComputeViewPlaneNormal ()
 
vtkMatrix4x4 * GetCameraLightTransformMatrix ()
 
virtual void UpdateViewport (vtkRenderer *vtkNotUsed(ren))
 
void ShallowCopy (vtkCamera *source)
 
void DeepCopy (vtkCamera *source)
 
void SetPosition (double x, double y, double z)
 
void SetPosition (const double a[3])
 
virtual double * GetPosition ()
 
virtual void GetPosition (double &, double &, double &)
 
virtual void GetPosition (double [3])
 
void SetFocalPoint (double x, double y, double z)
 
void SetFocalPoint (const double a[3])
 
virtual double * GetFocalPoint ()
 
virtual void GetFocalPoint (double &, double &, double &)
 
virtual void GetFocalPoint (double [3])
 
void SetViewUp (double vx, double vy, double vz)
 
void SetViewUp (const double a[3])
 
virtual double * GetViewUp ()
 
virtual void GetViewUp (double &, double &, double &)
 
virtual void GetViewUp (double [3])
 
virtual double GetDistance ()
 
virtual double * GetDirectionOfProjection ()
 
virtual void GetDirectionOfProjection (double &, double &, double &)
 
virtual void GetDirectionOfProjection (double [3])
 
void SetRoll (double angle)
 
double GetRoll ()
 
void SetParallelProjection (int flag)
 
virtual int GetParallelProjection ()
 
virtual void ParallelProjectionOn ()
 
virtual void ParallelProjectionOff ()
 
void SetUseHorizontalViewAngle (int flag)
 
virtual int GetUseHorizontalViewAngle ()
 
virtual void UseHorizontalViewAngleOn ()
 
virtual void UseHorizontalViewAngleOff ()
 
void SetViewAngle (double angle)
 
virtual double GetViewAngle ()
 
void SetParallelScale (double scale)
 
virtual double GetParallelScale ()
 
void SetClippingRange (double dNear, double dFar)
 
void SetClippingRange (const double a[2])
 
virtual double * GetClippingRange ()
 
virtual void GetClippingRange (double &, double &)
 
virtual void GetClippingRange (double [2])
 
void SetThickness (double)
 
virtual double GetThickness ()
 
void SetWindowCenter (double x, double y)
 
virtual double * GetWindowCenter ()
 
virtual void GetWindowCenter (double &, double &)
 
virtual void GetWindowCenter (double [2])
 
virtual double * GetViewPlaneNormal ()
 
virtual void GetViewPlaneNormal (double &, double &, double &)
 
virtual void GetViewPlaneNormal (double [3])
 
void SetViewShear (double dxdz, double dydz, double center)
 
void SetViewShear (double d[3])
 
virtual double * GetViewShear ()
 
virtual void GetViewShear (double &, double &, double &)
 
virtual void GetViewShear (double [3])
 
virtual void SetEyeAngle (double)
 
virtual double GetEyeAngle ()
 
virtual void SetFocalDisk (double)
 
virtual double GetFocalDisk ()
 
virtual void SetUseOffAxisProjection (int)
 
virtual int GetUseOffAxisProjection ()
 
virtual void UseOffAxisProjectionOn ()
 
virtual void UseOffAxisProjectionOff ()
 
virtual void SetScreenBottomLeft (double, double, double)
 
virtual void SetScreenBottomLeft (double [3])
 
virtual double * GetScreenBottomLeft ()
 
virtual void GetScreenBottomLeft (double &, double &, double &)
 
virtual void GetScreenBottomLeft (double [3])
 
virtual void SetScreenBottomRight (double, double, double)
 
virtual void SetScreenBottomRight (double [3])
 
virtual double * GetScreenBottomRight ()
 
virtual void GetScreenBottomRight (double &, double &, double &)
 
virtual void GetScreenBottomRight (double [3])
 
virtual void SetScreenTopRight (double, double, double)
 
virtual void SetScreenTopRight (double [3])
 
virtual double * GetScreenTopRight ()
 
virtual void GetScreenTopRight (double &, double &, double &)
 
virtual void GetScreenTopRight (double [3])
 
virtual void SetEyeSeparation (double)
 
virtual double GetEyeSeparation ()
 
void SetEyePosition (double eyePosition[3])
 
void GetEyePosition (double eyePosition[3])
 
void SetEyeTransformMatrix (vtkMatrix4x4 *matrix)
 
virtual vtkMatrix4x4 * GetEyeTransformMatrix ()
 
void SetModelTransformMatrix (vtkMatrix4x4 *matrix)
 
virtual vtkMatrix4x4 * GetModelTransformMatrix ()
 
virtual vtkMatrix4x4 * GetProjectionTransformMatrix (double aspect, double nearz, double farz)
 
virtual vtkPerspectiveTransform * GetProjectionTransformObject (double aspect, double nearz, double farz)
 
virtual vtkMatrix4x4 * GetCompositeProjectionTransformMatrix (double aspect, double nearz, double farz)
 
void SetUserViewTransform (vtkHomogeneousTransform *transform)
 
virtual vtkHomogeneousTransform * GetUserViewTransform ()
 
void SetUserTransform (vtkHomogeneousTransform *transform)
 
virtual vtkHomogeneousTransform * GetUserTransform ()
 
double * GetOrientation ()
 
double * GetOrientationWXYZ ()
 
virtual void SetLeftEye (int)
 
virtual int GetLeftEye ()
 
virtual void SetFreezeFocalPoint (bool)
 
virtual bool GetFreezeFocalPoint ()
 
- Public Member Functions inherited from vtkObject
vtkObject * NewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual unsigned long GetMTime ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommand * GetCommand (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 *)
 
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)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
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)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- 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)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkOpenGLCamera * New ()
 
static int IsTypeOf (const char *type)
 
static vtkOpenGLCamera * SafeDownCast (vtkObjectBase *o)
 
static vtkOpenGLCamera * New ()
 
static int IsTypeOf (const char *type)
 
static vtkOpenGLCamera * SafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkCamera
static int IsTypeOf (const char *type)
 
static vtkCamera * SafeDownCast (vtkObjectBase *o)
 
static vtkCamera * New ()
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObject * SafeDownCast (vtkObjectBase *o)
 
static vtkObject * New ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBase * New ()
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkOpenGLCamera ()
 
 ~vtkOpenGLCamera ()
 
virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkOpenGLCamera ()
 
 ~vtkOpenGLCamera ()
 
- Protected Member Functions inherited from vtkCamera
 vtkCamera ()
 
 ~vtkCamera ()
 
void ComputeCameraLightTransform ()
 
void ComputeWorldToScreenMatrix ()
 
void ComputeOffAxisProjectionFrustum ()
 
void ComputeModelViewMatrix ()
 
void PartialCopy (vtkCamera *source)
 
void ComputeDistance ()
 
virtual void ComputeViewTransform ()
 
virtual void ComputeProjectionTransform (double aspect, double nearz, double farz)
 
void ComputeCompositeProjectionTransform (double aspect, double nearz, double farz)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
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

vtkMatrix4x4 * WCDCMatrix
 
vtkMatrix4x4 * WCVCMatrix
 
vtkMatrix3x3 * NormalMatrix
 
vtkMatrix4x4 * VCDCMatrix
 
vtkTimeStamp KeyMatrixTime
 
vtkRenderer * LastRenderer
 
- Protected Attributes inherited from vtkCamera
double WindowCenter [2]
 
double ObliqueAngles [2]
 
double FocalPoint [3]
 
double Position [3]
 
double ViewUp [3]
 
double ViewAngle
 
double ClippingRange [2]
 
double EyeAngle
 
int ParallelProjection
 
double ParallelScale
 
int Stereo
 
int LeftEye
 
double Thickness
 
double Distance
 
double DirectionOfProjection [3]
 
double ViewPlaneNormal [3]
 
double ViewShear [3]
 
int UseHorizontalViewAngle
 
int UseOffAxisProjection
 
double ScreenBottomLeft [3]
 
double ScreenBottomRight [3]
 
double ScreenTopRight [3]
 
double EyeSeparation
 
vtkMatrix4x4 * WorldToScreenMatrix
 
vtkTimeStamp WorldToScreenMatrixMTime
 
vtkMatrix4x4 * EyeTransformMatrix
 
vtkMatrix4x4 * ModelTransformMatrix
 
vtkHomogeneousTransform * UserTransform
 
vtkHomogeneousTransform * UserViewTransform
 
vtkTransform * ViewTransform
 
vtkPerspectiveTransform * ProjectionTransform
 
vtkPerspectiveTransform * Transform
 
vtkTransform * CameraLightTransform
 
vtkTransform * ModelViewTransform
 
double FocalDisk
 
vtkCameraCallbackCommand * UserViewTransformCallbackCommand
 
vtkTimeStamp ViewingRaysMTime
 
bool FreezeFocalPoint
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

OpenGL camera.

vtkOpenGLCamera is a concrete implementation of the abstract class vtkCamera. vtkOpenGLCamera interfaces to the OpenGL rendering library.

Definition at line 30 of file vtkOpenGLCamera.h.

Member Typedef Documentation

◆ Superclass [1/2]

Definition at line 34 of file vtkOpenGLCamera.h.

◆ Superclass [2/2]

Definition at line 35 of file vtkOpenGLCamera.h.

Constructor & Destructor Documentation

◆ vtkOpenGLCamera() [1/2]

vtkOpenGLCamera::vtkOpenGLCamera ( )
inlineprotected

Definition at line 43 of file vtkOpenGLCamera.h.

◆ ~vtkOpenGLCamera() [1/2]

vtkOpenGLCamera::~vtkOpenGLCamera ( )
inlineprotected

Definition at line 44 of file vtkOpenGLCamera.h.

◆ vtkOpenGLCamera() [2/2]

vtkOpenGLCamera::vtkOpenGLCamera ( )
protected

◆ ~vtkOpenGLCamera() [2/2]

vtkOpenGLCamera::~vtkOpenGLCamera ( )
protected

Member Function Documentation

◆ New() [1/2]

static vtkOpenGLCamera* vtkOpenGLCamera::New ( )
static

◆ IsTypeOf() [1/2]

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

◆ IsA() [1/2]

virtual int vtkOpenGLCamera::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkCamera.

Reimplemented in vtkExternalOpenGLCamera.

◆ SafeDownCast() [1/2]

static vtkOpenGLCamera* vtkOpenGLCamera::SafeDownCast ( vtkObjectBase *  o)
static

◆ NewInstanceInternal() [1/2]

virtual vtkObjectBase* vtkOpenGLCamera::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkCamera.

Reimplemented in vtkExternalOpenGLCamera.

◆ NewInstance() [1/2]

vtkOpenGLCamera* vtkOpenGLCamera::NewInstance ( ) const

◆ PrintSelf() [1/2]

virtual void vtkOpenGLCamera::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkCamera.

Reimplemented in vtkExternalOpenGLCamera.

◆ Render() [1/2]

void vtkOpenGLCamera::Render ( vtkRenderer *  ren)
virtual

Implement base class method.

Reimplemented from vtkCamera.

◆ UpdateViewport() [1/2]

void vtkOpenGLCamera::UpdateViewport ( vtkRenderer *  ren)

◆ New() [2/2]

static vtkOpenGLCamera* vtkOpenGLCamera::New ( )
static

◆ IsTypeOf() [2/2]

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

◆ IsA() [2/2]

virtual int vtkOpenGLCamera::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkCamera.

Reimplemented in vtkExternalOpenGLCamera.

◆ SafeDownCast() [2/2]

static vtkOpenGLCamera* vtkOpenGLCamera::SafeDownCast ( vtkObjectBase *  o)
static

◆ NewInstanceInternal() [2/2]

virtual vtkObjectBase* vtkOpenGLCamera::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkCamera.

Reimplemented in vtkExternalOpenGLCamera.

◆ NewInstance() [2/2]

vtkOpenGLCamera* vtkOpenGLCamera::NewInstance ( ) const

◆ PrintSelf() [2/2]

virtual void vtkOpenGLCamera::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkCamera.

Reimplemented in vtkExternalOpenGLCamera.

◆ Render() [2/2]

void vtkOpenGLCamera::Render ( vtkRenderer *  ren)
virtual

Implement base class method.

Reimplemented from vtkCamera.

◆ UpdateViewport() [2/2]

void vtkOpenGLCamera::UpdateViewport ( vtkRenderer *  ren)

◆ GetKeyMatrices()

void vtkOpenGLCamera::GetKeyMatrices ( vtkRenderer *  ren,
vtkMatrix4x4 *&  WCVCMatrix,
vtkMatrix3x3 *&  normalMatrix,
vtkMatrix4x4 *&  VCDCMatrix,
vtkMatrix4x4 *&  WCDCMatrix 
)

Member Data Documentation

◆ WCDCMatrix

vtkMatrix4x4* vtkOpenGLCamera::WCDCMatrix
protected

Definition at line 50 of file vtkOpenGLCamera.h.

◆ WCVCMatrix

vtkMatrix4x4* vtkOpenGLCamera::WCVCMatrix
protected

Definition at line 51 of file vtkOpenGLCamera.h.

◆ NormalMatrix

vtkMatrix3x3* vtkOpenGLCamera::NormalMatrix
protected

Definition at line 52 of file vtkOpenGLCamera.h.

◆ VCDCMatrix

vtkMatrix4x4* vtkOpenGLCamera::VCDCMatrix
protected

Definition at line 53 of file vtkOpenGLCamera.h.

◆ KeyMatrixTime

vtkTimeStamp vtkOpenGLCamera::KeyMatrixTime
protected

Definition at line 54 of file vtkOpenGLCamera.h.

◆ LastRenderer

vtkRenderer* vtkOpenGLCamera::LastRenderer
protected

Definition at line 55 of file vtkOpenGLCamera.h.


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