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 "vtkRenderingOpenGLModule.h" // For export macro
32#include "vtkGlyph3DMapper.h"
33#include "vtkGlyph3D.h" // for the constants (VTK_SCALE_BY_SCALAR, ...).
34#include "vtkWeakPointer.h" // needed for vtkWeakPointer.
35
36class vtkOpenGLGlyph3DMapperArray; // pimp
39
40class VTKRENDERINGOPENGL_EXPORT vtkOpenGLGlyph3DMapper : public vtkGlyph3DMapper
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent);
46
52 virtual void Render(vtkRenderer *ren, vtkActor *a);
53
59 virtual void ReleaseGraphicsResources(vtkWindow *window);
60
61protected:
62
65
70
76
81
87
88 vtkOpenGLGlyph3DMapperArray *SourceMappers; // array of mappers
89
90 vtkWeakPointer<vtkWindow> LastWindow; // Window used for previous render.
91
92 unsigned int DisplayListId; // GLuint
93
97
98private:
99 vtkOpenGLGlyph3DMapper(const vtkOpenGLGlyph3DMapper&) VTK_DELETE_FUNCTION;
100 void operator=(const vtkOpenGLGlyph3DMapper&) VTK_DELETE_FUNCTION;
101
102 virtual void Render(vtkRenderer*, vtkActor*, vtkDataSet*);
103
104};
105
106#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
Detect and break reference loops.
vtkGlyph3D on the GPU.
virtual void Render(vtkRenderer *ren, vtkActor *act)
All the work is done is derived classes.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
vtkOpenGLGlyph3D on the GPU.
void ReleaseList()
Release display list used for matrices and color.
vtkWeakPointer< vtkWindow > LastWindow
void CopyInformationToSubMapper(vtkPainterPolyDataMapper *)
Send mapper ivars to sub-mapper.
vtkOpenGLGlyph3DMapperArray * SourceMappers
virtual void UpdatePainterInformation()
Called when the PainterInformation becomes obsolete.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkInformation * PainterInformation
virtual void Render(vtkRenderer *ren, vtkActor *a)
Method initiates the mapping process.
void ReportReferences(vtkGarbageCollector *) override
Take part in garbage collection.
static vtkOpenGLGlyph3DMapper * New()
virtual void ReleaseGraphicsResources(vtkWindow *window)
Release any graphics resources that are being consumed by this mapper.
vtkScalarsToColorsPainter * ScalarsToColorsPainter
PolyDataMapper using painters.
abstract specification for renderers
Definition: vtkRenderer.h:64
painter that converts scalars to colors.
record modification and/or execution time
Definition: vtkTimeStamp.h:36
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35