KiCad PCB EDA Suite
wrltypes.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2015 Cirilo Bernardo <[email protected]>
5 * Copyright (C) 2021 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
31#ifndef WRLTYPES_H
32#define WRLTYPES_H
33
34#include <wx/defs.h>
35
36#define GLM_FORCE_RADIANS
37#include <glm/glm.hpp>
38
39// Mask for VRML tracing.
40extern const wxChar* const traceVrmlPlugin;
41
42// version of the VRML file being parsed
43enum class WRLVERSION
44{
45 VRML_INVALID = 0, // not a valid VRML file
46 VRML_V1,
48};
49
50
51// VRML1 Node Types
52// These are used to look up node names and to quickly
53// determine what routine to invoke to read a section of
54// a file.
55enum class WRL1NODES
56{
57 WRL1_BASE = 0, // not really a VRML node but we need a top level virtual node
96};
97
98// VRML1 Material/Normal Binding values
99// note: PART/FACE have the same meaning in the specification
100enum class WRL1_BINDING
101{
102 BIND_DEFAULT = 0,
111};
112
113enum class WRL1_ORDER
114{
115 ORD_UNKNOWN = 0,
117 ORD_CCW
118};
119
120// VRML2 Node Types
121// These are used to look up node names and to quickly
122// determine what routine to invoke to read a section of
123// a file.
124enum class WRL2NODES
125{
126 WRL2_BASE = 0, // not really a VRML node but we need a top level virtual node
133 WRL2_BOX,
137 WRL2_CONE,
145 WRL2_FOG,
152 WRL2_LOD,
173 WRL2_TEXT,
184};
185
186
187typedef glm::vec2 WRLVEC2F;
188typedef glm::vec3 WRLVEC3F;
189typedef glm::vec4 WRLROTATION;
190
191#endif // WRLTYPES_H
const wxChar *const traceVrmlPlugin
Flag to enable VRML plugin trace output.
Definition: vrml.cpp:63
WRLVERSION
Definition: wrltypes.h:44
WRL2NODES
Definition: wrltypes.h:125
@ WRL2_CYLINDERSENSOR
@ WRL2_POSITIONINTERPOLATOR
@ WRL2_SCALARINTERPOLATOR
@ WRL2_ORIENTATIONINTERPOLATOR
@ WRL2_SPHERESENSOR
@ WRL2_NAVIGATIONINFO
@ WRL2_INDEXEDFACESET
@ WRL2_INDEXEDLINESET
@ WRL2_PLANESENSOR
@ WRL2_TOUCHSENSOR
@ WRL2_MOVIETEXTURE
@ WRL2_DIRECTIONALLIGHT
@ WRL2_COLORINTERPOLATOR
@ WRL2_PROXIMITYSENSOR
@ WRL2_ELEVATIONGRID
@ WRL2_TEXTURETRANSFORM
@ WRL2_PIXELTEXTURE
@ WRL2_NORMALINTERPOLATOR
@ WRL2_COORDINATEINTERPOLATOR
@ WRL2_IMAGETEXTURE
@ WRL2_VISIBILITYSENSOR
@ WRL2_TEXTURECOORDINATE
WRL1NODES
Definition: wrltypes.h:56
@ WRL1_NORMALBINDING
@ WRL1_INDEXEDFACESET
@ WRL1_PERSPECTIVECAMERA
@ WRL1_DIRECTIONALLIGHT
@ WRL1_COORDINATE3
@ WRL1_TRANSLATION
@ WRL1_MATERIALBINDING
@ WRL1_INDEXEDLINESET
@ WRL1_MATRIXTRANSFORM
@ WRL1_ORTHOCAMERA
@ WRL1_TEXTURECOORDINATE2
@ WRL1_TEXTURE2TRANSFORM
glm::vec4 WRLROTATION
Definition: wrltypes.h:189
glm::vec2 WRLVEC2F
Definition: wrltypes.h:187
WRL1_ORDER
Definition: wrltypes.h:114
WRL1_BINDING
Definition: wrltypes.h:101
@ BIND_PER_VERTEX_INDEXED
glm::vec3 WRLVEC3F
Definition: wrltypes.h:188