VTK
vtkOBJExporter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOBJExporter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
30 #ifndef vtkOBJExporter_h
31 #define vtkOBJExporter_h
32 
33 #include "vtkIOExportModule.h" // For export macro
34 #include "vtkExporter.h"
35 
36 class vtkActor;
37 
39 {
40 public:
41  static vtkOBJExporter *New();
42  vtkTypeMacro(vtkOBJExporter,vtkExporter);
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
48  vtkSetStringMacro(FilePrefix);
49  vtkGetStringMacro(FilePrefix);
51 
52 protected:
54  ~vtkOBJExporter();
55 
56  void WriteData();
57  void WriteAnActor(vtkActor *anActor, FILE *fpObj, FILE *fpMat, int &id);
58  char *FilePrefix;
59 private:
60  vtkOBJExporter(const vtkOBJExporter&); // Not implemented.
61  void operator=(const vtkOBJExporter&); // Not implemented.
62 };
63 
64 #endif
65 
abstract class to write a scene to a file
Definition: vtkExporter.h:45
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:50
virtual void WriteData()=0
#define VTKIOEXPORT_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
export a scene into Wavefront format.