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

vtkOBJExporter.h

Go to the documentation of this file.
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 =========================================================================*/
00043 #ifndef __vtkOBJExporter_h
00044 #define __vtkOBJExporter_h
00045 
00046 #include "vtkExporter.h"
00047 
00048 class vtkActor;
00049 
00050 class VTK_RENDERING_EXPORT vtkOBJExporter : public vtkExporter
00051 {
00052 public:
00053   static vtkOBJExporter *New();
00054   vtkTypeRevisionMacro(vtkOBJExporter,vtkExporter);
00055   void PrintSelf(ostream& os, vtkIndent indent);
00056 
00058 
00060   vtkSetStringMacro(FilePrefix);
00061   vtkGetStringMacro(FilePrefix);
00063 
00064 protected:
00065   vtkOBJExporter();
00066   ~vtkOBJExporter();
00067 
00068   void WriteData();
00069   void WriteAnActor(vtkActor *anActor, FILE *fpObj, FILE *fpMat, int &id);
00070   char *FilePrefix;
00071 private:
00072   vtkOBJExporter(const vtkOBJExporter&);  // Not implemented.
00073   void operator=(const vtkOBJExporter&);  // Not implemented.
00074 };
00075 
00076 #endif
00077