VTK
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 "vtkRenderingOpenGL2Module.h" // For export macro
32 #include "vtkGlyph3DMapper.h"
33 #include "vtkNew.h" // For vtkNew
34 
36 class vtkBitArray;
37 
38 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLGlyph3DMapper
39  : public vtkGlyph3DMapper
40 {
41 public:
42  static vtkOpenGLGlyph3DMapper* New();
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
50  void Render(vtkRenderer *ren, vtkActor *a) override;
51 
57  void ReleaseGraphicsResources(vtkWindow *window) override;
58 
60 
64  virtual vtkIdType GetMaxNumberOfLOD() override;
65 
69  virtual void SetNumberOfLOD(vtkIdType nb) override;
70 
79  virtual void SetLODDistanceAndTargetReduction(vtkIdType index, float distance, float targetReduction) override;
81 
82 protected:
84  ~vtkOpenGLGlyph3DMapper() override;
85 
89  virtual void Render(vtkRenderer*, vtkActor*, vtkDataSet*);
90 
95  void CopyInformationToSubMapper(vtkOpenGLGlyph3DHelper*);
96 
97  void SetupColorMapper();
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 *entry,
110  vtkIdType numPts, vtkActor* actor, vtkDataSet* dataset,
111  vtkBitArray *maskArray);
112 
113  vtkMTimeType BlockMTime; // Last time BlockAttributes was modified.
114 
115 private:
117  void operator=(const vtkOpenGLGlyph3DMapper&) = delete;
118 };
119 
120 #endif
vtkOpenGLGlyph3D on the GPU.
static vtkGlyph3DMapper * New()
void Render(vtkRenderer *ren, vtkActor *act) override
All the work is done is derived classes.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
abstract specification for renderers
Definition: vtkRenderer.h:63
int vtkIdType
Definition: vtkType.h:347
vtkGlyph3D on the GPU.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
virtual vtkIdType GetMaxNumberOfLOD()
Get the maximum number of LOD.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkOpenGLGlyph3DMapperArray * GlyphValues
virtual void SetNumberOfLOD(vtkIdType vtkNotUsed(nb))
Set the number of LOD.
PolyDataMapper using OpenGL to render.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:86
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:36
virtual void SetLODDistanceAndTargetReduction(vtkIdType vtkNotUsed(index), float vtkNotUsed(distance), float vtkNotUsed(targetReduction))
Configure LODs.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
Definition: vtkMapper.h:114