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

IO/vtkBYUWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkBYUWriter.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00049 #ifndef __vtkBYUWriter_h
00050 #define __vtkBYUWriter_h
00051 
00052 #include "vtkPolyDataWriter.h"
00053 
00054 class VTK_IO_EXPORT vtkBYUWriter : public vtkPolyDataWriter
00055 {
00056 public:
00057   static vtkBYUWriter *New();
00058 
00059   vtkTypeRevisionMacro(vtkBYUWriter,vtkPolyDataWriter);
00060   void PrintSelf(ostream& os, vtkIndent indent);
00061 
00063 
00064   vtkSetStringMacro(GeometryFileName);
00065   vtkGetStringMacro(GeometryFileName);
00067 
00069 
00070   vtkSetStringMacro(DisplacementFileName);
00071   vtkGetStringMacro(DisplacementFileName);
00073 
00075 
00076   vtkSetStringMacro(ScalarFileName);
00077   vtkGetStringMacro(ScalarFileName);
00079 
00081 
00082   vtkSetStringMacro(TextureFileName);
00083   vtkGetStringMacro(TextureFileName);
00085 
00087 
00088   vtkSetMacro(WriteDisplacement,int);
00089   vtkGetMacro(WriteDisplacement,int);
00090   vtkBooleanMacro(WriteDisplacement,int);
00092   
00094 
00095   vtkSetMacro(WriteScalar,int);
00096   vtkGetMacro(WriteScalar,int);
00097   vtkBooleanMacro(WriteScalar,int);
00099   
00101 
00102   vtkSetMacro(WriteTexture,int);
00103   vtkGetMacro(WriteTexture,int);
00104   vtkBooleanMacro(WriteTexture,int);
00106 
00107 protected:
00108   vtkBYUWriter();
00109   ~vtkBYUWriter();
00110 
00111   void WriteData();
00112 
00113   char *GeometryFileName;
00114   char *DisplacementFileName;
00115   char *ScalarFileName;
00116   char *TextureFileName;
00117   int WriteDisplacement;
00118   int WriteScalar;
00119   int WriteTexture;
00120 
00121   void WriteGeometryFile(FILE *fp, int numPts);
00122   void WriteDisplacementFile(int numPts);
00123   void WriteScalarFile(int numPts);
00124   void WriteTextureFile(int numPts);
00125 private:
00126   vtkBYUWriter(const vtkBYUWriter&);  // Not implemented.
00127   void operator=(const vtkBYUWriter&);  // Not implemented.
00128 };
00129 
00130 #endif
00131