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 "vtkRenderingOpenGLModule.h" // For export macro
32 #include "vtkGlyph3DMapper.h"
33 #include "vtkGlyph3D.h" // for the constants (VTK_SCALE_BY_SCALAR, ...).
34 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
35 
36 class vtkOpenGLGlyph3DMapperArray; // pimp
39 
40 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLGlyph3DMapper : public vtkGlyph3DMapper
41 {
42 public:
43  static vtkOpenGLGlyph3DMapper* New();
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 
51  void Render(vtkRenderer *ren, vtkActor *a) VTK_OVERRIDE;
52 
58  void ReleaseGraphicsResources(vtkWindow *window) VTK_OVERRIDE;
59 
60 protected:
61 
63  ~vtkOpenGLGlyph3DMapper() VTK_OVERRIDE;
64 
68  void ReportReferences(vtkGarbageCollector*) VTK_OVERRIDE;
69 
74  void CopyInformationToSubMapper(vtkPainterPolyDataMapper*);
75 
79  void ReleaseList();
80 
85  virtual void UpdatePainterInformation();
86 
87  vtkOpenGLGlyph3DMapperArray *SourceMappers; // array of mappers
88 
89  vtkWeakPointer<vtkWindow> LastWindow; // Window used for previous render.
90 
91  unsigned int DisplayListId; // GLuint
92 
93  vtkScalarsToColorsPainter* ScalarsToColorsPainter;
94  vtkInformation* PainterInformation;
95  vtkTimeStamp PainterUpdateTime;
96 
97 private:
98  vtkOpenGLGlyph3DMapper(const vtkOpenGLGlyph3DMapper&) VTK_DELETE_FUNCTION;
99  void operator=(const vtkOpenGLGlyph3DMapper&) VTK_DELETE_FUNCTION;
100 
101  virtual void Render(vtkRenderer*, vtkActor*, vtkDataSet*);
102 
103 };
104 
105 #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
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
record modification and/or execution time
Definition: vtkTimeStamp.h:35
abstract specification for renderers
Definition: vtkRenderer.h:63
vtkGlyph3D on the GPU.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Detect and break reference loops.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
a simple class to control print indentation
Definition: vtkIndent.h:39
a weak reference to a vtkObject.
painter that converts scalars to colors.
PolyDataMapper using painters.
void ReleaseGraphicsResources(vtkWindow *) override
Release any graphics resources that are being consumed by this mapper.
Definition: vtkMapper.h:119