Ocean
StaticGroup.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_STATIC_GROUP_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_STATIC_GROUP_H
10 
14 
15 namespace Ocean
16 {
17 
18 namespace SceneDescription
19 {
20 
21 namespace SDX
22 {
23 
24 namespace X3D
25 {
26 
27 /**
28  * This class implements a x3d static group node.
29  * @ingroup scenedescriptionsdxx3d
30  */
31 class OCEAN_SCENEDESCRIPTION_SDX_X3D_EXPORT StaticGroup :
32  virtual public X3DChildNode,
33  virtual public X3DBoundedObject
34 {
35  public:
36 
37  /**
38  * Creates a new x3d static group node.
39  * @param environment Node environment
40  */
41  explicit StaticGroup(const SDXEnvironment* environment);
42 
43  /**
44  * Destructs a static group node.
45  */
46  ~StaticGroup() override;
47 
48  protected:
49 
50  /**
51  * Specifies the node type and the fields of this node.
52  * @return Unique node specification of this node
53  */
55 
56  /**
57  * Event function to inform the node that it has been initialized and can apply all internal values to corresponding rendering objects.
58  * @see SDXNode::onInitialize().
59  */
60  void onInitialize(const Rendering::SceneRef& scene, const Timestamp timestamp) override;
61 
62  /**
63  * Returns the address of the most derived object.
64  * @see Node::objectAddress().
65  */
66  size_t objectAddress() const override;
67 
68  protected:
69 
70  /// Children field.
72 };
73 
74 }
75 
76 }
77 
78 }
79 
80 }
81 
82 #endif // META_OCEAN_SCENEDESCRIPTION_SDX_X3D_STATIC_GROUP_H
This class implements a node specification object.
Definition: scenedescription/Node.h:77
This class implements a x3d static group node.
Definition: StaticGroup.h:34
MultiNode children_
Children field.
Definition: StaticGroup.h:71
StaticGroup(const SDXEnvironment *environment)
Creates a new x3d static group node.
size_t objectAddress() const override
Returns the address of the most derived object.
NodeSpecification specifyNode()
Specifies the node type and the fields of this node.
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...
~StaticGroup() override
Destructs a static group node.
This class implements an abstract x3d bounded object.
Definition: X3DBoundedObject.h:33
This class implements an abstract x3d child node.
Definition: X3DChildNode.h:31
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