VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
vtkExternalOpenGLCamera Class Reference

OpenGL camera. More...

#include <vtkExternalOpenGLCamera.h>

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

List of all members.

Public Types

typedef vtkOpenGLCamera Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkExternalOpenGLCameraNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
void Render (vtkRenderer *ren)
void SetViewTransformMatrix (const double elements[16])
void SetProjectionTransformMatrix (const double elements[16])

Static Public Member Functions

static vtkExternalOpenGLCameraNew ()
static int IsTypeOf (const char *type)
static vtkExternalOpenGLCameraSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkExternalOpenGLCamera ()
 ~vtkExternalOpenGLCamera ()
void ComputeViewTransform ()
void ComputeProjectionTransform (double aspect, double nearz, double farz)

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

Reimplemented from vtkOpenGLCamera.

Definition at line 35 of file vtkExternalOpenGLCamera.h.


Constructor & Destructor Documentation

Definition at line 49 of file vtkExternalOpenGLCamera.h.


Member Function Documentation

Construct camera instance with its focal point at the origin, and position=(0,0,1). The view up is along the y-axis, view angle is 30 degrees, and the clipping range is (.1,1000).

Reimplemented from vtkOpenGLCamera.

static int vtkExternalOpenGLCamera::IsTypeOf ( const char *  name) [static]

Return 1 if this class type 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.

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.

Reimplemented from vtkOpenGLCamera.

virtual vtkObjectBase* vtkExternalOpenGLCamera::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkOpenGLCamera.

Reimplemented from vtkOpenGLCamera.

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 vtkOpenGLCamera.

Set the view transform matrix

Set the projection matrix

void vtkExternalOpenGLCamera::ComputeProjectionTransform ( double  aspect,
double  nearz,
double  farz 
) [protected, virtual]

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

Reimplemented from vtkCamera.

void vtkExternalOpenGLCamera::ComputeViewTransform ( ) [protected, virtual]

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: