Ocean
Normal.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_NORMAL_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_NORMAL_H
10 
13 
14 namespace Ocean
15 {
16 
17 namespace SceneDescription
18 {
19 
20 namespace SDX
21 {
22 
23 namespace X3D
24 {
25 
26 /**
27  * This class implements a x3d normal node.
28  * @ingroup scenedescriptionsdxx3d
29  */
30 class OCEAN_SCENEDESCRIPTION_SDX_X3D_EXPORT Normal : virtual public X3DNormalNode
31 {
32  public:
33 
34  /**
35  * Creates a new x3d normal node.
36  * @param environment Node environment
37  */
38  explicit Normal(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 about a changed field.
50  * @see SDXNode::onFieldChanged().
51  */
52  void onFieldChanged(const std::string& fieldName) override;
53 
54  /**
55  * Returns the address of the most derived object.
56  * @see Node::objectAddress().
57  */
58  size_t objectAddress() const override;
59 
60  protected:
61 
62  /// Vector field.
64 };
65 
66 }
67 
68 }
69 
70 }
71 
72 }
73 
74 #endif // META_OCEAN_SCENEDESCRIPTION_SDX_X3D_NORMAL_H
This class implements a node specification object.
Definition: scenedescription/Node.h:77
This class implements a x3d normal node.
Definition: Normal.h:31
void onFieldChanged(const std::string &fieldName) override
Event function to inform the node about a changed field.
MultiVector3 vector_
Vector field.
Definition: Normal.h:63
size_t objectAddress() const override
Returns the address of the most derived object.
Normal(const SDXEnvironment *environment)
Creates a new x3d normal node.
NodeSpecification specifyNode()
Specifies the node type and the fields of this node.
This class implements an abstract x3d normal node.
Definition: X3DNormalNode.h:31
This class implements a node environment container.
Definition: SDXNode.h:62
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15