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

use imposters to draw cylinders More...

#include <vtkOpenGLStickMapper.h>

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

List of all members.

Public Types

typedef vtkOpenGLPolyDataMapper Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkOpenGLStickMapperNewInstance () 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 vtkOpenGLStickMapperNew ()
static int IsTypeOf (const char *type)
static vtkOpenGLStickMapperSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () 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

Detailed Description

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.


Member Typedef Documentation

Reimplemented from vtkOpenGLPolyDataMapper.

Definition at line 31 of file vtkOpenGLStickMapper.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 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.

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.


Member Data Documentation

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.


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