VTK
vtkOpenGLStickMapper.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4
5 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
6 All rights reserved.
7 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
22#ifndef vtkOpenGLStickMapper_h
23#define vtkOpenGLStickMapper_h
24
25#include "vtkRenderingOpenGL2Module.h" // For export macro
27
28class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLStickMapper : public vtkOpenGLPolyDataMapper
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent);
34
36
39 vtkSetStringMacro(ScaleArray);
41
43
46 vtkSetStringMacro(OrientationArray);
48
50
53 vtkSetStringMacro(SelectionIdArray);
55
56protected:
59
63 virtual void GetShaderTemplate(
64 std::map<vtkShader::Type, vtkShader *> shaders,
65 vtkRenderer *ren, vtkActor *act);
66
70 virtual void ReplaceShaderValues(
71 std::map<vtkShader::Type, vtkShader *> shaders,
72 vtkRenderer *ren, vtkActor *act);
73
77 virtual void SetCameraShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act);
78
82 virtual void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act);
83
84 const char *ScaleArray;
85 const char *OrientationArray;
86 const char *SelectionIdArray;
87
91 virtual bool GetNeedToRebuildBufferObjects(vtkRenderer *ren, vtkActor *act);
92
96 virtual void BuildBufferObjects(vtkRenderer *ren, vtkActor *act);
97
98 virtual void RenderPieceDraw(vtkRenderer *ren, vtkActor *act);
99
100private:
101 vtkOpenGLStickMapper(const vtkOpenGLStickMapper&) VTK_DELETE_FUNCTION;
102 void operator=(const vtkOpenGLStickMapper&) VTK_DELETE_FUNCTION;
103};
104
105#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
a simple class to control print indentation
Definition: vtkIndent.h:40
a PolyDataMapper for the OpenGL library
use imposters to draw cylinders
static vtkOpenGLStickMapper * New()
abstract specification for renderers
Definition: vtkRenderer.h:64
Vertex or Fragment shader, combined into a ShaderProgram.
Definition: vtkShader.h:41