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);
46 
52  virtual void Render(vtkRenderer *ren, vtkActor *a);
53 
59  virtual void ReleaseGraphicsResources(vtkWindow *window);
60 
61 protected:
62 
65 
69  void ReportReferences(vtkGarbageCollector*) VTK_OVERRIDE;
70 
75  void CopyInformationToSubMapper(vtkPainterPolyDataMapper*);
76 
80  void ReleaseList();
81 
86  virtual void UpdatePainterInformation();
87 
88  vtkOpenGLGlyph3DMapperArray *SourceMappers; // array of mappers
89 
90  vtkWeakPointer<vtkWindow> LastWindow; // Window used for previous render.
91 
92  unsigned int DisplayListId; // GLuint
93 
94  vtkScalarsToColorsPainter* ScalarsToColorsPainter;
95  vtkInformation* PainterInformation;
96  vtkTimeStamp PainterUpdateTime;
97 
98 private:
99  vtkOpenGLGlyph3DMapper(const vtkOpenGLGlyph3DMapper&) VTK_DELETE_FUNCTION;
100  void operator=(const vtkOpenGLGlyph3DMapper&) VTK_DELETE_FUNCTION;
101 
102  virtual void Render(vtkRenderer*, vtkActor*, vtkDataSet*);
103 
104 };
105 
106 #endif
vtkOpenGLGlyph3D on the GPU.
static vtkGlyph3DMapper * New()
virtual void Render(vtkRenderer *ren, vtkActor *act)
All the work is done is derived classes.
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
virtual void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
Definition: vtkMapper.h:119
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
void ReportReferences(vtkGarbageCollector *) override
record modification and/or execution time
Definition: vtkTimeStamp.h:35
abstract specification for renderers
Definition: vtkRenderer.h:63
vtkGlyph3D on the GPU.
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.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
PolyDataMapper using painters.