00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00037 #ifndef __vtkTransferAttributes_h
00038 #define __vtkTransferAttributes_h
00039
00040 #include "vtkPassInputTypeAlgorithm.h"
00041 #include "vtkVariant.h"
00042
00043 class VTK_INFOVIS_EXPORT vtkTransferAttributes : public vtkPassInputTypeAlgorithm
00044 {
00045 public:
00051 static vtkTransferAttributes *New();
00052
00053 vtkTypeMacro(vtkTransferAttributes,vtkPassInputTypeAlgorithm);
00054 void PrintSelf(ostream& os, vtkIndent indent);
00055
00057
00060 vtkSetMacro(DirectMapping, bool);
00061 vtkGetMacro(DirectMapping, bool);
00062 vtkBooleanMacro(DirectMapping, bool);
00064
00066
00067 vtkGetStringMacro(SourceArrayName);
00068 vtkSetStringMacro(SourceArrayName);
00070
00072
00073 vtkGetStringMacro(TargetArrayName);
00074 vtkSetStringMacro(TargetArrayName);
00076
00078
00080 vtkGetMacro(SourceFieldType, int);
00081 vtkSetMacro(SourceFieldType, int);
00083
00085
00087 vtkGetMacro(TargetFieldType, int);
00088 vtkSetMacro(TargetFieldType, int);
00090
00092
00093 vtkVariant GetDefaultValue();
00094 void SetDefaultValue(vtkVariant value);
00095
00097
00099 int FillInputPortInformation(int port, vtkInformation* info);
00100
00101 protected:
00102 vtkTransferAttributes();
00103 ~vtkTransferAttributes();
00104
00105 bool DirectMapping;
00106 char* SourceArrayName;
00107 char* TargetArrayName;
00108 int SourceFieldType;
00109 int TargetFieldType;
00110
00111
00112 vtkVariant DefaultValue;
00113
00114
00116 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00117 private:
00118 vtkTransferAttributes(const vtkTransferAttributes&);
00119 void operator=(const vtkTransferAttributes&);
00120 };
00121
00122 #endif