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:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47  virtual void RenderPiece(vtkRenderer *ren, vtkActor *act);
48 
50 
57 
62 
64 
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 
86 
88 
89  vtkGetObjectMacro(SelectionPainter, 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
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:42
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkPainterPolyDataMapper::New
static vtkPainterPolyDataMapper * New()
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkPainterPolyDataMapper
PolyDataMapper using painters.
Definition: vtkPainterPolyDataMapper.h:40
vtkRenderingOpenGLModule.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkPainterPolyDataMapper::UpdatePainterInformation
virtual void UpdatePainterInformation()
vtkPainterPolyDataMapper::SetSelectionPainter
void SetSelectionPainter(vtkPainter *)
vtkPainterPolyDataMapper::SelectionPainter
vtkPainter * SelectionPainter
Definition: vtkPainterPolyDataMapper.h:134
vtkPainterPolyDataMapper::Painter
vtkPainter * Painter
Definition: vtkPainterPolyDataMapper.h:131
vtkPainterPolyDataMapper::Observer
vtkPainterPolyDataMapperObserver * Observer
Definition: vtkPainterPolyDataMapper.h:135
vtkPainterPolyDataMapper::GetSupportsSelection
virtual bool GetSupportsSelection()
Definition: vtkPainterPolyDataMapper.h:98
vtkPainterPolyDataMapper::PainterInformation
vtkInformation * PainterInformation
Definition: vtkPainterPolyDataMapper.h:129
vtkPainterPolyDataMapper::RemoveAllVertexAttributeMappings
virtual void RemoveAllVertexAttributeMappings()
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPainterPolyDataMapper::ReportReferences
virtual void ReportReferences(vtkGarbageCollector *collector)
vtkPainter
Abstract class for drawing poly data.
Definition: vtkPainter.h:64
vtkPainterPolyDataMapper::vtkPainterPolyDataMapper
vtkPainterPolyDataMapper()
vtkPainterPolyDataMapper::~vtkPainterPolyDataMapper
~vtkPainterPolyDataMapper()
vtkPainterPolyDataMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPainterPolyDataMapper::GetIsOpaque
virtual bool GetIsOpaque()
vtkGarbageCollector
Detect and break reference loops.
Definition: vtkGarbageCollector.h:99
vtkPainterPolyDataMapper::SetPainter
void SetPainter(vtkPainter *)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkPainterPolyDataMapper::MapDataArrayToMultiTextureAttribute
virtual void MapDataArrayToMultiTextureAttribute(int unit, const char *dataArrayName, int fieldAssociation, int componentno=-1)
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkPainterPolyDataMapper::RemoveVertexAttributeMapping
virtual void RemoveVertexAttributeMapping(const char *vertexAttributeName)
vtkPainterPolyDataMapper::ComputeBounds
virtual void ComputeBounds()
vtkPainterPolyDataMapper::PainterUpdateTime
vtkTimeStamp PainterUpdateTime
Definition: vtkPainterPolyDataMapper.h:130
vtkPolyDataMapper.h
vtkPainterPolyDataMapper::RenderPiece
virtual void RenderPiece(vtkRenderer *ren, vtkActor *act)
vtkPainterPolyDataMapper::MapDataArrayToVertexAttribute
virtual void MapDataArrayToVertexAttribute(const char *vertexAttributeName, const char *dataArrayName, int fieldAssociation, int componentno=-1)
vtkPainterPolyDataMapper::ReleaseGraphicsResources
void ReleaseGraphicsResources(vtkWindow *)
VTKRENDERINGOPENGL_EXPORT
#define VTKRENDERINGOPENGL_EXPORT
Definition: vtkRenderingOpenGLModule.h:15