Loading [MathJax]/extensions/tex2jax.js
Ocean
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Modules Pages
scenedescription/sdx/x3d/Transform.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_TRANSFORM_H
9#define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_TRANSFORM_H
10
13
14namespace Ocean
15{
16
17namespace SceneDescription
18{
19
20namespace SDX
21{
22
23namespace X3D
24{
25
26/**
27 * This class implements a x3d transform node.
28 * @ingroup scenedescriptionsdxx3d
29 */
30class OCEAN_SCENEDESCRIPTION_SDX_X3D_EXPORT Transform : virtual public X3DGroupingNode
31{
32 public:
33
34 /**
35 * Creates a new x3d transform node.
36 * @param environment Node environment
37 */
38 explicit Transform(const SDXEnvironment* environment);
39
40 protected:
41
42 /**
43 * Specifies the node type and the fields of this node.
44 * @return Unique node specification of this node
45 */
47
48 /**
49 * Event function to inform the node that it has been initialized and can apply all internal values to corresponding rendering objects.
50 * @see SDXNode::onInitialize().
51 */
52 void onInitialize(const Rendering::SceneRef& scene, const Timestamp timestamp) override;
53
54 /**
55 * Event function to inform the node about a changed field.
56 * @see SDXNode::onFieldChanged().
57 */
58 void onFieldChanged(const std::string& fieldName) override;
59
60 /**
61 * Returns the address of the most derived object.
62 * @see Node::objectAddress().
63 */
64 size_t objectAddress() const override;
65
66 protected:
67
68 /// Center field.
70
71 /// Rotation field.
73
74 /// Scale field.
76
77 /// ScaleOrientation field.
79
80 /// Translation field.
82};
83
84}
85
86}
87
88}
89
90}
91
92#endif // META_OCEAN_SCENEDESCRIPTION_SDX_X3D_TRANSFORM_H
This class implements a node specification object.
Definition scenedescription/Node.h:77
This class implements a x3d transform node.
Definition scenedescription/sdx/x3d/Transform.h:31
Transform(const SDXEnvironment *environment)
Creates a new x3d transform node.
NodeSpecification specifyNode()
Specifies the node type and the fields of this node.
SingleVector3 translation_
Translation field.
Definition scenedescription/sdx/x3d/Transform.h:81
SingleRotation rotation_
Rotation field.
Definition scenedescription/sdx/x3d/Transform.h:72
SingleRotation scaleOrientation_
ScaleOrientation field.
Definition scenedescription/sdx/x3d/Transform.h:78
size_t objectAddress() const override
Returns the address of the most derived object.
void onInitialize(const Rendering::SceneRef &scene, const Timestamp timestamp) override
Event function to inform the node that it has been initialized and can apply all internal values to c...
void onFieldChanged(const std::string &fieldName) override
Event function to inform the node about a changed field.
SingleVector3 center_
Center field.
Definition scenedescription/sdx/x3d/Transform.h:69
SingleVector3 scale_
Scale field.
Definition scenedescription/sdx/x3d/Transform.h:75
This class implements an abstract x3d grouping node.
Definition X3DGroupingNode.h:34
This class implements a node environment container.
Definition SDXNode.h:62
This class implements a timestamp.
Definition Timestamp.h:36
The namespace covering the entire Ocean framework.
Definition Accessor.h:15