VTK
|
OpenGL render window that allows using an external window to render vtk objects. More...
#include <vtkExternalOpenGLRenderWindow.h>
Public Types | |
typedef vtkGenericOpenGLRenderWindow | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkExternalOpenGLRenderWindow * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | Start (void) |
void | Render () |
Static Public Member Functions | |
static vtkExternalOpenGLRenderWindow * | New () |
static int | IsTypeOf (const char *type) |
static vtkExternalOpenGLRenderWindow * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkExternalOpenGLRenderWindow () | |
~vtkExternalOpenGLRenderWindow () |
OpenGL render window that allows using an external window to render vtk objects.
vtkExternalOpenGLRenderWindow is a concrete implementation of the abstract class vtkRenderWindow. vtkExternalOpenGLRenderer interfaces to the OpenGL graphics library.
This class extends vtkGenericOpenGLRenderWindow to allow sharing the same OpenGL context by various visualization applications. Basically, this class prevents VTK from creating a new OpenGL context. Thus, it requires that an OpenGL context be initialized before Render is called.
It is a generic implementation; this window is platform agnostic. However, the application user must explicitly make sure the window size is synchronized when the external application window/viewport resizes.
It has the same requirements as the vtkGenericOpenGLRenderWindow, whereby, one must register an observer for WindowMakeCurrentEvent, WindowIsCurrentEvent and WindowFrameEvent.
Definition at line 49 of file vtkExternalOpenGLRenderWindow.h.
Reimplemented from vtkGenericOpenGLRenderWindow.
Definition at line 54 of file vtkExternalOpenGLRenderWindow.h.
vtkExternalOpenGLRenderWindow::vtkExternalOpenGLRenderWindow | ( | ) | [protected] |
vtkExternalOpenGLRenderWindow::~vtkExternalOpenGLRenderWindow | ( | ) | [protected] |
static vtkExternalOpenGLRenderWindow* vtkExternalOpenGLRenderWindow::New | ( | ) | [static] |
Construct an instance of vtkRenderWindow with its screen size set to 300x300, borders turned on, positioned at (0,0), double buffering turned on.
Reimplemented from vtkGenericOpenGLRenderWindow.
static int vtkExternalOpenGLRenderWindow::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 vtkGenericOpenGLRenderWindow.
virtual int vtkExternalOpenGLRenderWindow::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 vtkGenericOpenGLRenderWindow.
static vtkExternalOpenGLRenderWindow* vtkExternalOpenGLRenderWindow::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkGenericOpenGLRenderWindow.
virtual vtkObjectBase* vtkExternalOpenGLRenderWindow::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkGenericOpenGLRenderWindow.
Reimplemented from vtkGenericOpenGLRenderWindow.
void vtkExternalOpenGLRenderWindow::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 vtkGenericOpenGLRenderWindow.
void vtkExternalOpenGLRenderWindow::Start | ( | void | ) | [virtual] |
Begin the rendering process using the existing context.
Reimplemented from vtkGenericOpenGLRenderWindow.
void vtkExternalOpenGLRenderWindow::Render | ( | ) | [virtual] |
This computes the size of the render window before calling the superclass' Render() method
Reimplemented from vtkRenderWindow.