Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkIVExporter.h

Go to the documentation of this file.
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 =========================================================================*/
00040 #ifndef __vtkIVExporter_h
00041 #define __vtkIVExporter_h
00042 
00043 #include "vtkExporter.h"
00044 
00045 class vtkLight;
00046 class vtkActor;
00047 class vtkPoints;
00048 class vtkDataArray;
00049 class vtkUnsignedCharArray;
00050 
00051 class VTK_RENDERING_EXPORT vtkIVExporter : public vtkExporter
00052 {
00053 public:
00054   static vtkIVExporter *New();
00055   vtkTypeRevisionMacro(vtkIVExporter,vtkExporter);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00059 
00060   vtkSetStringMacro(FileName);
00061   vtkGetStringMacro(FileName);
00063 
00064 protected:
00065   vtkIVExporter();
00066   ~vtkIVExporter();
00067 
00068   void WriteData();
00069   void WriteALight(vtkLight *aLight, FILE *fp);
00070   void WriteAnActor(vtkActor *anActor, FILE *fp);
00071   void WritePointData(vtkPoints *points, vtkDataArray *normals, 
00072                       vtkDataArray *tcoords, vtkUnsignedCharArray *colors, 
00073                       FILE *fp);
00074   char *FileName;
00075 private:
00076   vtkIVExporter(const vtkIVExporter&);  // Not implemented.
00077   void operator=(const vtkIVExporter&);  // Not implemented.
00078 };
00079 
00080 #endif
00081