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 "vtkGlyph3DMapper.h"
31 #include "vtkGlyph3D.h" // for the constants (VTK_SCALE_BY_SCALAR, ...).
32 #include "vtkWeakPointer.h" // needed for vtkWeakPointer.
33 
34 class vtkOpenGLGlyph3DMapperArray; // pimp
37 
39 {
40 public:
41  static vtkOpenGLGlyph3DMapper* New();
43 
47  virtual void Render(vtkRenderer *ren, vtkActor *a);
48 
52  virtual void ReleaseGraphicsResources(vtkWindow *window);
53 
54  void PrintSelf(ostream& os, vtkIndent indent);
55 
56  //BTX
57 protected:
60 
62  virtual void ReportReferences(vtkGarbageCollector *collector);
63 
65  void CopyInformationToSubMapper(vtkPainterPolyDataMapper *mapper);
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 *ren, vtkActor *a, vtkDataSet* ds);
89  //ETX
90 };
91 
92 #endif
vtkOpenGLGlyph3D on the GPU.
static vtkGlyph3DMapper * New()
virtual void Render(vtkRenderer *ren, vtkActor *act)
vtkWeakPointer< vtkWindow > LastWindow
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:49
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkMapper.h:105
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
record modification and/or execution time
Definition: vtkTimeStamp.h:33
abstract specification for renderers
Definition: vtkRenderer.h:69
vtkGlyph3D on the GPU.
vtkOpenGLGlyph3DMapperArray * SourceMappers
Detect and break reference loops.
virtual void ReportReferences(vtkGarbageCollector *)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
a simple class to control print indentation
Definition: vtkIndent.h:37
vtkScalarsToColorsPainter * ScalarsToColorsPainter
painter that converts scalars to colors. It enable/disables coloring state depending on the ScalarMod...
#define VTK_RENDERING_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
vtkInformation * PainterInformation
PolyDataMapper using painters.