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

draw spheres using imposters More...

#include <vtkOpenGLSphereMapper.h>

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

List of all members.

Public Types

typedef vtkOpenGLPolyDataMapper Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkOpenGLSphereMapperNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void Render (vtkRenderer *ren, vtkActor *act)
virtual void SetScaleArray (const char *)

Static Public Member Functions

static vtkOpenGLSphereMapperNew ()
static int IsTypeOf (const char *type)
static vtkOpenGLSphereMapperSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkOpenGLSphereMapper ()
 ~vtkOpenGLSphereMapper ()
virtual void SetCameraShaderParameters (vtkgl::CellBO &cellBO, vtkRenderer *ren, vtkActor *act)
virtual void SetMapperShaderParameters (vtkgl::CellBO &cellBO, vtkRenderer *ren, vtkActor *act)
virtual bool GetNeedToRebuildBufferObjects (vtkRenderer *ren, vtkActor *act)
virtual void BuildBufferObjects (vtkRenderer *ren, vtkActor *act)
virtual void RenderPieceDraw (vtkRenderer *ren, vtkActor *act)
virtual void GetShaderTemplate (std::string &VertexCode, std::string &fragmentCode, std::string &geometryCode, int lightComplexity, vtkRenderer *ren, vtkActor *act)
virtual void ReplaceShaderValues (std::string &VertexCode, std::string &fragmentCode, std::string &geometryCode, int lightComplexity, vtkRenderer *ren, vtkActor *act)

Protected Attributes

const char * ScaleArray
bool Invert

Detailed Description

draw spheres using imposters

An OpenGL mapper that uses imposters to draw spheres. Supports transparency and picking as well.

Definition at line 27 of file vtkOpenGLSphereMapper.h.


Member Typedef Documentation

Reimplemented from vtkOpenGLPolyDataMapper.

Definition at line 31 of file vtkOpenGLSphereMapper.h.


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkOpenGLPolyDataMapper.

static int vtkOpenGLSphereMapper::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 vtkOpenGLPolyDataMapper.

virtual int vtkOpenGLSphereMapper::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 vtkOpenGLPolyDataMapper.

Reimplemented from vtkOpenGLPolyDataMapper.

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

Reimplemented from vtkOpenGLPolyDataMapper.

Reimplemented from vtkOpenGLPolyDataMapper.

void vtkOpenGLSphereMapper::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 vtkOpenGLPolyDataMapper.

virtual void vtkOpenGLSphereMapper::SetScaleArray ( const char *  ) [virtual]

Convenience method to set the array to scale with.

virtual void vtkOpenGLSphereMapper::Render ( vtkRenderer ren,
vtkActor act 
) [virtual]

This calls RenderPiece (twice when transparent)

Reimplemented from vtkPolyDataMapper.

virtual void vtkOpenGLSphereMapper::GetShaderTemplate ( std::string &  VertexCode,
std::string &  fragmentCode,
std::string &  geometryCode,
int  lightComplexity,
vtkRenderer ren,
vtkActor act 
) [protected, virtual]

Create the basic shaders before replacement

Reimplemented from vtkOpenGLPolyDataMapper.

virtual void vtkOpenGLSphereMapper::ReplaceShaderValues ( std::string &  VertexCode,
std::string &  fragmentCode,
std::string &  geometryCode,
int  lightComplexity,
vtkRenderer ren,
vtkActor act 
) [protected, virtual]

Perform string replacments on the shader templates

Reimplemented from vtkOpenGLPolyDataMapper.

virtual void vtkOpenGLSphereMapper::SetCameraShaderParameters ( vtkgl::CellBO cellBO,
vtkRenderer ren,
vtkActor act 
) [protected, virtual]

Set the shader parameters related to the Camera

Reimplemented from vtkOpenGLPolyDataMapper.

virtual void vtkOpenGLSphereMapper::SetMapperShaderParameters ( vtkgl::CellBO cellBO,
vtkRenderer ren,
vtkActor act 
) [protected, virtual]

Set the shader parameters related to the actor/mapper

Reimplemented from vtkOpenGLPolyDataMapper.

virtual bool vtkOpenGLSphereMapper::GetNeedToRebuildBufferObjects ( vtkRenderer ren,
vtkActor act 
) [protected, virtual]

Does the VBO/IBO need to be rebuilt

Reimplemented from vtkOpenGLPolyDataMapper.

virtual void vtkOpenGLSphereMapper::BuildBufferObjects ( vtkRenderer ren,
vtkActor act 
) [protected, virtual]

Update the VBO to contain point based values

Reimplemented from vtkOpenGLPolyDataMapper.

virtual void vtkOpenGLSphereMapper::RenderPieceDraw ( vtkRenderer ren,
vtkActor act 
) [protected, virtual]

Implemented by sub classes. Actual rendering is done here.

Reimplemented from vtkOpenGLPolyDataMapper.


Member Data Documentation

const char* vtkOpenGLSphereMapper::ScaleArray [protected]

Definition at line 70 of file vtkOpenGLSphereMapper.h.

Definition at line 81 of file vtkOpenGLSphereMapper.h.


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