VTK
|
use imposters to draw cylinders More...
#include <vtkOpenGLStickMapper.h>
Public Types | |
typedef vtkOpenGLPolyDataMapper | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkOpenGLStickMapper * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetScaleArray (const char *) |
virtual void | SetOrientationArray (const char *) |
virtual void | SetSelectionIdArray (const char *) |
Static Public Member Functions | |
static vtkOpenGLStickMapper * | New () |
static int | IsTypeOf (const char *type) |
static vtkOpenGLStickMapper * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkOpenGLStickMapper () | |
~vtkOpenGLStickMapper () | |
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 |
const char * | OrientationArray |
const char * | SelectionIdArray |
use imposters to draw cylinders
PolyDataMapper that uses imposters to draw cylinders/sticks for ball/stick style molecular rendering. Supports picking.
Definition at line 27 of file vtkOpenGLStickMapper.h.
Reimplemented from vtkOpenGLPolyDataMapper.
Definition at line 31 of file vtkOpenGLStickMapper.h.
vtkOpenGLStickMapper::vtkOpenGLStickMapper | ( | ) | [protected] |
vtkOpenGLStickMapper::~vtkOpenGLStickMapper | ( | ) | [protected] |
static vtkOpenGLStickMapper* vtkOpenGLStickMapper::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkOpenGLPolyDataMapper.
static int vtkOpenGLStickMapper::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 vtkOpenGLStickMapper::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 vtkOpenGLStickMapper* vtkOpenGLStickMapper::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkOpenGLPolyDataMapper.
virtual vtkObjectBase* vtkOpenGLStickMapper::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkOpenGLPolyDataMapper.
Reimplemented from vtkOpenGLPolyDataMapper.
void vtkOpenGLStickMapper::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 vtkOpenGLStickMapper::SetScaleArray | ( | const char * | ) | [virtual] |
Convenience method to set the array to scale with.
virtual void vtkOpenGLStickMapper::SetOrientationArray | ( | const char * | ) | [virtual] |
Convenience method to set the array to orient with
virtual void vtkOpenGLStickMapper::SetSelectionIdArray | ( | const char * | ) | [virtual] |
Convenience method to set the array to select with
virtual void vtkOpenGLStickMapper::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 vtkOpenGLStickMapper::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 vtkOpenGLStickMapper::SetCameraShaderParameters | ( | vtkgl::CellBO & | cellBO, |
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Set the shader parameters related to the Camera
Reimplemented from vtkOpenGLPolyDataMapper.
virtual void vtkOpenGLStickMapper::SetMapperShaderParameters | ( | vtkgl::CellBO & | cellBO, |
vtkRenderer * | ren, | ||
vtkActor * | act | ||
) | [protected, virtual] |
Set the shader parameters related to the actor/mapper
Reimplemented from vtkOpenGLPolyDataMapper.
virtual bool vtkOpenGLStickMapper::GetNeedToRebuildBufferObjects | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [protected, virtual] |
Does the VBO/IBO need to be rebuilt
Reimplemented from vtkOpenGLPolyDataMapper.
virtual void vtkOpenGLStickMapper::BuildBufferObjects | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [protected, virtual] |
Update the VBO to contain point based values
Reimplemented from vtkOpenGLPolyDataMapper.
virtual void vtkOpenGLStickMapper::RenderPieceDraw | ( | vtkRenderer * | ren, |
vtkActor * | act | ||
) | [protected, virtual] |
Implemented by sub classes. Actual rendering is done here.
Reimplemented from vtkOpenGLPolyDataMapper.
const char* vtkOpenGLStickMapper::ScaleArray [protected] |
Definition at line 77 of file vtkOpenGLStickMapper.h.
const char* vtkOpenGLStickMapper::OrientationArray [protected] |
Definition at line 78 of file vtkOpenGLStickMapper.h.
const char* vtkOpenGLStickMapper::SelectionIdArray [protected] |
Definition at line 79 of file vtkOpenGLStickMapper.h.