Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Graphics/vtkAssignAttribute.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkAssignAttribute.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00066 #ifndef __vtkAssignAttribute_h 00067 #define __vtkAssignAttribute_h 00068 00069 #include "vtkDataSetToDataSetFilter.h" 00070 00071 #include "vtkDataSetAttributes.h" // Needed for NUM_ATTRIBUTES 00072 00073 class vtkFieldData; 00074 00075 class VTK_GRAPHICS_EXPORT vtkAssignAttribute : public vtkDataSetToDataSetFilter 00076 { 00077 public: 00078 vtkTypeRevisionMacro(vtkAssignAttribute,vtkDataSetToDataSetFilter); 00079 void PrintSelf(ostream& os, vtkIndent indent); 00080 00082 static vtkAssignAttribute *New(); 00083 00085 void Assign(int inputAttributeType, int attributeType, int attributeLoc); 00086 00088 void Assign(const char* fieldName, int attributeType, int attributeLoc); 00089 00091 00093 void Assign(const char* name, const char* attributeType, 00094 const char* attributeLoc); 00096 00097 00098 //BTX 00099 enum AttributeLocation 00100 { 00101 POINT_DATA=0, 00102 CELL_DATA=1 00103 }; 00104 //ETX 00105 00106 protected: 00107 00108 //BTX 00109 enum FieldType 00110 { 00111 NAME, 00112 ATTRIBUTE 00113 }; 00114 //ETX 00115 00116 vtkAssignAttribute(); 00117 virtual ~vtkAssignAttribute(); 00118 00119 void Execute(); 00120 00121 char* FieldName; 00122 int FieldType; 00123 int AttributeType; 00124 int InputAttributeType; 00125 int AttributeLocation; 00126 00127 static char AttributeLocationNames[2][12]; 00128 static char AttributeNames[vtkDataSetAttributes::NUM_ATTRIBUTES][10]; 00129 private: 00130 vtkAssignAttribute(const vtkAssignAttribute&); // Not implemented. 00131 void operator=(const vtkAssignAttribute&); // Not implemented. 00132 }; 00133 00134 #endif 00135 00136