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 
36 class vtkOpenGLGlyph3DMapperArray; // pimp
39 
40 class VTKRENDERINGOPENGL_EXPORT vtkOpenGLGlyph3DMapper : public vtkGlyph3DMapper
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
52  virtual void Render(vtkRenderer *ren, vtkActor *a);
53 
59  virtual void ReleaseGraphicsResources(vtkWindow *window);
60 
61 protected:
62 
65 
70 
76 
80  void ReleaseList();
81 
86  virtual void UpdatePainterInformation();
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 
98 private:
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
vtkOpenGLGlyph3DMapper::Render
virtual void Render(vtkRenderer *ren, vtkActor *a)
Method initiates the mapping process.
vtkOpenGLGlyph3DMapper::New
static vtkOpenGLGlyph3DMapper * New()
vtkOpenGLGlyph3DMapper::ReleaseList
void ReleaseList()
Release display list used for matrices and color.
vtkOpenGLGlyph3DMapper::DisplayListId
unsigned int DisplayListId
Definition: vtkOpenGLGlyph3DMapper.h:92
vtkOpenGLGlyph3DMapper
vtkOpenGLGlyph3D on the GPU.
Definition: vtkOpenGLGlyph3DMapper.h:41
vtkScalarsToColorsPainter
painter that converts scalars to colors.
Definition: vtkScalarsToColorsPainter.h:44
vtkGlyph3DMapper.h
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:36
vtkPainterPolyDataMapper
PolyDataMapper using painters.
Definition: vtkPainterPolyDataMapper.h:38
vtkOpenGLGlyph3DMapper::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *window)
Release any graphics resources that are being consumed by this mapper.
vtkOpenGLGlyph3DMapper::PainterInformation
vtkInformation * PainterInformation
Definition: vtkOpenGLGlyph3DMapper.h:95
vtkOpenGLGlyph3DMapper::~vtkOpenGLGlyph3DMapper
~vtkOpenGLGlyph3DMapper()
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkOpenGLGlyph3DMapper::ScalarsToColorsPainter
vtkScalarsToColorsPainter * ScalarsToColorsPainter
Definition: vtkOpenGLGlyph3DMapper.h:94
vtkOpenGLGlyph3DMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkOpenGLGlyph3DMapper::PainterUpdateTime
vtkTimeStamp PainterUpdateTime
Definition: vtkOpenGLGlyph3DMapper.h:96
vtkOpenGLGlyph3DMapper::ReportReferences
void ReportReferences(vtkGarbageCollector *) override
Take part in garbage collection.
vtkGlyph3DMapper
vtkGlyph3D on the GPU.
Definition: vtkGlyph3DMapper.h:40
vtkOpenGLGlyph3DMapper::UpdatePainterInformation
virtual void UpdatePainterInformation()
Called when the PainterInformation becomes obsolete.
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkGlyph3DMapper::Render
virtual void Render(vtkRenderer *ren, vtkActor *act)
All the work is done is derived classes.
vtkWeakPointer.h
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:100
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkOpenGLGlyph3DMapper::CopyInformationToSubMapper
void CopyInformationToSubMapper(vtkPainterPolyDataMapper *)
Send mapper ivars to sub-mapper.
vtkGlyph3D.h
vtkWeakPointer< vtkWindow >
vtkOpenGLGlyph3DMapper::SourceMappers
vtkOpenGLGlyph3DMapperArray * SourceMappers
Definition: vtkOpenGLGlyph3DMapper.h:88
vtkOpenGLGlyph3DMapper::LastWindow
vtkWeakPointer< vtkWindow > LastWindow
Definition: vtkOpenGLGlyph3DMapper.h:90
vtkOpenGLGlyph3DMapper::vtkOpenGLGlyph3DMapper
vtkOpenGLGlyph3DMapper()