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

GUI/Client/vtkPVWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkPVWriter.h,v $
00005 
00006   Copyright (c) Kitware, Inc.
00007   All rights reserved.
00008   See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
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 //BTX
00033 template <class value>
00034 class vtkVector;
00035 template <class value>
00036 class vtkVectorIterator;
00037 //ETX
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 //BTX
00126   vtkVector<const char*>* Extensions;
00127   vtkVectorIterator<const char*>* Iterator;
00128 //ETX
00129   int Parallel;
00130   char* DataModeMethod;
00131   
00132   int SupportsTime;
00133 
00134 private:
00135   vtkPVWriter(const vtkPVWriter&); // Not implemented
00136   void operator=(const vtkPVWriter&); // Not implemented
00137 };
00138 
00139 #endif

Generated on Tue May 30 12:31:41 2006 for ParaView by doxygen 1.3.5