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 =========================================================================*/
28 #ifndef vtkOBJExporter_h
29 #define vtkOBJExporter_h
30 
31 #include "vtkIOExportModule.h" // For export macro
32 #include "vtkExporter.h"
33 
34 class vtkActor;
35 
36 class VTKIOEXPORT_EXPORT vtkOBJExporter : public vtkExporter
37 {
38 public:
39  static vtkOBJExporter *New();
40  vtkTypeMacro(vtkOBJExporter,vtkExporter);
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
48  vtkSetStringMacro(FilePrefix);
49  vtkGetStringMacro(FilePrefix);
51 
52 protected:
54  ~vtkOBJExporter() override;
55 
56  void WriteData() override;
57  void WriteAnActor(vtkActor *anActor, FILE *fpObj, FILE *fpMat, int &id);
58  char *FilePrefix;
59 private:
60  vtkOBJExporter(const vtkOBJExporter&) = delete;
61  void operator=(const vtkOBJExporter&) = delete;
62 };
63 
64 #endif
65 
abstract class to write a scene to a file
Definition: vtkExporter.h:46
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:45
virtual void WriteData()=0
a simple class to control print indentation
Definition: vtkIndent.h:33
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
export a scene into Wavefront format.