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