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 
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 
vtkGenericVertexAttributeMapping::GetFieldAssociation
int GetFieldAssociation(unsigned int index)
vtkX3D::component
@ component
Definition: vtkX3D.h:175
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkGenericVertexAttributeMapping::vtkGenericVertexAttributeMapping
vtkGenericVertexAttributeMapping()
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:62
vtkGenericVertexAttributeMapping::GetComponent
int GetComponent(unsigned int index)
vtkGenericVertexAttributeMapping::RemoveMapping
bool RemoveMapping(const char *attributeName)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkRenderingCoreModule.h
vtkGenericVertexAttributeMapping::GetArrayName
const char * GetArrayName(unsigned int index)
vtkGenericVertexAttributeMapping::RemoveAllMappings
void RemoveAllMappings()
vtkObject.h
vtkGenericVertexAttributeMapping::GetTextureUnit
int GetTextureUnit(unsigned int index)
vtkGenericVertexAttributeMapping::GetNumberOfMappings
unsigned int GetNumberOfMappings()
vtkGenericVertexAttributeMapping::AddMapping
void AddMapping(const char *attributeName, const char *arrayName, int fieldAssociation, int component)
vtkGenericVertexAttributeMapping::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkgl::index
GLuint index
Definition: vtkgl.h:11983
vtkGenericVertexAttributeMapping::GetAttributeName
const char * GetAttributeName(unsigned int index)
vtkGenericVertexAttributeMapping::New
static vtkGenericVertexAttributeMapping * New()
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
vtkGenericVertexAttributeMapping::~vtkGenericVertexAttributeMapping
~vtkGenericVertexAttributeMapping()
vtkGenericVertexAttributeMapping
stores mapping for data arrays to generic vertex attributes.
Definition: vtkGenericVertexAttributeMapping.h:34
vtkGenericVertexAttributeMapping::AddMapping
void AddMapping(int unit, const char *arrayName, int fieldAssociation, int component)