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

2D PolyData support for OpenGL More...

#include <vtkOpenGLPolyDataMapper2D.h>

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

List of all members.

Public Types

typedef vtkPolyDataMapper2D Superclass
typedef vtkPolyDataMapper2D Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkOpenGLPolyDataMapper2DNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
void RenderOverlay (vtkViewport *viewport, vtkActor2D *actor)
virtual int IsA (const char *type)
vtkOpenGLPolyDataMapper2DNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
void RenderOverlay (vtkViewport *viewport, vtkActor2D *actor)
void ReleaseGraphicsResources (vtkWindow *)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkOpenGLPolyDataMapper2DSafeDownCast (vtkObjectBase *o)
static vtkOpenGLPolyDataMapper2DNew ()
static int IsTypeOf (const char *type)
static vtkOpenGLPolyDataMapper2DSafeDownCast (vtkObjectBase *o)
static vtkOpenGLPolyDataMapper2DNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkOpenGLPolyDataMapper2D ()
 ~vtkOpenGLPolyDataMapper2D ()
virtual vtkObjectBaseNewInstanceInternal () const
 vtkOpenGLPolyDataMapper2D ()
 ~vtkOpenGLPolyDataMapper2D ()
virtual bool GetNeedToRebuildShader (vtkgl::CellBO &cellBO, vtkViewport *ren, vtkActor2D *act)
virtual void UpdateShader (vtkgl::CellBO &cellBO, vtkViewport *viewport, vtkActor2D *act)
virtual void SetMapperShaderParameters (vtkgl::CellBO &cellBO, vtkViewport *ren, vtkActor2D *act)
void SetCameraShaderParameters (vtkgl::CellBO &cellBO, vtkViewport *viewport, vtkActor2D *act)
void SetPropertyShaderParameters (vtkgl::CellBO &cellBO, vtkViewport *viewport, vtkActor2D *act)
void UpdateVBO (vtkActor2D *act, vtkViewport *viewport)
virtual void BuildShader (std::string &VertexCode, std::string &fragmentCode, std::string &geometryCode, vtkViewport *ren, vtkActor2D *act)

Protected Attributes

vtkgl::BufferObject VBO
vtkgl::VBOLayout Layout
vtkgl::CellBO Points
vtkgl::CellBO Lines
vtkgl::CellBO Tris
vtkgl::CellBO TriStrips
vtkTimeStamp VBOUpdateTime
vtkPointsTransformedPoints

Detailed Description

2D PolyData support for OpenGL

vtkOpenGLPolyDataMapper2D provides 2D PolyData annotation support for vtk under OpenGL. Normally the user should use vtkPolyDataMapper2D which in turn will use this class.

See also:
vtkPolyDataMapper2D

Definition at line 32 of file vtkOpenGLPolyDataMapper2D.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataMapper2D.

Definition at line 35 of file vtkOpenGLPolyDataMapper2D.h.

Reimplemented from vtkPolyDataMapper2D.

Definition at line 41 of file vtkOpenGLPolyDataMapper2D.h.


Constructor & Destructor Documentation

Definition at line 43 of file vtkOpenGLPolyDataMapper2D.h.

Definition at line 44 of file vtkOpenGLPolyDataMapper2D.h.


Member Function Documentation

static int vtkOpenGLPolyDataMapper2D::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 vtkPolyDataMapper2D.

virtual int vtkOpenGLPolyDataMapper2D::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 vtkPolyDataMapper2D.

Reimplemented from vtkPolyDataMapper2D.

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

Reimplemented from vtkPolyDataMapper2D.

Reimplemented from vtkPolyDataMapper2D.

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPolyDataMapper2D.

virtual void vtkOpenGLPolyDataMapper2D::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 vtkPolyDataMapper2D.

void vtkOpenGLPolyDataMapper2D::RenderOverlay ( vtkViewport viewport,
vtkActor2D actor 
) [virtual]

Actually draw the poly data.

Reimplemented from vtkMapper2D.

static int vtkOpenGLPolyDataMapper2D::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 vtkPolyDataMapper2D.

virtual int vtkOpenGLPolyDataMapper2D::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 vtkPolyDataMapper2D.

Reimplemented from vtkPolyDataMapper2D.

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

Reimplemented from vtkPolyDataMapper2D.

Reimplemented from vtkPolyDataMapper2D.

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPolyDataMapper2D.

virtual void vtkOpenGLPolyDataMapper2D::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 vtkPolyDataMapper2D.

void vtkOpenGLPolyDataMapper2D::RenderOverlay ( vtkViewport viewport,
vtkActor2D actor 
) [virtual]

Actually draw the poly data.

Reimplemented from vtkMapper2D.

Release any graphics resources that are being consumed by this mapper. The parameter window could be used to determine which graphic resources to release.

Reimplemented from vtkAbstractMapper.

virtual bool vtkOpenGLPolyDataMapper2D::GetNeedToRebuildShader ( vtkgl::CellBO cellBO,
vtkViewport ren,
vtkActor2D act 
) [protected, virtual]

Does the shader source need to be recomputed

virtual void vtkOpenGLPolyDataMapper2D::BuildShader ( std::string &  VertexCode,
std::string &  fragmentCode,
std::string &  geometryCode,
vtkViewport ren,
vtkActor2D act 
) [protected, virtual]

Build the shader source code

virtual void vtkOpenGLPolyDataMapper2D::UpdateShader ( vtkgl::CellBO cellBO,
vtkViewport viewport,
vtkActor2D act 
) [protected, virtual]

Determine what shader to use and compile/link it

virtual void vtkOpenGLPolyDataMapper2D::SetMapperShaderParameters ( vtkgl::CellBO cellBO,
vtkViewport ren,
vtkActor2D act 
) [protected, virtual]

Set the shader parameteres related to the mapper/input data, called by UpdateShader

void vtkOpenGLPolyDataMapper2D::SetCameraShaderParameters ( vtkgl::CellBO cellBO,
vtkViewport viewport,
vtkActor2D act 
) [protected]

Set the shader parameteres related to the Camera

void vtkOpenGLPolyDataMapper2D::SetPropertyShaderParameters ( vtkgl::CellBO cellBO,
vtkViewport viewport,
vtkActor2D act 
) [protected]

Set the shader parameteres related to the property

void vtkOpenGLPolyDataMapper2D::UpdateVBO ( vtkActor2D act,
vtkViewport viewport 
) [protected]

Update the scene when necessary.


Member Data Documentation

Definition at line 86 of file vtkOpenGLPolyDataMapper2D.h.

Definition at line 87 of file vtkOpenGLPolyDataMapper2D.h.

Definition at line 90 of file vtkOpenGLPolyDataMapper2D.h.

Definition at line 91 of file vtkOpenGLPolyDataMapper2D.h.

Definition at line 92 of file vtkOpenGLPolyDataMapper2D.h.

Definition at line 93 of file vtkOpenGLPolyDataMapper2D.h.

Definition at line 95 of file vtkOpenGLPolyDataMapper2D.h.

Definition at line 96 of file vtkOpenGLPolyDataMapper2D.h.


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