vtkPOPReader.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00032 #ifndef __vtkPOPReader_h
00033 #define __vtkPOPReader_h
00034
00035 #include "vtkStructuredGridSource.h"
00036
00037 class vtkFloatArray;
00038 class vtkImageData;
00039 class vtkPoints;
00040
00041 class VTK_PARALLEL_EXPORT vtkPOPReader : public vtkStructuredGridSource
00042 {
00043 public:
00044 static vtkPOPReader *New();
00045 vtkTypeRevisionMacro(vtkPOPReader,vtkStructuredGridSource);
00046 void PrintSelf(ostream& os, vtkIndent indent);
00047
00049
00050 vtkGetVector2Macro(Dimensions, int);
00052
00054
00056 vtkGetStringMacro(GridFileName);
00058
00060
00061 vtkGetStringMacro(UFlowFileName);
00062 vtkGetStringMacro(VFlowFileName);
00064
00066
00067 vtkSetStringMacro(FileName);
00068 vtkGetStringMacro(FileName);
00070
00072
00073 vtkSetMacro(Radius, double);
00074 vtkGetMacro(Radius, double);
00076
00078
00080 vtkSetVector6Macro(ClipExtent, int);
00081 vtkGetVector6Macro(ClipExtent, int);
00083
00085
00086 vtkSetMacro(NumberOfGhostLevels, int);
00087 vtkGetMacro(NumberOfGhostLevels, int);
00089
00090 protected:
00091 vtkPOPReader();
00092 ~vtkPOPReader();
00093
00094 void ExecuteInformation();
00095 void Execute();
00096
00097 void ReadInformationFile();
00098 vtkPoints *ReadPoints(vtkImageData *image);
00099 void ReadFlow();
00100
00101 vtkPoints *GeneratePoints();
00102
00103 char *FileName;
00104
00105 int Dimensions[2];
00106 vtkSetStringMacro(GridFileName);
00107 void SetGridName(char *name);
00108 char *GridFileName;
00109
00110 double Radius;
00111 vtkFloatArray *DepthValues;
00112 int NumberOfGhostLevels;
00113
00114 void DeleteArrays();
00115 void AddArray(char *arrayName, char *fileName, unsigned long offset);
00116 void AddArrayName(char *arrayName, char *fileName, unsigned long offset);
00117 int NumberOfArrays;
00118 int MaximumNumberOfArrays;
00119 char **ArrayNames;
00120 char **ArrayFileNames;
00121 unsigned long *ArrayOffsets;
00122 int ArrayFileDimensionality;
00123
00124
00125 char *UFlowFileName;
00126 vtkSetStringMacro(UFlowFileName);
00127 unsigned long UFlowFileOffset;
00128 char *VFlowFileName;
00129 vtkSetStringMacro(VFlowFileName);
00130 unsigned long VFlowFileOffset;
00131
00132
00133 int IsFileName(char *name);
00134 char *MakeFileName(char *name);
00135
00136 int ClipExtent[6];
00137
00138 vtkPOPReader(const vtkPOPReader&);
00139 void operator=(const vtkPOPReader&);
00140 };
00141
00142 #endif
00143
00144