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

vtkBYUWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkBYUWriter.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/
00044 #ifndef __vtkBYUWriter_h
00045 #define __vtkBYUWriter_h
00046 
00047 #include "vtkPolyDataWriter.h"
00048 
00049 class VTK_IO_EXPORT vtkBYUWriter : public vtkPolyDataWriter
00050 {
00051 public:
00052   static vtkBYUWriter *New();
00053 
00054   vtkTypeRevisionMacro(vtkBYUWriter,vtkPolyDataWriter);
00055   void PrintSelf(ostream& os, vtkIndent indent);
00056 
00058 
00059   vtkSetStringMacro(GeometryFileName);
00060   vtkGetStringMacro(GeometryFileName);
00062 
00064 
00065   vtkSetStringMacro(DisplacementFileName);
00066   vtkGetStringMacro(DisplacementFileName);
00068 
00070 
00071   vtkSetStringMacro(ScalarFileName);
00072   vtkGetStringMacro(ScalarFileName);
00074 
00076 
00077   vtkSetStringMacro(TextureFileName);
00078   vtkGetStringMacro(TextureFileName);
00080 
00082 
00083   vtkSetMacro(WriteDisplacement,int);
00084   vtkGetMacro(WriteDisplacement,int);
00085   vtkBooleanMacro(WriteDisplacement,int);
00087   
00089 
00090   vtkSetMacro(WriteScalar,int);
00091   vtkGetMacro(WriteScalar,int);
00092   vtkBooleanMacro(WriteScalar,int);
00094   
00096 
00097   vtkSetMacro(WriteTexture,int);
00098   vtkGetMacro(WriteTexture,int);
00099   vtkBooleanMacro(WriteTexture,int);
00101 
00102 protected:
00103   vtkBYUWriter();
00104   ~vtkBYUWriter();
00105 
00106   void WriteData();
00107 
00108   char *GeometryFileName;
00109   char *DisplacementFileName;
00110   char *ScalarFileName;
00111   char *TextureFileName;
00112   int WriteDisplacement;
00113   int WriteScalar;
00114   int WriteTexture;
00115 
00116   void WriteGeometryFile(FILE *fp, int numPts);
00117   void WriteDisplacementFile(int numPts);
00118   void WriteScalarFile(int numPts);
00119   void WriteTextureFile(int numPts);
00120 private:
00121   vtkBYUWriter(const vtkBYUWriter&);  // Not implemented.
00122   void operator=(const vtkBYUWriter&);  // Not implemented.
00123 };
00124 
00125 #endif
00126