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 =========================================================================*/
27 #ifndef vtkOpenGLGlyph3DMapper_h
28 #define vtkOpenGLGlyph3DMapper_h
29 
30 #include "vtkRenderingOpenGLModule.h" // For export macro
31 #include "vtkGlyph3DMapper.h"
32 #include "vtkGlyph3D.h" // for the constants (VTK_SCALE_BY_SCALAR, ...).
33 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
34 
35 class vtkOpenGLGlyph3DMapperArray; // pimp
38 
39 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLGlyph3DMapper : public vtkGlyph3DMapper
40 {
41 public:
42  static vtkOpenGLGlyph3DMapper* New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
49  virtual void Render(vtkRenderer *ren, vtkActor *a);
50 
54  virtual void ReleaseGraphicsResources(vtkWindow *window);
55 
56 protected:
57  //BTX
60 
63 
65  void CopyInformationToSubMapper(vtkPainterPolyDataMapper*);
66 
68  void ReleaseList();
69 
72  virtual void UpdatePainterInformation();
73 
74  vtkOpenGLGlyph3DMapperArray *SourceMappers; // array of mappers
75 
76  vtkWeakPointer<vtkWindow> LastWindow; // Window used for previous render.
77 
78  unsigned int DisplayListId; // GLuint
79 
83 
84 private:
85  vtkOpenGLGlyph3DMapper(const vtkOpenGLGlyph3DMapper&); // Not implemented.
86  void operator=(const vtkOpenGLGlyph3DMapper&); // Not implemented.
87 
88  virtual void Render(vtkRenderer*, vtkActor*, vtkDataSet*);
89  //ETX
90 };
91 
92 #endif
vtkOpenGLGlyph3D on the GPU.
static vtkGlyph3DMapper * New()
virtual void Render(vtkRenderer *ren, vtkActor *act)
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkMapper.h:109
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
record modification and/or execution time
Definition: vtkTimeStamp.h:34
abstract specification for renderers
Definition: vtkRenderer.h:62
vtkGlyph3D on the GPU.
vtkOpenGLGlyph3DMapperArray * SourceMappers
vtkWeakPointer< vtkWindow > LastWindow
Detect and break reference loops.
virtual void ReportReferences(vtkGarbageCollector *)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkScalarsToColorsPainter * ScalarsToColorsPainter
painter that converts scalars to colors. It enable/disables coloring state depending on the ScalarMod...
void PrintSelf(ostream &os, vtkIndent indent)
vtkInformation * PainterInformation
PolyDataMapper using painters.