VTK  9.1.0
vtkOpenGLGlyph3DMapper.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkOpenGLGlyph3DMapper.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
28#ifndef vtkOpenGLGlyph3DMapper_h
29#define vtkOpenGLGlyph3DMapper_h
30
31#include "vtkGlyph3DMapper.h"
32#include "vtkNew.h" // For vtkNew
33#include "vtkRenderingOpenGL2Module.h" // For export macro
34
36class vtkBitArray;
37
38class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLGlyph3DMapper : public vtkGlyph3DMapper
39{
40public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
49 void Render(vtkRenderer* ren, vtkActor* a) override;
50
56 void ReleaseGraphicsResources(vtkWindow* window) override;
57
59
64
68 void SetNumberOfLOD(vtkIdType nb) override;
69
79 vtkIdType index, float distance, float targetReduction) override;
81
82protected:
85
90
96
98
100
101 class vtkOpenGLGlyph3DMapperEntry;
102 class vtkOpenGLGlyph3DMapperSubArray;
103 class vtkOpenGLGlyph3DMapperArray;
104 vtkOpenGLGlyph3DMapperArray* GlyphValues; // array of value for datasets
105
109 virtual void RebuildStructures(vtkOpenGLGlyph3DMapperSubArray* subarray, vtkIdType numPts,
110 vtkActor* actor, vtkDataSet* dataset, vtkBitArray* maskArray);
111
112 vtkMTimeType BlockMTime; // Last time BlockAttributes was modified.
113
114private:
116 void operator=(const vtkOpenGLGlyph3DMapper&) = delete;
117};
118
119#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:155
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:34
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
vtkGlyph3D on the GPU.
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:171
PolyDataMapper using OpenGL to render.
vtkOpenGLGlyph3D on the GPU.
vtkIdType GetMaxNumberOfLOD() override
Get the maximum number of LOD.
void Render(vtkRenderer *ren, vtkActor *a) override
Method initiates the mapping process.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetLODDistanceAndTargetReduction(vtkIdType index, float distance, float targetReduction) override
Configure LODs.
~vtkOpenGLGlyph3DMapper() override
virtual void Render(vtkRenderer *, vtkActor *, vtkDataSet *)
Render setup.
void CopyInformationToSubMapper(vtkOpenGLGlyph3DHelper *)
Send mapper ivars to sub-mapper.
void SetNumberOfLOD(vtkIdType nb) override
Set the number of LOD.
virtual void RebuildStructures(vtkOpenGLGlyph3DMapperSubArray *subarray, vtkIdType numPts, vtkActor *actor, vtkDataSet *dataset, vtkBitArray *maskArray)
Build data structures associated with.
static vtkOpenGLGlyph3DMapper * New()
vtkOpenGLGlyph3DMapperArray * GlyphValues
void ReleaseGraphicsResources(vtkWindow *window) override
Release any graphics resources that are being consumed by this mapper.
abstract specification for renderers
Definition: vtkRenderer.h:173
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
@ index
Definition: vtkX3D.h:252
int vtkIdType
Definition: vtkType.h:332
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:287