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

OpenGL camera. More...

#include <vtkExternalOpenGLCamera.h>

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

Public Types

typedef vtkOpenGLCamera Superclass
 
- Public Types inherited from vtkOpenGLCamera
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)
 
vtkExternalOpenGLCamera * NewInstance () const
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
void Render (vtkRenderer *ren)
 
void SetViewTransformMatrix (const double elements[16])
 
void SetProjectionTransformMatrix (const double elements[16])
 
- Public Member Functions inherited from vtkOpenGLCamera
vtkOpenGLCamera * NewInstance () const
 
void Render (vtkRenderer *ren)
 
void UpdateViewport (vtkRenderer *ren)
 
vtkOpenGLCamera * NewInstance () const
 
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 ()
 
unsigned char GetDebug ()
 
void SetDebug (unsigned char 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 vtkExternalOpenGLCamera * New ()
 
static int IsTypeOf (const char *type)
 
static vtkExternalOpenGLCamera * SafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkOpenGLCamera
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
 
 vtkExternalOpenGLCamera ()
 
 ~vtkExternalOpenGLCamera ()
 
void ComputeViewTransform ()
 
void ComputeProjectionTransform (double aspect, double nearz, double farz)
 
- Protected Member Functions inherited from vtkOpenGLCamera
 vtkOpenGLCamera ()
 
 ~vtkOpenGLCamera ()
 
 vtkOpenGLCamera ()
 
 ~vtkOpenGLCamera ()
 
- Protected Member Functions inherited from vtkCamera
 vtkCamera ()
 
 ~vtkCamera ()
 
void ComputeCameraLightTransform ()
 
void ComputeWorldToScreenMatrix ()
 
void ComputeOffAxisProjectionFrustum ()
 
void ComputeModelViewMatrix ()
 
void PartialCopy (vtkCamera *source)
 
void ComputeDistance ()
 
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 &)
 

Additional Inherited Members

- Protected Attributes inherited from vtkOpenGLCamera
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
unsigned char Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt< vtkTypeInt32 > ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

OpenGL camera.

vtkExternalOpenGLCamera is a concrete implementation of the abstract class vtkCamera. vtkExternalOpenGLCamera interfaces to the OpenGL rendering library. This class extends vtkOpenGLCamera by introducing API wherein the camera matrices can be set explicitly by the application.

Definition at line 30 of file vtkExternalOpenGLCamera.h.

Member Typedef Documentation

Definition at line 35 of file vtkExternalOpenGLCamera.h.

Constructor & Destructor Documentation

vtkExternalOpenGLCamera::vtkExternalOpenGLCamera ( )
protected
vtkExternalOpenGLCamera::~vtkExternalOpenGLCamera ( )
inlineprotected

Definition at line 49 of file vtkExternalOpenGLCamera.h.

Member Function Documentation

static vtkExternalOpenGLCamera* vtkExternalOpenGLCamera::New ( )
static
static int vtkExternalOpenGLCamera::IsTypeOf ( const char *  type)
static
virtual int vtkExternalOpenGLCamera::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 vtkOpenGLCamera.

static vtkExternalOpenGLCamera* vtkExternalOpenGLCamera::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkExternalOpenGLCamera::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkOpenGLCamera.

vtkExternalOpenGLCamera* vtkExternalOpenGLCamera::NewInstance ( ) const
virtual void vtkExternalOpenGLCamera::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 vtkOpenGLCamera.

void vtkExternalOpenGLCamera::Render ( vtkRenderer *  ren)
virtual

Implement base class method.

Reimplemented from vtkCamera.

void vtkExternalOpenGLCamera::SetViewTransformMatrix ( const double  elements[16])

Set the view transform matrix

void vtkExternalOpenGLCamera::SetProjectionTransformMatrix ( const double  elements[16])

Set the projection matrix

void vtkExternalOpenGLCamera::ComputeProjectionTransform ( double  aspect,
double  nearz,
double  farz 
)
protectedvirtual

These methods should only be used within vtkCamera.cxx. Bypass computation if user provided the projection transform

Reimplemented from vtkCamera.

void vtkExternalOpenGLCamera::ComputeViewTransform ( )
protectedvirtual

These methods should only be used within vtkCamera.cxx. Bypass computation if user provided the view transform

Reimplemented from vtkCamera.


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