00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00024 #ifndef __vtkPVWriter_h
00025 #define __vtkPVWriter_h
00026
00027 #include "vtkKWObject.h"
00028
00029 class vtkDataObject;
00030 class vtkPVApplication;
00031 class vtkPVSource;
00032
00033 template <class value>
00034 class vtkVector;
00035 template <class value>
00036 class vtkVectorIterator;
00037
00038
00039 class VTK_EXPORT vtkPVWriter : public vtkKWObject
00040 {
00041 public:
00042 static vtkPVWriter* New();
00043 vtkTypeRevisionMacro(vtkPVWriter,vtkKWObject);
00044 void PrintSelf(ostream& os, vtkIndent indent);
00045
00047
00048 vtkSetStringMacro(InputClassName);
00049 vtkGetStringMacro(InputClassName);
00051
00053
00054 vtkSetStringMacro(WriterClassName);
00055 vtkGetStringMacro(WriterClassName);
00057
00059
00060 vtkSetStringMacro(Description);
00061 vtkGetStringMacro(Description);
00063
00066 void AddExtension(const char*);
00067
00069 vtkIdType GetNumberOfExtensions();
00070
00072 const char* GetExtension(vtkIdType i);
00073
00075
00076 vtkSetMacro(Parallel, int);
00077 vtkGetMacro(Parallel, int);
00078 vtkBooleanMacro(Parallel, int);
00080
00082
00084 vtkSetStringMacro(DataModeMethod);
00085 vtkGetStringMacro(DataModeMethod);
00087
00089 virtual int CanWriteData(vtkDataObject* data, int parallel, int numParts);
00090
00095 virtual int CanWriteFile(const char* fname);
00096
00098 vtkPVApplication* GetPVApplication();
00099
00101
00102 virtual void Write(const char* fileName, vtkPVSource* pvs,
00103 int numProcs, int ghostLevel, int timeSeries);
00105
00107
00109 vtkSetMacro(SupportsTime, int);
00110 vtkGetMacro(SupportsTime, int);
00112
00113 protected:
00114 vtkPVWriter();
00115 ~vtkPVWriter();
00116
00117 virtual int WriteOneFile(const char* fileName, vtkPVSource* pvs,
00118 int numProcs, int ghostLevel);
00119
00120 char* ExtractExtension(const char* fname);
00121
00122 char* InputClassName;
00123 char* WriterClassName;
00124 char* Description;
00125
00126 vtkVector<const char*>* Extensions;
00127 vtkVectorIterator<const char*>* Iterator;
00128
00129 int Parallel;
00130 char* DataModeMethod;
00131
00132 int SupportsTime;
00133
00134 private:
00135 vtkPVWriter(const vtkPVWriter&);
00136 void operator=(const vtkPVWriter&);
00137 };
00138
00139 #endif