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 "vtkRenderingOpenGL2Module.h" // For export macro
31 #include "vtkGlyph3DMapper.h"
32 #include "vtkNew.h" // For vtkNew
33 
35 class vtkBitArray;
36 
38  : public vtkGlyph3DMapper
39 {
40 public:
41  static vtkOpenGLGlyph3DMapper* New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
48  virtual void Render(vtkRenderer *ren, vtkActor *a);
49 
53  virtual void ReleaseGraphicsResources(vtkWindow *window);
54 
55 protected:
58 
60  virtual void Render(vtkRenderer*, vtkActor*, vtkDataSet*);
61 
63  void CopyInformationToSubMapper(vtkOpenGLGlyph3DHelper*);
64 
65  void SetupColorMapper();
66 
68 
69  class vtkOpenGLGlyph3DMapperEntry;
70  class vtkOpenGLGlyph3DMapperSubArray;
71  class vtkOpenGLGlyph3DMapperArray;
72  vtkOpenGLGlyph3DMapperArray *GlyphValues; // array of value for datasets
73 
75 
76  virtual void RebuildStructures(vtkOpenGLGlyph3DMapperSubArray *entry,
77  vtkIdType numPts, vtkActor* actor, vtkDataSet* dataset,
78  vtkBitArray *maskArray, bool selecting_points);
80 
81  vtkWeakPointer<vtkWindow> LastWindow; // Window used for previous render.
82 
83 private:
84  vtkOpenGLGlyph3DMapper(const vtkOpenGLGlyph3DMapper&); // Not implemented.
85  void operator=(const vtkOpenGLGlyph3DMapper&); // Not implemented.
86 };
87 
88 #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
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
#define VTKRENDERINGOPENGL2_EXPORT
abstract specification for renderers
Definition: vtkRenderer.h:62
int vtkIdType
Definition: vtkType.h:247
vtkGlyph3D on the GPU.
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkOpenGLGlyph3DMapperArray * GlyphValues
PolyDataMapper using OpenGL to render.
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:89
void PrintSelf(ostream &os, vtkIndent indent)
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:35