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

OpenGL render window that allows using an external window to render vtk objects. More...

#include <vtkExternalOpenGLRenderWindow.h>

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

List of all members.

Public Types

typedef
vtkGenericOpenGLRenderWindow 
Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkExternalOpenGLRenderWindowNewInstance () 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 vtkObjectBaseNewInstanceInternal () const
 vtkExternalOpenGLRenderWindow ()
 ~vtkExternalOpenGLRenderWindow ()

Detailed Description

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.

See also:
Render()

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.

See also:
SetSize()

It has the same requirements as the vtkGenericOpenGLRenderWindow, whereby, one must register an observer for WindowMakeCurrentEvent, WindowIsCurrentEvent and WindowFrameEvent.

See also:
vtkGenericOpenGLRenderWindow
Tests:
vtkExternalOpenGLRenderWindow (Tests)

Definition at line 49 of file vtkExternalOpenGLRenderWindow.h.


Member Typedef Documentation

Reimplemented from vtkGenericOpenGLRenderWindow.

Definition at line 54 of file vtkExternalOpenGLRenderWindow.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

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.

This computes the size of the render window before calling the superclass' Render() method

Reimplemented from vtkRenderWindow.


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