VTK
|
draw spheres using imposters More...
#include <vtkOpenGLSphereMapper.h>
Public Types | |
typedef vtkOpenGLPolyDataMapper | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkOpenGLSphereMapper * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | Render (vtkRenderer *ren, vtkActor *act) |
virtual void | SetScaleArray (const char *) |
Static Public Member Functions | |
static vtkOpenGLSphereMapper * | New () |
static int | IsTypeOf (const char *type) |
static vtkOpenGLSphereMapper * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () 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 |
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.
Reimplemented from vtkOpenGLPolyDataMapper.
Definition at line 31 of file vtkOpenGLSphereMapper.h.
vtkOpenGLSphereMapper::vtkOpenGLSphereMapper | ( | ) | [protected] |
vtkOpenGLSphereMapper::~vtkOpenGLSphereMapper | ( | ) | [protected] |
static vtkOpenGLSphereMapper* vtkOpenGLSphereMapper::New | ( | ) | [static] |
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.
static vtkOpenGLSphereMapper* vtkOpenGLSphereMapper::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
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.
const char* vtkOpenGLSphereMapper::ScaleArray [protected] |
Definition at line 70 of file vtkOpenGLSphereMapper.h.
bool vtkOpenGLSphereMapper::Invert [protected] |
Definition at line 81 of file vtkOpenGLSphereMapper.h.