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