KiCad PCB EDA Suite
Loading...
Searching...
No Matches
x3d_transform.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_TRANSFORM_H
27
#define X3D_TRANSFORM_H
28
29
#include <vector>
30
31
#include "
x3d_base.h
"
32
#include "
wrltypes.h
"
33
34
35
class
X3DTRANSFORM
:
public
X3DNODE
36
{
37
public
:
38
X3DTRANSFORM
();
39
X3DTRANSFORM
(
X3DNODE
* aParent );
40
virtual
~X3DTRANSFORM
();
41
42
bool
Read
( wxXmlNode* aNode,
X3DNODE
* aTopNode,
X3D_DICT
& aDict )
override
;
43
bool
SetParent
(
X3DNODE
* aParent,
bool
doUnlink =
true
)
override
;
44
bool
AddChildNode
(
X3DNODE
* aNode )
override
;
45
bool
AddRefNode
(
X3DNODE
* aNode )
override
;
46
SGNODE
*
TranslateToSG
(
SGNODE
* aParent )
override
;
47
48
private
:
49
void
init
();
50
void
readFields
( wxXmlNode* aNode );
51
52
WRLVEC3F
center
;
53
WRLVEC3F
scale
;
54
WRLVEC3F
translation
;
55
WRLROTATION
rotation
;
56
WRLROTATION
scaleOrientation
;
57
WRLVEC3F
bboxCenter
;
58
WRLVEC3F
bboxSize
;
59
};
60
61
#endif
// X3D_TRANSFORM_H
SGNODE
The base class of all Scene Graph nodes.
Definition
sg_node.h:71
X3DNODE::X3DNODE
X3DNODE()
Definition
x3d_base.cpp:78
X3DTRANSFORM::init
void init()
Definition
x3d_transform.cpp:65
X3DTRANSFORM::X3DTRANSFORM
X3DTRANSFORM()
Definition
x3d_transform.cpp:31
X3DTRANSFORM::~X3DTRANSFORM
virtual ~X3DTRANSFORM()
Definition
x3d_transform.cpp:56
X3DTRANSFORM::AddRefNode
bool AddRefNode(X3DNODE *aNode) override
Definition
x3d_transform.cpp:227
X3DTRANSFORM::bboxCenter
WRLVEC3F bboxCenter
Definition
x3d_transform.h:57
X3DTRANSFORM::AddChildNode
bool AddChildNode(X3DNODE *aNode) override
Definition
x3d_transform.cpp:197
X3DTRANSFORM::SetParent
bool SetParent(X3DNODE *aParent, bool doUnlink=true) override
Set the parent X3DNODE of this object.
Definition
x3d_transform.cpp:172
X3DTRANSFORM::TranslateToSG
SGNODE * TranslateToSG(SGNODE *aParent) override
Produce a representation of the data using the intermediate scenegraph structures of the kicad_3dsg l...
Definition
x3d_transform.cpp:255
X3DTRANSFORM::scale
WRLVEC3F scale
Definition
x3d_transform.h:53
X3DTRANSFORM::readFields
void readFields(wxXmlNode *aNode)
Definition
x3d_transform.cpp:88
X3DTRANSFORM::bboxSize
WRLVEC3F bboxSize
Definition
x3d_transform.h:58
X3DTRANSFORM::center
WRLVEC3F center
Definition
x3d_transform.h:52
X3DTRANSFORM::Read
bool Read(wxXmlNode *aNode, X3DNODE *aTopNode, X3D_DICT &aDict) override
Definition
x3d_transform.cpp:140
X3DTRANSFORM::translation
WRLVEC3F translation
Definition
x3d_transform.h:54
X3DTRANSFORM::rotation
WRLROTATION rotation
Definition
x3d_transform.h:55
X3DTRANSFORM::scaleOrientation
WRLROTATION scaleOrientation
Definition
x3d_transform.h:56
X3D_DICT
Definition
x3d_base.h:45
wrltypes.h
declares some compound types used for VRML
WRLROTATION
glm::vec4 WRLROTATION
Definition
wrltypes.h:185
WRLVEC3F
glm::vec3 WRLVEC3F
Definition
wrltypes.h:184
x3d_base.h
declares base class of X3D tree
src
plugins
3d
vrml
x3d
x3d_transform.h
Generated on Fri Jun 26 2026 00:05:42 for KiCad PCB EDA Suite by
1.13.2