VTK  9.1.0
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
26#include "vtkRenderingOpenGL2Module.h" // For export macro
27
28class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLStickMapper : public vtkOpenGLPolyDataMapper
29{
30public:
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
36
39 vtkSetStringMacro(ScaleArray);
41
43
46 vtkSetStringMacro(OrientationArray);
48
50
53 vtkSetStringMacro(SelectionIdArray);
55
56protected:
59
64 std::map<vtkShader::Type, vtkShader*> shaders, vtkRenderer* ren, vtkActor* act) override;
65
70 std::map<vtkShader::Type, vtkShader*> shaders, vtkRenderer* ren, vtkActor* act) override;
71
76
81
82 const char* ScaleArray;
83 const char* OrientationArray;
84 const char* SelectionIdArray;
85
90
94 void BuildBufferObjects(vtkRenderer* ren, vtkActor* act) override;
95
96 void RenderPieceDraw(vtkRenderer* ren, vtkActor* act) override;
97
98private:
100 void operator=(const vtkOpenGLStickMapper&) = delete;
101};
102
103#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
a simple class to control print indentation
Definition: vtkIndent.h:113
PolyDataMapper using OpenGL to render.
use imposters to draw cylinders
void SetMapperShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act) override
Set the shader parameters related to the actor/mapper.
bool GetNeedToRebuildBufferObjects(vtkRenderer *ren, vtkActor *act) override
Does the VBO/IBO need to be rebuilt.
void ReplaceShaderValues(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Perform string replacements on the shader templates.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void RenderPieceDraw(vtkRenderer *ren, vtkActor *act) override
Implemented by sub classes.
void SetCameraShaderParameters(vtkOpenGLHelper &cellBO, vtkRenderer *ren, vtkActor *act) override
Set the shader parameters related to the Camera.
static vtkOpenGLStickMapper * New()
void GetShaderTemplate(std::map< vtkShader::Type, vtkShader * > shaders, vtkRenderer *ren, vtkActor *act) override
Create the basic shaders before replacement.
~vtkOpenGLStickMapper() override
void BuildBufferObjects(vtkRenderer *ren, vtkActor *act) override
Update the VBO to contain point based values.
abstract specification for renderers
Definition: vtkRenderer.h:173