VTK
vtkPainterPolyDataMapper.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPainterPolyDataMapper.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 vtkPainterPolyDataMapper_h
29#define vtkPainterPolyDataMapper_h
30
31#include "vtkRenderingOpenGLModule.h" // For export macro
32#include "vtkPolyDataMapper.h"
33
34class vtkPainterPolyDataMapperObserver;
35class vtkPainter;
36
37class VTKRENDERINGOPENGL_EXPORT vtkPainterPolyDataMapper : public vtkPolyDataMapper
38{
39public:
42 void PrintSelf(ostream& os, vtkIndent indent);
43
47 virtual void RenderPiece(vtkRenderer *ren, vtkActor *act);
48
50
56 vtkGetObjectMacro(Painter, vtkPainter);
59
66
79 const char* vertexAttributeName,
80 const char* dataArrayName, int fieldAssociation, int componentno=-1);
81
83 int unit,
84 const char* dataArrayName, int fieldAssociation, int componentno=-1);
85
89 virtual void RemoveVertexAttributeMapping(const char* vertexAttributeName);
90
95
97
100 vtkGetObjectMacro(SelectionPainter, vtkPainter);
103
110 virtual bool GetSupportsSelection()
111 { return (this->SelectionPainter != 0); }
112
123 virtual bool GetIsOpaque();
124
125protected:
128
134 virtual void ComputeBounds();
135
141
145 void ReportReferences(vtkGarbageCollector *collector) VTK_OVERRIDE;
146
150 // Painter used when rendering for hardware selection
151 // (look at vtkHardwareSelector).
153 vtkPainterPolyDataMapperObserver* Observer;
154private:
155 vtkPainterPolyDataMapper(const vtkPainterPolyDataMapper&) VTK_DELETE_FUNCTION;
156 void operator=(const vtkPainterPolyDataMapper&) VTK_DELETE_FUNCTION;
157};
158
159#endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:52
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
PolyDataMapper using painters.
virtual void MapDataArrayToMultiTextureAttribute(int unit, const char *dataArrayName, int fieldAssociation, int componentno=-1)
virtual void MapDataArrayToVertexAttribute(const char *vertexAttributeName, const char *dataArrayName, int fieldAssociation, int componentno=-1)
Select a data array from the point/cell data and map it to a generic vertex attribute.
virtual void RenderPiece(vtkRenderer *ren, vtkActor *act)
Implemented by sub classes.
vtkPainterPolyDataMapperObserver * Observer
void SetPainter(vtkPainter *)
virtual bool GetIsOpaque()
Returns if the mapper does not expect to have translucent geometry.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void RemoveAllVertexAttributeMappings()
Remove all vertex attributes.
void ReportReferences(vtkGarbageCollector *collector) override
Take part in garbage collection.
virtual void ComputeBounds()
Called in GetBounds().
virtual void UpdatePainterInformation()
Called when the PainterInformation becomes obsolete.
virtual bool GetSupportsSelection()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THIS METHOD OUTSIDE OF THE RENDERI...
static vtkPainterPolyDataMapper * New()
virtual void RemoveVertexAttributeMapping(const char *vertexAttributeName)
Remove a vertex attribute mapping.
void SetSelectionPainter(vtkPainter *)
void ReleaseGraphicsResources(vtkWindow *)
Release any graphics resources that are being consumed by this mapper.
Abstract class for drawing poly data.
Definition: vtkPainter.h:62
map vtkPolyData to graphics primitives
abstract specification for renderers
Definition: vtkRenderer.h:64
record modification and/or execution time
Definition: vtkTimeStamp.h:36
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35