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 "vtkRenderingCoreModule.h" // For export macro
31 #include "vtkObject.h"
32 
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
41 
44  void AddMapping(const char* attributeName, const char* arrayName,
45  int fieldAssociation, int component);
47 
49 
52  void AddMapping(
53  int unit, const char* arrayName, int fieldAssociation,
54  int component);
56 
58  bool RemoveMapping(const char* attributeName);
59 
61  void RemoveAllMappings();
62 
64  unsigned int GetNumberOfMappings();
65 
67  const char* GetAttributeName(unsigned int index);
68 
70  const char* GetArrayName(unsigned int index);
71 
73  int GetFieldAssociation(unsigned int index);
74 
76  int GetComponent(unsigned int index);
77 
79  int GetTextureUnit(unsigned int index);
80 
81 //BTX
82 protected:
85 
86 private:
88  void operator=(const vtkGenericVertexAttributeMapping&); // Not implemented.
89 
90  class vtkInternal;
91  vtkInternal* Internal;
92 //ETX
93 };
94 
95 #endif
96 
97 
abstract base class for most VTK objects
Definition: vtkObject.h:61
stores mapping for data arrays to generic vertex attributes.
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKRENDERINGCORE_EXPORT
static vtkObject * New()