KiCad PCB EDA Suite
Loading...
Searching...
No Matches
x3d_ops.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) 2016 Cirilo Bernardo <[email protected]>
5 * Copyright The 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, see <https://www.gnu.org/licenses/>.
19 */
20
24
25
26#ifndef X3D_OPS_H
27#define X3D_OPS_H
28
29#include "x3d_base.h"
30#include "wrltypes.h"
31
32namespace X3D
33{
34 /* Functions to create and read X3D Nodes */
35 bool ReadTransform( wxXmlNode* aNode, X3DNODE* aParent, X3D_DICT& aDict );
36 bool ReadSwitch( wxXmlNode* aNode, X3DNODE* aParent, X3D_DICT& aDict );
37 bool ReadShape( wxXmlNode* aNode, X3DNODE* aParent, X3D_DICT& aDict );
38 bool ReadAppearance( wxXmlNode* aNode, X3DNODE* aParent, X3D_DICT& aDict );
39 bool ReadIndexedFaceSet( wxXmlNode* aNode, X3DNODE* aParent, X3D_DICT& aDict );
40 bool ReadCoordinates( wxXmlNode* aNode, X3DNODE* aParent, X3D_DICT& aDict );
41
42 bool ParseSFBool( const wxString& aSource, bool& aResult );
43 bool ParseSFFloat( const wxString& aSource, float& aResult );
44 bool ParseSFVec3( const wxString& aSource, WRLVEC3F& aResult );
45 bool ParseSFRotation( const wxString& aSource, WRLROTATION& aResult );
46}
47
48#endif // X3D_OPS_H
49
The base class of all X3D nodes.
Definition x3d_base.h:71
Definition x3d_ops.h:33
bool ParseSFBool(const wxString &aSource, bool &aResult)
Definition x3d_ops.cpp:227
bool ParseSFRotation(const wxString &aSource, WRLROTATION &aResult)
Definition x3d_ops.cpp:280
bool ReadIndexedFaceSet(wxXmlNode *aNode, X3DNODE *aParent, X3D_DICT &aDict)
Definition x3d_ops.cpp:151
bool ParseSFVec3(const wxString &aSource, WRLVEC3F &aResult)
Definition x3d_ops.cpp:260
bool ReadSwitch(wxXmlNode *aNode, X3DNODE *aParent, X3D_DICT &aDict)
Definition x3d_ops.cpp:68
bool ReadShape(wxXmlNode *aNode, X3DNODE *aParent, X3D_DICT &aDict)
Definition x3d_ops.cpp:75
bool ReadTransform(wxXmlNode *aNode, X3DNODE *aParent, X3D_DICT &aDict)
Definition x3d_ops.cpp:30
bool ReadCoordinates(wxXmlNode *aNode, X3DNODE *aParent, X3D_DICT &aDict)
Definition x3d_ops.cpp:189
bool ParseSFFloat(const wxString &aSource, float &aResult)
Definition x3d_ops.cpp:248
bool ReadAppearance(wxXmlNode *aNode, X3DNODE *aParent, X3D_DICT &aDict)
Definition x3d_ops.cpp:113
declares some compound types used for VRML
glm::vec4 WRLROTATION
Definition wrltypes.h:185
glm::vec3 WRLVEC3F
Definition wrltypes.h:184
declares base class of X3D tree