VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 =========================================================================*/
27 #ifndef __vtkPainterPolyDataMapper_h
28 #define __vtkPainterPolyDataMapper_h
29 
30 #include "vtkRenderingCoreModule.h" // For export macro
31 #include "vtkPolyDataMapper.h"
32 
33 class vtkPainterPolyDataMapperObserver;
34 class vtkPainter;
35 
37 {
38 public:
39  static vtkPainterPolyDataMapper* New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44  virtual void RenderPiece(vtkRenderer *ren, vtkActor *act);
45 
47 
51  vtkGetObjectMacro(Painter, vtkPainter);
52  void SetPainter(vtkPainter*);
54 
59 
61 
69  virtual void MapDataArrayToVertexAttribute(
70  const char* vertexAttributeName,
71  const char* dataArrayName, int fieldAssociation, int componentno=-1);
73 
75  int unit,
76  const char* dataArrayName, int fieldAssociation, int componentno=-1);
77 
79  virtual void RemoveVertexAttributeMapping(const char* vertexAttributeName);
80 
82  virtual void RemoveAllVertexAttributeMappings();
83 
85 
86  vtkGetObjectMacro(SelectionPainter, vtkPainter);
87  void SetSelectionPainter(vtkPainter*);
89 
91 
95  virtual bool GetSupportsSelection()
96  { return (this->SelectionPainter != 0); }
98 
107  virtual bool GetIsOpaque();
108 
109 protected:
112 
117  virtual void ComputeBounds();
118 
121  virtual void UpdatePainterInformation();
122 
124  virtual void ReportReferences(vtkGarbageCollector *collector);
125 
129  // Painter used when rendering for hardware selection
130  // (look at vtkHardwareSelector).
132  vtkPainterPolyDataMapperObserver* Observer;
133 private:
134  vtkPainterPolyDataMapper(const vtkPainterPolyDataMapper&); // Not implemented.
135  void operator=(const vtkPainterPolyDataMapper&); // Not implemented.
136 };
137 
138 #endif
139 
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:106
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:395
virtual void RenderPiece(vtkRenderer *ren, vtkActor *act)=0
virtual void RemoveVertexAttributeMapping(const char *vertexAttributeName)
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
Detect and break reference loops.
virtual void ReportReferences(vtkGarbageCollector *)
window superclass for vtkRenderWindow
Definition: vtkWindow.h:33
a simple class to control print indentation
Definition: vtkIndent.h:38
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:222
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
#define VTKRENDERINGCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
static vtkPolyDataMapper * New()
PolyDataMapper using painters.