VTK
dox
IO
Export
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
=========================================================================*/
31
#ifndef vtkOBJExporter_h
32
#define vtkOBJExporter_h
33
34
#include "vtkIOExportModule.h"
// For export macro
35
#include "
vtkExporter.h
"
36
37
class
vtkActor
;
38
39
class
VTKIOEXPORT_EXPORT
vtkOBJExporter
:
public
vtkExporter
40
{
41
public
:
42
static
vtkOBJExporter
*
New
();
43
vtkTypeMacro(
vtkOBJExporter
,
vtkExporter
);
44
void
PrintSelf
(ostream& os,
vtkIndent
indent);
45
47
51
vtkSetStringMacro(FilePrefix);
52
vtkGetStringMacro
(FilePrefix);
54
55
protected
:
56
vtkOBJExporter
();
57
~vtkOBJExporter
();
58
59
void
WriteData
();
60
void
WriteAnActor
(
vtkActor
*anActor, FILE *fpObj, FILE *fpMat,
int
&
id
);
61
char
*
FilePrefix
;
62
private
:
63
vtkOBJExporter
(
const
vtkOBJExporter
&) VTK_DELETE_FUNCTION;
64
void
operator=(
const
vtkOBJExporter
&) VTK_DELETE_FUNCTION;
65
};
66
67
#endif
68
vtkOBJExporter::New
static vtkOBJExporter * New()
vtkOBJExporter
export a scene into Wavefront format.
Definition:
vtkOBJExporter.h:40
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:52
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkOBJExporter::~vtkOBJExporter
~vtkOBJExporter()
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkOBJExporter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkOBJExporter::vtkOBJExporter
vtkOBJExporter()
vtkExporter
abstract class to write a scene to a file
Definition:
vtkExporter.h:47
vtkExporter.h
vtkOBJExporter::FilePrefix
char * FilePrefix
Definition:
vtkOBJExporter.h:61
Generated by
1.8.20