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