VTK
vtkGenericVertexAttributeMapping.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkGenericVertexAttributeMapping.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 __vtkGenericVertexAttributeMapping_h
28 #define __vtkGenericVertexAttributeMapping_h
29 
30 #include "vtkObject.h"
31 
33 {
34 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
40 
43  void AddMapping(const char* attributeName, const char* arrayName,
44  int fieldAssociation, int component);
46 
48 
51  void AddMapping(
52  int unit, const char* arrayName, int fieldAssociation,
53  int component);
55 
57  bool RemoveMapping(const char* attributeName);
58 
60  void RemoveAllMappings();
61 
63  unsigned int GetNumberOfMappings();
64 
66  const char* GetAttributeName(unsigned int index);
67 
69  const char* GetArrayName(unsigned int index);
70 
72  int GetFieldAssociation(unsigned int index);
73 
75  int GetComponent(unsigned int index);
76 
78  int GetTextureUnit(unsigned int index);
79 
80 //BTX
81 protected:
84 
85 private:
87  void operator=(const vtkGenericVertexAttributeMapping&); // Not implemented.
88 
89  class vtkInternal;
90  vtkInternal* Internal;
91 //ETX
92 };
93 
94 #endif
95 
96