VTK  9.3.0
vtkOpenGLGlyph3DMapper.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkOpenGLGlyph3DMapper_h
17 #define vtkOpenGLGlyph3DMapper_h
18 
19 #include "vtkGlyph3DMapper.h"
20 #include "vtkNew.h" // For vtkNew
21 #include "vtkRenderingOpenGL2Module.h" // For export macro
22 
23 VTK_ABI_NAMESPACE_BEGIN
25 class vtkBitArray;
26 
27 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLGlyph3DMapper : public vtkGlyph3DMapper
28 {
29 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
38  void Render(vtkRenderer* ren, vtkActor* a) override;
39 
45  void ReleaseGraphicsResources(vtkWindow* window) override;
46 
48 
53 
57  void SetNumberOfLOD(vtkIdType nb) override;
58 
68  vtkIdType index, float distance, float targetReduction) override;
70 
71 protected:
74 
78  virtual void Render(vtkRenderer*, vtkActor*, vtkDataSet*);
79 
85 
87 
89 
90  class vtkOpenGLGlyph3DMapperEntry;
91  class vtkOpenGLGlyph3DMapperSubArray;
92  class vtkOpenGLGlyph3DMapperArray;
93  vtkOpenGLGlyph3DMapperArray* GlyphValues; // array of value for datasets
94 
98  virtual void RebuildStructures(vtkOpenGLGlyph3DMapperSubArray* subarray, vtkIdType numPts,
99  vtkActor* actor, vtkDataSet* dataset, vtkBitArray* maskArray);
100 
101  vtkMTimeType BlockMTime; // Last time BlockAttributes was modified.
102 
103 private:
105  void operator=(const vtkOpenGLGlyph3DMapper&) = delete;
106 };
107 
108 VTK_ABI_NAMESPACE_END
109 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:41
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:29
abstract class to specify dataset behavior
Definition: vtkDataSet.h:53
vtkGlyph3D on the GPU.
a simple class to control print indentation
Definition: vtkIndent.h:29
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:77
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
static vtkOpenGLGlyph3DMapper * New()
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.
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:62
window superclass for vtkRenderWindow
Definition: vtkWindow.h:28
@ index
Definition: vtkX3D.h:246
int vtkIdType
Definition: vtkType.h:315
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270