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