VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Hybrid
vtkX3DExporter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkX3DExporter.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
=========================================================================*/
29
#ifndef __vtkX3DExporter_h
30
#define __vtkX3DExporter_h
31
32
#include "
vtkExporter.h
"
33
34
class
vtkLight
;
35
class
vtkActor
;
36
class
vtkActor2D
;
37
class
vtkPoints
;
38
class
vtkDataArray
;
39
class
vtkUnsignedCharArray
;
40
class
vtkX3DExporterWriter
;
41
class
vtkRenderer
;
42
43
class
VTK_HYBRID_EXPORT
vtkX3DExporter
:
public
vtkExporter
44
{
45
public
:
46
static
vtkX3DExporter
*
New
();
47
vtkTypeMacro(
vtkX3DExporter
,
vtkExporter
);
48
void
PrintSelf
(ostream& os,
vtkIndent
indent);
49
51
52
vtkSetStringMacro(FileName);
53
vtkGetStringMacro(FileName);
55
57
58
vtkSetMacro(Speed,
double
);
59
vtkGetMacro(Speed,
double
);
61
63
64
vtkSetClampMacro(Binary,
int
, 0, 1);
65
vtkBooleanMacro(Binary,
int
);
66
vtkGetMacro(Binary,
int
);
68
70
71
vtkSetClampMacro(Fastest,
int
, 0, 1);
72
vtkBooleanMacro(Fastest,
int
);
73
vtkGetMacro(Fastest,
int
);
75
76
protected
:
77
vtkX3DExporter
();
78
~
vtkX3DExporter
();
79
81
void
WriteData
();
82
83
void
WriteALight(
vtkLight
*aLight,
vtkX3DExporterWriter
* writer);
84
void
WriteAnActor(
vtkActor
*anActor,
vtkX3DExporterWriter
* writer,
85
int
index
);
86
void
WritePointData(
vtkPoints
*
points
,
vtkDataArray
*normals,
87
vtkDataArray
*tcoords,
vtkUnsignedCharArray
*colors,
88
vtkX3DExporterWriter
* writer,
int
index
);
89
void
WriteATextActor2D(
vtkActor2D
*anTextActor2D,
90
vtkX3DExporterWriter
* writer);
91
void
WriteATexture(
vtkActor
*anActor,
vtkX3DExporterWriter
* writer);
92
void
WriteAnAppearance(
vtkActor
*anActor,
bool
writeEmissiveColor,
vtkX3DExporterWriter
* writer);
93
int
HasHeadLight(
vtkRenderer
* ren);
94
char
*
FileName
;
95
double
Speed
;
96
int
Binary
;
97
int
Fastest
;
98
99
private
:
100
101
vtkX3DExporter
(
const
vtkX3DExporter
&);
// Not implemented.
102
void
operator=(
const
vtkX3DExporter
&);
// Not implemented.
103
};
104
105
106
#endif
Generated on Fri Aug 2 2013 12:19:58 for VTK by
1.8.4