VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkExternalOpenGLRenderer Class Reference

OpenGL renderer. More...

#include <vtkExternalOpenGLRenderer.h>

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

List of all members.

Public Types

typedef vtkOpenGLRenderer Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkExternalOpenGLRendererNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
void Clear (void)
void Render (void)
vtkCameraMakeCamera ()
virtual int GetPreserveColorBuffer ()
virtual void SetPreserveColorBuffer (int)
virtual void PreserveColorBufferOn ()
virtual void PreserveColorBufferOff ()

Static Public Member Functions

static vtkExternalOpenGLRendererNew ()
static int IsTypeOf (const char *type)
static vtkExternalOpenGLRendererSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkExternalOpenGLRenderer ()
 ~vtkExternalOpenGLRenderer ()

Protected Attributes

int PreserveColorBuffer

Detailed Description

OpenGL renderer.

vtkExternalOpenGLRenderer is a secondary implementation of the class vtkOpenGLRenderer. vtkExternalOpenGLRenderer interfaces to the OpenGL graphics library. This class provides API to preserve the color and depth buffers, thereby allowing external applications to manage the OpenGL buffers. This becomes very useful when there are multiple OpenGL applications sharing the same OpenGL context.

vtkExternalOpenGLRenderer makes sure that the camera used in the scene if of type vtkExternalOpenGLCamera. It manages light and camera transformations for VTK objects in the OpenGL context.

See also:
vtkExternalOpenGLCamera
Events:
vtkCommand::CreateCameraEvent

Definition at line 41 of file vtkExternalOpenGLRenderer.h.


Member Typedef Documentation

Reimplemented from vtkOpenGLRenderer.

Definition at line 46 of file vtkExternalOpenGLRenderer.h.


Constructor & Destructor Documentation


Member Function Documentation

Create a vtkRenderer with a black background, a white ambient light, two-sided lighting turned on, a viewport of (0,0,1,1), and backface culling turned off.

Reimplemented from vtkOpenGLRenderer.

static int vtkExternalOpenGLRenderer::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 vtkOpenGLRenderer.

virtual int vtkExternalOpenGLRenderer::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 vtkOpenGLRenderer.

Reimplemented from vtkOpenGLRenderer.

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

Reimplemented from vtkOpenGLRenderer.

Reimplemented from vtkOpenGLRenderer.

void vtkExternalOpenGLRenderer::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 vtkOpenGLRenderer.

void vtkExternalOpenGLRenderer::Clear ( void  ) [virtual]

Implementation for the Clear method that clears the buffer if requested

Reimplemented from vtkOpenGLRenderer.

void vtkExternalOpenGLRenderer::Render ( void  ) [virtual]

Synchronize camera and light parameters

Reimplemented from vtkRenderer.

Normally the vtkOpenGLRenderer clears the color buffer before rendering a new frame. When this flag is true, the color buffer is not cleared. This can be helpful when there are multiple visualization systems sharing the same context. Default value is 1.

Normally the vtkOpenGLRenderer clears the color buffer before rendering a new frame. When this flag is true, the color buffer is not cleared. This can be helpful when there are multiple visualization systems sharing the same context. Default value is 1.

Normally the vtkOpenGLRenderer clears the color buffer before rendering a new frame. When this flag is true, the color buffer is not cleared. This can be helpful when there are multiple visualization systems sharing the same context. Default value is 1.

Normally the vtkOpenGLRenderer clears the color buffer before rendering a new frame. When this flag is true, the color buffer is not cleared. This can be helpful when there are multiple visualization systems sharing the same context. Default value is 1.

Create a new Camera sutible for use with this type of Renderer. This function creates the vtkExternalOpenGLCamera.

Reimplemented from vtkRenderer.


Member Data Documentation

Definition at line 74 of file vtkExternalOpenGLRenderer.h.


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