dox/Graphics/vtkAssignAttribute.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00066
#ifndef __vtkAssignAttribute_h
00067
#define __vtkAssignAttribute_h
00068
00069
#include "vtkDataSetToDataSetFilter.h"
00070
00071
#include "vtkDataSetAttributes.h"
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
00099 enum AttributeLocation
00100 {
00101 POINT_DATA=0,
00102 CELL_DATA=1
00103 };
00104
00105
00106
protected:
00107
00108
00109 enum FieldType
00110 {
00111 NAME,
00112 ATTRIBUTE
00113 };
00114
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&);
00131
void operator=(
const vtkAssignAttribute&);
00132 };
00133
00134
#endif
00135
00136