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

dox/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 =========================================================================*/ 00035 #ifndef __vtkBYUWriter_h 00036 #define __vtkBYUWriter_h 00037 00038 #include "vtkPolyDataWriter.h" 00039 00040 class VTK_IO_EXPORT vtkBYUWriter : public vtkPolyDataWriter 00041 { 00042 public: 00043 static vtkBYUWriter *New(); 00044 00045 vtkTypeRevisionMacro(vtkBYUWriter,vtkPolyDataWriter); 00046 void PrintSelf(ostream& os, vtkIndent indent); 00047 00049 00050 vtkSetStringMacro(GeometryFileName); 00051 vtkGetStringMacro(GeometryFileName); 00053 00055 00056 vtkSetStringMacro(DisplacementFileName); 00057 vtkGetStringMacro(DisplacementFileName); 00059 00061 00062 vtkSetStringMacro(ScalarFileName); 00063 vtkGetStringMacro(ScalarFileName); 00065 00067 00068 vtkSetStringMacro(TextureFileName); 00069 vtkGetStringMacro(TextureFileName); 00071 00073 00074 vtkSetMacro(WriteDisplacement,int); 00075 vtkGetMacro(WriteDisplacement,int); 00076 vtkBooleanMacro(WriteDisplacement,int); 00078 00080 00081 vtkSetMacro(WriteScalar,int); 00082 vtkGetMacro(WriteScalar,int); 00083 vtkBooleanMacro(WriteScalar,int); 00085 00087 00088 vtkSetMacro(WriteTexture,int); 00089 vtkGetMacro(WriteTexture,int); 00090 vtkBooleanMacro(WriteTexture,int); 00092 00093 protected: 00094 vtkBYUWriter(); 00095 ~vtkBYUWriter(); 00096 00097 void WriteData(); 00098 00099 char *GeometryFileName; 00100 char *DisplacementFileName; 00101 char *ScalarFileName; 00102 char *TextureFileName; 00103 int WriteDisplacement; 00104 int WriteScalar; 00105 int WriteTexture; 00106 00107 void WriteGeometryFile(FILE *fp, int numPts); 00108 void WriteDisplacementFile(int numPts); 00109 void WriteScalarFile(int numPts); 00110 void WriteTextureFile(int numPts); 00111 private: 00112 vtkBYUWriter(const vtkBYUWriter&); // Not implemented. 00113 void operator=(const vtkBYUWriter&); // Not implemented. 00114 }; 00115 00116 #endif 00117