VTK
vtkAssignAttribute.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAssignAttribute.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 =========================================================================*/
62 #ifndef __vtkAssignAttribute_h
63 #define __vtkAssignAttribute_h
64 
66 
67 #include "vtkDataSetAttributes.h" // Needed for NUM_ATTRIBUTES
68 
69 class vtkFieldData;
70 
72 {
73 public:
75  void PrintSelf(ostream& os, vtkIndent indent);
76 
78  static vtkAssignAttribute *New();
79 
81  void Assign(int inputAttributeType, int attributeType, int attributeLoc);
82 
84  void Assign(const char* fieldName, int attributeType, int attributeLoc);
85 
87 
89  void Assign(const char* name, const char* attributeType,
90  const char* attributeLoc);
92 
93 
94 //BTX
95  // Always keep NUM_ATTRIBUTE_LOCS as the last entry
97  {
98  POINT_DATA=0,
99  CELL_DATA=1,
100  VERTEX_DATA=2,
101  EDGE_DATA=3,
102  NUM_ATTRIBUTE_LOCS
103  };
104 //ETX
105 
106 protected:
107 
108 //BTX
110  {
112  ATTRIBUTE
113  };
114 //ETX
115 
117  virtual ~vtkAssignAttribute();
118 
122 
123  char* FieldName;
128 
129  static char AttributeLocationNames[vtkAssignAttribute::NUM_ATTRIBUTE_LOCS][12];
130  static char AttributeNames[vtkDataSetAttributes::NUM_ATTRIBUTES][20];
131 private:
132  vtkAssignAttribute(const vtkAssignAttribute&); // Not implemented.
133  void operator=(const vtkAssignAttribute&); // Not implemented.
134 };
135 
136 #endif