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:
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 
74 
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
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
dynamic, self-adjusting array of bits
Definition: vtkBitArray.h:37
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkGlyph3D on the GPU.
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:92
PolyDataMapper using OpenGL to render.
vtkOpenGLGlyph3D on the GPU.
virtual void RebuildStructures(vtkOpenGLGlyph3DMapperSubArray *entry, vtkIdType numPts, vtkActor *actor, vtkDataSet *dataset, vtkBitArray *maskArray, bool selecting_points)
Build data structures associated with.
static vtkOpenGLGlyph3DMapper * New()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void Render(vtkRenderer *, vtkActor *, vtkDataSet *)
Render setup.
void CopyInformationToSubMapper(vtkOpenGLGlyph3DHelper *)
Send mapper ivars to sub-mapper.
virtual void Render(vtkRenderer *ren, vtkActor *a)
Method initiates the mapping process.
vtkOpenGLGlyph3DMapperArray * GlyphValues
virtual void ReleaseGraphicsResources(vtkWindow *window)
Release any graphics resources that are being consumed by this mapper.
abstract specification for renderers
Definition: vtkRenderer.h:64
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
int vtkIdType
Definition: vtkType.h:287