VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Hybrid
vtkX3DExporterXMLWriter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkX3DExporterXMLWriter.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
=========================================================================*/
21
#ifndef __vtkX3DExporterXMLWriter_h
22
#define __vtkX3DExporterXMLWriter_h
23
24
#include "
vtkX3DExporterWriter.h
"
25
26
class
vtkX3DExporterXMLNodeInfoStack;
27
28
class
VTK_HYBRID_EXPORT
vtkX3DExporterXMLWriter
:
public
vtkX3DExporterWriter
29
{
30
31
public
:
32
static
vtkX3DExporterXMLWriter
*
New
();
33
vtkTypeMacro(
vtkX3DExporterXMLWriter
,
vtkX3DExporterWriter
);
34
void
PrintSelf
(ostream& os,
vtkIndent
indent);
35
36
virtual
void
CloseFile
();
37
virtual
int
OpenFile
(
const
char
* file);
38
virtual
void
Flush
();
39
40
virtual
int
OpenStream
();
41
42
void
StartDocument
();
43
void
EndDocument
();
44
45
// Elements
46
void
StartNode
(
int
elementID);
47
void
EndNode
();
48
49
// Attributes
50
// SFString / MFString
51
void
SetField
(
int
attributeID,
const
char
*,
bool
mfstring =
true
);
52
// SFInt32
53
void
SetField
(
int
attributeID,
int
);
54
// SFFloat
55
void
SetField
(
int
attributeID,
float
);
56
// SFDouble
57
void
SetField
(
int
attributeID,
double
);
58
// SFBool
59
void
SetField
(
int
attributeID,
bool
);
60
61
// For MFxxx attributes
62
void
SetField
(
int
attributeID,
int
type
,
const
double
* a);
63
void
SetField
(
int
attributeID,
int
type
,
vtkDataArray
* a);
64
void
SetField
(
int
attributeID,
const
double
* values,
size_t
size
);
65
// MFInt32, SFIMAGE
66
void
SetField
(
int
attributeID,
const
int
* values,
size_t
size
,
bool
image
=
false
);
67
68
protected
:
69
vtkX3DExporterXMLWriter
();
70
~
vtkX3DExporterXMLWriter
();
71
72
private
:
73
74
const
char
* GetNewline() {
return
"\n"
; };
75
void
AddDepth();
76
void
SubDepth();
77
78
std::string
ActTab;
79
int
Depth;
80
ostream *OutputStream;
81
vtkX3DExporterXMLNodeInfoStack* InfoStack;
82
83
vtkX3DExporterXMLWriter
(
const
vtkX3DExporterXMLWriter
&);
// Not implemented.
84
void
operator=(
const
vtkX3DExporterXMLWriter
&);
// Not implemented.
85
86
};
87
88
#endif
89
Generated on Tue Jan 8 2013 05:45:33 for VTK by
1.8.1.2