VTK
vtkPolyDataMapper.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPolyDataMapper.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 vtkPolyDataMapper_h
31 #define vtkPolyDataMapper_h
32 
33 #include "vtkRenderingCoreModule.h" // For export macro
34 #include "vtkMapper.h"
35 #include "vtkTexture.h" // used to include texture unit enum.
36 
37 class vtkPolyData;
38 class vtkRenderer;
39 class vtkRenderWindow;
40 
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49  virtual void RenderPiece(vtkRenderer *ren, vtkActor *act) = 0;
50 
52  virtual void Render(vtkRenderer *ren, vtkActor *act);
53 
55 
59 
61 
62  void Update();
63  void Update(int port);
65 
67 
68  vtkSetMacro(Piece, int);
69  vtkGetMacro(Piece, int);
70  vtkSetMacro(NumberOfPieces, int);
71  vtkGetMacro(NumberOfPieces, int);
72  vtkSetMacro(NumberOfSubPieces, int);
73  vtkGetMacro(NumberOfSubPieces, int);
75 
77 
78  vtkSetMacro(GhostLevel, int);
79  vtkGetMacro(GhostLevel, int);
81 
83 
85  virtual double *GetBounds();
86  virtual void GetBounds(double bounds[6])
87  { this->Superclass::GetBounds(bounds); }
89 
92 
94 
103  const char* vertexAttributeName,
104  const char* dataArrayName, int fieldAssociation, int componentno = -1);
106 
108  int unit,
109  const char* dataArrayName, int fieldAssociation, int componentno = -1);
110 
112  virtual void RemoveVertexAttributeMapping(const char* vertexAttributeName);
113 
116 
118 
123 
124 protected:
127 
132  virtual void ComputeBounds();
133 
134  int Piece;
138 
140 
141 private:
142  vtkPolyDataMapper(const vtkPolyDataMapper&); // Not implemented.
143  void operator=(const vtkPolyDataMapper&); // Not implemented.
144 };
145 
146 #endif
vtkPolyDataMapper
map vtkPolyData to graphics primitives
Definition: vtkPolyDataMapper.h:42
vtkPolyDataMapper::GetBounds
virtual void GetBounds(double bounds[6])
Definition: vtkPolyDataMapper.h:86
vtkPolyDataMapper::SetInputData
void SetInputData(vtkPolyData *in)
vtkAbstractMapper3D::GetBounds
virtual double * GetBounds()=0
vtkgl::m
const GLfloat * m
Definition: vtkgl.h:18169
vtkPolyDataMapper::RenderPiece
virtual void RenderPiece(vtkRenderer *ren, vtkActor *act)=0
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkPolyDataMapper::RemoveVertexAttributeMapping
virtual void RemoveVertexAttributeMapping(const char *vertexAttributeName)
vtkPolyDataMapper::Update
void Update(int port)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPolyDataMapper::FillInputPortInformation
virtual int FillInputPortInformation(int, vtkInformation *)
vtkPolyDataMapper::vtkPolyDataMapper
vtkPolyDataMapper()
vtkPolyDataMapper::MapDataArrayToMultiTextureAttribute
virtual void MapDataArrayToMultiTextureAttribute(int unit, const char *dataArrayName, int fieldAssociation, int componentno=-1)
vtkPolyDataMapper::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkgl::in
GLuint in
Definition: vtkgl.h:16905
vtkMapper.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkPolyDataMapper::NumberOfSubPieces
int NumberOfSubPieces
Definition: vtkPolyDataMapper.h:136
vtkPolyDataMapper::GetBounds
virtual double * GetBounds()
vtkPolyDataMapper::Update
void Update()
vtkMapper
abstract class specifies interface to map data to graphics primitives
Definition: vtkMapper.h:90
vtkPolyDataMapper::ShallowCopy
void ShallowCopy(vtkAbstractMapper *m)
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
vtkRenderingCoreModule.h
vtkPolyDataMapper::GetInput
vtkPolyData * GetInput()
vtkPolyDataMapper::GhostLevel
int GhostLevel
Definition: vtkPolyDataMapper.h:137
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkTexture.h
vtkPolyDataMapper::NumberOfPieces
int NumberOfPieces
Definition: vtkPolyDataMapper.h:135
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkPolyDataMapper::Piece
int Piece
Definition: vtkPolyDataMapper.h:134
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkPolyDataMapper::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPolyDataMapper::New
static vtkPolyDataMapper * New()
vtkPolyDataMapper::MapDataArrayToVertexAttribute
virtual void MapDataArrayToVertexAttribute(const char *vertexAttributeName, const char *dataArrayName, int fieldAssociation, int componentno=-1)
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkPolyDataMapper::ComputeBounds
virtual void ComputeBounds()
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
vtkRenderWindow
create a window for renderers to draw into
Definition: vtkRenderWindow.h:89
vtkPolyDataMapper::Render
virtual void Render(vtkRenderer *ren, vtkActor *act)
vtkPolyDataMapper::RemoveAllVertexAttributeMappings
virtual void RemoveAllVertexAttributeMappings()
vtkAbstractMapper
abstract class specifies interface to map data
Definition: vtkAbstractMapper.h:52
vtkPolyDataMapper::~vtkPolyDataMapper
~vtkPolyDataMapper()
Definition: vtkPolyDataMapper.h:126