VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkBYUWriter.h 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 =========================================================================*/ 00031 #ifndef __vtkBYUWriter_h 00032 #define __vtkBYUWriter_h 00033 00034 #include "vtkPolyDataWriter.h" 00035 00036 class VTK_IO_EXPORT vtkBYUWriter : public vtkPolyDataWriter 00037 { 00038 public: 00039 static vtkBYUWriter *New(); 00040 00041 vtkTypeMacro(vtkBYUWriter,vtkPolyDataWriter); 00042 void PrintSelf(ostream& os, vtkIndent indent); 00043 00045 00046 vtkSetStringMacro(GeometryFileName); 00047 vtkGetStringMacro(GeometryFileName); 00049 00051 00052 vtkSetStringMacro(DisplacementFileName); 00053 vtkGetStringMacro(DisplacementFileName); 00055 00057 00058 vtkSetStringMacro(ScalarFileName); 00059 vtkGetStringMacro(ScalarFileName); 00061 00063 00064 vtkSetStringMacro(TextureFileName); 00065 vtkGetStringMacro(TextureFileName); 00067 00069 00070 vtkSetMacro(WriteDisplacement,int); 00071 vtkGetMacro(WriteDisplacement,int); 00072 vtkBooleanMacro(WriteDisplacement,int); 00074 00076 00077 vtkSetMacro(WriteScalar,int); 00078 vtkGetMacro(WriteScalar,int); 00079 vtkBooleanMacro(WriteScalar,int); 00081 00083 00084 vtkSetMacro(WriteTexture,int); 00085 vtkGetMacro(WriteTexture,int); 00086 vtkBooleanMacro(WriteTexture,int); 00088 00089 protected: 00090 vtkBYUWriter(); 00091 ~vtkBYUWriter(); 00092 00093 void WriteData(); 00094 00095 char *GeometryFileName; 00096 char *DisplacementFileName; 00097 char *ScalarFileName; 00098 char *TextureFileName; 00099 int WriteDisplacement; 00100 int WriteScalar; 00101 int WriteTexture; 00102 00103 void WriteGeometryFile(FILE *fp, int numPts); 00104 void WriteDisplacementFile(int numPts); 00105 void WriteScalarFile(int numPts); 00106 void WriteTextureFile(int numPts); 00107 private: 00108 vtkBYUWriter(const vtkBYUWriter&); // Not implemented. 00109 void operator=(const vtkBYUWriter&); // Not implemented. 00110 }; 00111 00112 #endif 00113