VTK
|
OpenGL camera. More...
#include <vtkExternalOpenGLCamera.h>
Public Types | |
typedef vtkOpenGLCamera | 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]) |
Static Public Member Functions | |
static vtkExternalOpenGLCamera * | New () |
static int | IsTypeOf (const char *type) |
static vtkExternalOpenGLCamera * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkExternalOpenGLCamera () | |
~vtkExternalOpenGLCamera () | |
void | ComputeViewTransform () |
void | ComputeProjectionTransform (double aspect, double nearz, double farz) |
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.
Reimplemented from vtkOpenGLCamera.
Definition at line 35 of file vtkExternalOpenGLCamera.h.
vtkExternalOpenGLCamera::vtkExternalOpenGLCamera | ( | ) | [protected] |
vtkExternalOpenGLCamera::~vtkExternalOpenGLCamera | ( | ) | [inline, protected] |
Definition at line 49 of file vtkExternalOpenGLCamera.h.
static vtkExternalOpenGLCamera* vtkExternalOpenGLCamera::New | ( | ) | [static] |
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.
static vtkExternalOpenGLCamera* vtkExternalOpenGLCamera::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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.
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 | ||
) | [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.