VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkOBJExporter.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 =========================================================================*/ 00030 #ifndef __vtkOBJExporter_h 00031 #define __vtkOBJExporter_h 00032 00033 #include "vtkIOExportModule.h" // For export macro 00034 #include "vtkExporter.h" 00035 00036 class vtkActor; 00037 00038 class VTKIOEXPORT_EXPORT vtkOBJExporter : public vtkExporter 00039 { 00040 public: 00041 static vtkOBJExporter *New(); 00042 vtkTypeMacro(vtkOBJExporter,vtkExporter); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 00048 vtkSetStringMacro(FilePrefix); 00049 vtkGetStringMacro(FilePrefix); 00051 00052 protected: 00053 vtkOBJExporter(); 00054 ~vtkOBJExporter(); 00055 00056 void WriteData(); 00057 void WriteAnActor(vtkActor *anActor, FILE *fpObj, FILE *fpMat, int &id); 00058 char *FilePrefix; 00059 private: 00060 vtkOBJExporter(const vtkOBJExporter&); // Not implemented. 00061 void operator=(const vtkOBJExporter&); // Not implemented. 00062 }; 00063 00064 #endif 00065