VTK
|
OpenGL renderer. More...
#include <vtkExternalOpenGLRenderer.h>
Public Types | |
typedef vtkOpenGLRenderer | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkExternalOpenGLRenderer * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | Clear (void) |
void | Render (void) |
vtkCamera * | MakeCamera () |
virtual int | GetPreserveColorBuffer () |
virtual void | SetPreserveColorBuffer (int) |
virtual void | PreserveColorBufferOn () |
virtual void | PreserveColorBufferOff () |
Static Public Member Functions | |
static vtkExternalOpenGLRenderer * | New () |
static int | IsTypeOf (const char *type) |
static vtkExternalOpenGLRenderer * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkExternalOpenGLRenderer () | |
~vtkExternalOpenGLRenderer () | |
Protected Attributes | |
int | PreserveColorBuffer |
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.
Definition at line 41 of file vtkExternalOpenGLRenderer.h.
Reimplemented from vtkOpenGLRenderer.
Definition at line 46 of file vtkExternalOpenGLRenderer.h.
vtkExternalOpenGLRenderer::vtkExternalOpenGLRenderer | ( | ) | [protected] |
vtkExternalOpenGLRenderer::~vtkExternalOpenGLRenderer | ( | ) | [protected] |
static vtkExternalOpenGLRenderer* vtkExternalOpenGLRenderer::New | ( | ) | [static] |
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.
static vtkExternalOpenGLRenderer* vtkExternalOpenGLRenderer::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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.
virtual int vtkExternalOpenGLRenderer::GetPreserveColorBuffer | ( | ) | [virtual] |
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.
virtual void vtkExternalOpenGLRenderer::SetPreserveColorBuffer | ( | int | ) | [virtual] |
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.
virtual void vtkExternalOpenGLRenderer::PreserveColorBufferOn | ( | ) | [virtual] |
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.
virtual void vtkExternalOpenGLRenderer::PreserveColorBufferOff | ( | ) | [virtual] |
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.
vtkCamera* vtkExternalOpenGLRenderer::MakeCamera | ( | ) | [virtual] |
Create a new Camera sutible for use with this type of Renderer. This function creates the vtkExternalOpenGLCamera.
Reimplemented from vtkRenderer.
int vtkExternalOpenGLRenderer::PreserveColorBuffer [protected] |
Definition at line 74 of file vtkExternalOpenGLRenderer.h.