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 =========================================================================*/
30 #ifndef vtkPainterPolyDataMapper_h
31 #define vtkPainterPolyDataMapper_h
32 
33 #include "vtkRenderingOpenGLModule.h" // For export macro
34 #include "vtkPolyDataMapper.h"
35 
36 class vtkPainterPolyDataMapperObserver;
37 class vtkPainter;
38 
40 {
41 public:
42  static vtkPainterPolyDataMapper* New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47  virtual void RenderPiece(vtkRenderer *ren, vtkActor *act);
48 
50 
54  vtkGetObjectMacro(Painter, vtkPainter);
55  void SetPainter(vtkPainter*);
57 
62 
64 
72  virtual void MapDataArrayToVertexAttribute(
73  const char* vertexAttributeName,
74  const char* dataArrayName, int fieldAssociation, int componentno=-1);
76 
78  int unit,
79  const char* dataArrayName, int fieldAssociation, int componentno=-1);
80 
82  virtual void RemoveVertexAttributeMapping(const char* vertexAttributeName);
83 
85  virtual void RemoveAllVertexAttributeMappings();
86 
88 
89  vtkGetObjectMacro(SelectionPainter, vtkPainter);
90  void SetSelectionPainter(vtkPainter*);
92 
94 
98  virtual bool GetSupportsSelection()
99  { return (this->SelectionPainter != 0); }
101 
110  virtual bool GetIsOpaque();
111 
112 protected:
115 
120  virtual void ComputeBounds();
121 
124  virtual void UpdatePainterInformation();
125 
127  virtual void ReportReferences(vtkGarbageCollector *collector);
128 
132  // Painter used when rendering for hardware selection
133  // (look at vtkHardwareSelector).
135  vtkPainterPolyDataMapperObserver* Observer;
136 private:
137  vtkPainterPolyDataMapper(const vtkPainterPolyDataMapper&); // Not implemented.
138  void operator=(const vtkPainterPolyDataMapper&); // Not implemented.
139 };
140 
141 #endif
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
virtual void MapDataArrayToMultiTextureAttribute(int unit, const char *dataArrayName, int fieldAssociation, int componentno=-1)
virtual void ReleaseGraphicsResources(vtkWindow *)
Definition: vtkMapper.h:109
virtual void RemoveAllVertexAttributeMappings()
Store vtkAlgorithm input/output information.
record modification and/or execution time
Definition: vtkTimeStamp.h:34
vtkPainterPolyDataMapperObserver * Observer
abstract specification for renderers
Definition: vtkRenderer.h:63
virtual bool GetIsOpaque()
Definition: vtkMapper.h:422
virtual void RenderPiece(vtkRenderer *ren, vtkActor *act)=0
virtual void RemoveVertexAttributeMapping(const char *vertexAttributeName)
Detect and break reference loops.
virtual void ReportReferences(vtkGarbageCollector *)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGOPENGL_EXPORT
virtual void ComputeBounds()
virtual void MapDataArrayToVertexAttribute(const char *vertexAttributeName, const char *dataArrayName, int fieldAssociation, int componentno=-1)
map vtkPolyData to graphics primitives
Abstract class for drawing poly data.
Definition: vtkPainter.h:63
void PrintSelf(ostream &os, vtkIndent indent)
static vtkPolyDataMapper * New()
PolyDataMapper using painters.