VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Rendering/Core/vtkGenericVertexAttributeMapping.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkGenericVertexAttributeMapping.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00027 #ifndef vtkGenericVertexAttributeMapping_h
00028 #define vtkGenericVertexAttributeMapping_h
00029 
00030 #include "vtkRenderingCoreModule.h" // For export macro
00031 #include "vtkObject.h"
00032 
00033 class VTKRENDERINGCORE_EXPORT vtkGenericVertexAttributeMapping : public vtkObject
00034 {
00035 public:
00036   static vtkGenericVertexAttributeMapping* New();
00037   vtkTypeMacro(vtkGenericVertexAttributeMapping, vtkObject);
00038   void PrintSelf(ostream& os, vtkIndent indent);
00039 
00041 
00044   void AddMapping(const char* attributeName, const char* arrayName,
00045     int fieldAssociation, int component);
00047 
00049 
00052   void AddMapping(
00053     int unit, const char* arrayName, int fieldAssociation,
00054     int component);
00056 
00058   bool RemoveMapping(const char* attributeName);
00059 
00061   void RemoveAllMappings();
00062 
00064   unsigned int GetNumberOfMappings();
00065 
00067   const char* GetAttributeName(unsigned int index);
00068 
00070   const char* GetArrayName(unsigned int index);
00071 
00073   int GetFieldAssociation(unsigned int index);
00074 
00076   int GetComponent(unsigned int index);
00077 
00079   int GetTextureUnit(unsigned int index);
00080 
00081 //BTX
00082 protected:
00083   vtkGenericVertexAttributeMapping();
00084   ~vtkGenericVertexAttributeMapping();
00085 
00086 private:
00087   vtkGenericVertexAttributeMapping(const vtkGenericVertexAttributeMapping&); // Not implemented.
00088   void operator=(const vtkGenericVertexAttributeMapping&); // Not implemented.
00089 
00090   class vtkInternal;
00091   vtkInternal* Internal;
00092 //ETX
00093 };
00094 
00095 #endif
00096 
00097