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();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
48  vtkSetStringMacro(FilePrefix);
49  vtkGetStringMacro(FilePrefix);
51 
52 protected:
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 
vtkOBJExporter::New
static vtkOBJExporter * New()
vtkIOExportModule.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkOBJExporter
export a scene into Wavefront format.
Definition: vtkOBJExporter.h:39
vtkOBJExporter::WriteAnActor
void WriteAnActor(vtkActor *anActor, FILE *fpObj, FILE *fpMat, int &id)
vtkOBJExporter::WriteData
void WriteData()
vtkActor
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkOBJExporter::~vtkOBJExporter
~vtkOBJExporter()
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkOBJExporter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkOBJExporter::vtkOBJExporter
vtkOBJExporter()
vtkExporter
abstract class to write a scene to a file
Definition: vtkExporter.h:46
vtkExporter.h
vtkOBJExporter::FilePrefix
char * FilePrefix
Definition: vtkOBJExporter.h:58
VTKIOEXPORT_EXPORT
#define VTKIOEXPORT_EXPORT
Definition: vtkIOExportModule.h:15