Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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 =========================================================================*/
00048 #ifndef __vtkBYUWriter_h
00049 #define __vtkBYUWriter_h
00050 
00051 #include "vtkPolyDataWriter.h"
00052 
00053 class VTK_IO_EXPORT vtkBYUWriter : public vtkPolyDataWriter
00054 {
00055 public:
00056   static vtkBYUWriter *New();
00057 
00058   vtkTypeRevisionMacro(vtkBYUWriter,vtkPolyDataWriter);
00059   void PrintSelf(ostream& os, vtkIndent indent);
00060 
00062 
00063   vtkSetStringMacro(GeometryFileName);
00064   vtkGetStringMacro(GeometryFileName);
00066 
00068 
00069   vtkSetStringMacro(DisplacementFileName);
00070   vtkGetStringMacro(DisplacementFileName);
00072 
00074 
00075   vtkSetStringMacro(ScalarFileName);
00076   vtkGetStringMacro(ScalarFileName);
00078 
00080 
00081   vtkSetStringMacro(TextureFileName);
00082   vtkGetStringMacro(TextureFileName);
00084 
00086 
00087   vtkSetMacro(WriteDisplacement,int);
00088   vtkGetMacro(WriteDisplacement,int);
00089   vtkBooleanMacro(WriteDisplacement,int);
00091   
00093 
00094   vtkSetMacro(WriteScalar,int);
00095   vtkGetMacro(WriteScalar,int);
00096   vtkBooleanMacro(WriteScalar,int);
00098   
00100 
00101   vtkSetMacro(WriteTexture,int);
00102   vtkGetMacro(WriteTexture,int);
00103   vtkBooleanMacro(WriteTexture,int);
00105 
00106 protected:
00107   vtkBYUWriter();
00108   ~vtkBYUWriter();
00109 
00110   void WriteData();
00111 
00112   char *GeometryFileName;
00113   char *DisplacementFileName;
00114   char *ScalarFileName;
00115   char *TextureFileName;
00116   int WriteDisplacement;
00117   int WriteScalar;
00118   int WriteTexture;
00119 
00120   void WriteGeometryFile(FILE *fp, int numPts);
00121   void WriteDisplacementFile(int numPts);
00122   void WriteScalarFile(int numPts);
00123   void WriteTextureFile(int numPts);
00124 private:
00125   vtkBYUWriter(const vtkBYUWriter&);  // Not implemented.
00126   void operator=(const vtkBYUWriter&);  // Not implemented.
00127 };
00128 
00129 #endif
00130