Rendering/vtkOBJExporter.h Source File

Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Rendering/vtkOBJExporter.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkOBJExporter.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00047 #ifndef __vtkOBJExporter_h
    00048 #define __vtkOBJExporter_h
    00049
    00050 #include "vtkExporter.h"
    00051
    00052 class vtkActor;
    00053
    00054 class VTK_RENDERING_EXPORT vtkOBJExporter : public vtkExporter
    00055 {
    00056 public:
    00057   static vtkOBJExporter *New();
    00058   vtkTypeRevisionMacro(vtkOBJExporter,vtkExporter);
    00059   void PrintSelf(ostream& os, vtkIndent indent);
    00060
    00062
    00064   vtkSetStringMacro(FilePrefix);
    00065   vtkGetStringMacro(FilePrefix);
    00067
    00068 protected:
    00069   vtkOBJExporter();
    00070   ~vtkOBJExporter();
    00071
    00072   void WriteData();
    00073   void WriteAnActor(vtkActor *anActor, FILE *fpObj, FILE *fpMat, int &id);
    00074   char *FilePrefix;
    00075 private:
    00076   vtkOBJExporter(const vtkOBJExporter&);  // Not implemented.
    00077   void operator=(const vtkOBJExporter&);  // Not implemented.
    00078 };
    00079
    00080 #endif
    00081