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);
45 
51  virtual void Render(vtkRenderer *ren, vtkActor *a);
52 
58  virtual void ReleaseGraphicsResources(vtkWindow *window);
59 
60 protected:
63 
67  virtual void Render(vtkRenderer*, vtkActor*, vtkDataSet*);
68 
73  void CopyInformationToSubMapper(vtkOpenGLGlyph3DHelper*);
74 
75  void SetupColorMapper();
76 
78 
79  class vtkOpenGLGlyph3DMapperEntry;
80  class vtkOpenGLGlyph3DMapperSubArray;
81  class vtkOpenGLGlyph3DMapperArray;
82  vtkOpenGLGlyph3DMapperArray *GlyphValues; // array of value for datasets
83 
87  virtual void RebuildStructures(vtkOpenGLGlyph3DMapperSubArray *entry,
88  vtkIdType numPts, vtkActor* actor, vtkDataSet* dataset,
89  vtkBitArray *maskArray, bool selecting_points);
90 
91  vtkWeakPointer<vtkWindow> LastWindow; // Window used for previous render.
92 
93 private:
94  vtkOpenGLGlyph3DMapper(const vtkOpenGLGlyph3DMapper&) VTK_DELETE_FUNCTION;
95  void operator=(const vtkOpenGLGlyph3DMapper&) VTK_DELETE_FUNCTION;
96 };
97 
98 #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
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
abstract specification for renderers
Definition: vtkRenderer.h:63
int vtkIdType
Definition: vtkType.h:287
vtkGlyph3D on the GPU.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:37
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkOpenGLGlyph3DMapperArray * GlyphValues
PolyDataMapper using OpenGL to render.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:91
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:36