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) VTK_OVERRIDE;
45 
50  void Render(vtkRenderer *ren, vtkActor *a) VTK_OVERRIDE;
51 
57  void ReleaseGraphicsResources(vtkWindow *window) VTK_OVERRIDE;
58 
59 protected:
61  ~vtkOpenGLGlyph3DMapper() VTK_OVERRIDE;
62 
66  virtual void Render(vtkRenderer*, vtkActor*, vtkDataSet*);
67 
72  void CopyInformationToSubMapper(vtkOpenGLGlyph3DHelper*);
73 
74  void SetupColorMapper();
75 
76  vtkMapper *ColorMapper;
77 
78  class vtkOpenGLGlyph3DMapperEntry;
79  class vtkOpenGLGlyph3DMapperSubArray;
80  class vtkOpenGLGlyph3DMapperArray;
81  vtkOpenGLGlyph3DMapperArray *GlyphValues; // array of value for datasets
82 
86  virtual void RebuildStructures(vtkOpenGLGlyph3DMapperSubArray *entry,
87  vtkIdType numPts, vtkActor* actor, vtkDataSet* dataset,
88  vtkBitArray *maskArray);
89 
90  vtkWeakPointer<vtkWindow> LastWindow; // Window used for previous render.
91 
92 private:
93  vtkOpenGLGlyph3DMapper(const vtkOpenGLGlyph3DMapper&) VTK_DELETE_FUNCTION;
94  void operator=(const vtkOpenGLGlyph3DMapper&) VTK_DELETE_FUNCTION;
95 };
96 
97 #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 &amp; properties) in a rendered scene
Definition: vtkActor.h:45
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
abstract specification for renderers
Definition: vtkRenderer.h:57
int vtkIdType
Definition: vtkType.h:345
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:34
a simple class to control print indentation
Definition: vtkIndent.h:33
a weak reference to a vtkObject.
PolyDataMapper using OpenGL to render.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:85
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:33
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
Definition: vtkMapper.h:113