VTK  9.0.20200809
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 
36 class vtkBitArray;
37 
38 class VTKRENDERINGOPENGL2_EXPORT vtkOpenGLGlyph3DMapper : public vtkGlyph3DMapper
39 {
40 public:
41  static vtkOpenGLGlyph3DMapper* New();
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 
63  vtkIdType GetMaxNumberOfLOD() override;
64 
68  void SetNumberOfLOD(vtkIdType nb) override;
69 
79  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* subarray, vtkIdType numPts,
110  vtkActor* actor, vtkDataSet* dataset, vtkBitArray* maskArray);
111 
112  vtkMTimeType BlockMTime; // Last time BlockAttributes was modified.
113 
114 private:
116  void operator=(const vtkOpenGLGlyph3DMapper&) = delete;
117 };
118 
119 #endif
vtkGlyph3DMapper::GetMaxNumberOfLOD
virtual vtkIdType GetMaxNumberOfLOD()
Get the maximum number of LOD.
vtkOpenGLGlyph3DHelper
PolyDataMapper using OpenGL to render.
Definition: vtkOpenGLGlyph3DHelper.h:33
vtkOpenGLGlyph3DMapper
vtkOpenGLGlyph3D on the GPU.
Definition: vtkOpenGLGlyph3DMapper.h:38
vtkIdType
int vtkIdType
Definition: vtkType.h:330
vtkGlyph3DMapper.h
vtkOpenGLGlyph3DMapper::BlockMTime
vtkMTimeType BlockMTime
Definition: vtkOpenGLGlyph3DMapper.h:112
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:38
vtkOpenGLGlyph3DMapper::GlyphValues
vtkOpenGLGlyph3DMapperArray * GlyphValues
Definition: vtkOpenGLGlyph3DMapper.h:103
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:81
vtkGlyph3DMapper
vtkGlyph3D on the GPU.
Definition: vtkGlyph3DMapper.h:39
vtkGlyph3DMapper::SetLODDistanceAndTargetReduction
virtual void SetLODDistanceAndTargetReduction(vtkIdType vtkNotUsed(index), float vtkNotUsed(distance), float vtkNotUsed(targetReduction))
Configure LODs.
Definition: vtkGlyph3DMapper.h:430
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkMapper::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
Definition: vtkMapper.h:109
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkGlyph3DMapper::New
static vtkGlyph3DMapper * New()
vtkGlyph3DMapper::Render
void Render(vtkRenderer *ren, vtkActor *act) override
All the work is done is derived classes.
vtkNew.h
vtkGlyph3DMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:67
vtkBitArray
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
vtkX3D::index
Definition: vtkX3D.h:252
vtkOpenGLGlyph3DMapper::ColorMapper
vtkMapper * ColorMapper
Definition: vtkOpenGLGlyph3DMapper.h:99
vtkGlyph3DMapper::SetNumberOfLOD
virtual void SetNumberOfLOD(vtkIdType vtkNotUsed(nb))
Set the number of LOD.
Definition: vtkGlyph3DMapper.h:418
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:285