VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
Import
vtkVRMLImporter.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkVRMLImporter.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
=========================================================================*/
53
#ifndef __vtkVRMLImporter_h
54
#define __vtkVRMLImporter_h
55
56
// Includes for the yacc/lex parser
57
#include "vtkIOImportModule.h"
// For export macro
58
#include "
vtkImporter.h
"
59
60
class
vtkActor
;
61
class
vtkAlgorithm
;
62
class
vtkProperty
;
63
class
vtkCamera
;
64
class
vtkLight
;
65
class
vtkTransform
;
66
class
vtkLookupTable
;
67
class
vtkFloatArray
;
68
class
vtkPolyDataMapper
;
69
class
vtkPoints
;
70
class
vtkIdTypeArray
;
71
class
vtkVRMLImporterInternal;
72
class
vtkCellArray
;
73
74
class
VTKIOIMPORT_EXPORT
vtkVRMLImporter
:
public
vtkImporter
75
{
76
public
:
77
static
vtkVRMLImporter
*
New
();
78
79
vtkTypeMacro(
vtkVRMLImporter
,
vtkImporter
);
80
void
PrintSelf
(ostream& os,
vtkIndent
indent);
81
87
vtkObject
*GetVRMLDEFObject(
const
char
*
name
);
88
90
91
void
enterNode(
const
char
*);
92
void
exitNode();
93
void
enterField(
const
char
*);
94
void
exitField();
95
void
useNode(
const
char
*);
97
99
100
vtkSetStringMacro(FileName);
101
vtkGetStringMacro
(FileName);
103
105
FILE *
GetFileFD
() {
return
this->FileFD;};
106
107
//BTX
108
109
friend
int
yylex (
vtkVRMLImporter
* );
110
111
//ETX
112
113
protected
:
114
vtkVRMLImporter
();
115
~
vtkVRMLImporter
();
116
117
virtual
int
ImportBegin
();
118
virtual
void
ImportEnd
();
119
virtual
void
ImportActors
(
vtkRenderer
*) {};
120
virtual
void
ImportCameras
(
vtkRenderer
*) {};
121
virtual
void
ImportLights
(
vtkRenderer
*) {};
122
virtual
void
ImportProperties
(
vtkRenderer
*) {};
123
124
int
OpenImportFile();
125
char
*
FileName
;
126
FILE *
FileFD
;
127
128
private
:
129
vtkActor
*CurrentActor;
130
vtkProperty
*CurrentProperty;
131
vtkCamera
*CurrentCamera;
132
vtkLight
*CurrentLight;
133
vtkTransform
*CurrentTransform;
134
vtkAlgorithm
*CurrentSource;
135
vtkPoints
*CurrentPoints;
136
vtkFloatArray
*CurrentNormals;
137
vtkCellArray
*CurrentNormalCells;
138
vtkFloatArray
*CurrentTCoords;
139
vtkCellArray
*CurrentTCoordCells;
140
vtkLookupTable
*CurrentLut;
141
vtkFloatArray
*CurrentScalars;
142
vtkPolyDataMapper
*CurrentMapper;
143
144
vtkPoints
* PointsNew();
145
vtkFloatArray
* FloatArrayNew();
146
vtkIdTypeArray
* IdTypeArrayNew();
147
148
void
DeleteObject(
vtkObject
*);
149
150
vtkVRMLImporterInternal* Internal;
151
152
private
:
153
vtkVRMLImporter
(
const
vtkVRMLImporter
&);
// Not implemented.
154
void
operator=(
const
vtkVRMLImporter
&);
// Not implemented.
155
};
156
157
#endif
158
Generated on Thu May 24 2012 22:22:29 for VTK by
1.8.1