Ocean
MultiTextureTransform.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_MULTI_TEXTURE_TRANSFORM_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_MULTI_TEXTURE_TRANSFORM_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 multi texture transform node.
28  * @ingroup scenedescriptionsdxx3d
29  */
30 class OCEAN_SCENEDESCRIPTION_SDX_X3D_EXPORT MultiTextureTransform : virtual public X3DTextureTransformNode
31 {
32  public:
33 
34  /**
35  * Creates a new x3d multi texture transform node.
36  * @param environment Node environment
37  */
38  explicit MultiTextureTransform(const SDXEnvironment* environment);
39 
40  protected:
41 
42  /**
43  * Destructs a multi texture transform node.
44  */
46 
47  /**
48  * Specifies the node type and the fields of this node.
49  * @return Unique node specification of this node
50  */
52 
53  /**
54  * Event function to inform the node that it has been initialized and can apply all internal values to corresponding rendering objects.
55  * @see SDXNode::onInitialize().
56  */
57  void onInitialize(const Rendering::SceneRef& scene, const Timestamp timestamp) override;
58 
59  /**
60  * Explicit changing event function for node fields.
61  * @see X3DNode::onFieldChanging().
62  */
63  bool onFieldChanging(const std::string& fieldName, const Field& field) override;
64 
65  /**
66  * Returns the address of the most derived object.
67  * @see Node::objectAddress().
68  */
69  size_t objectAddress() const override;
70 
71  protected:
72 
73  /// TextureTransform field.
75 };
76 
77 }
78 
79 }
80 
81 }
82 
83 }
84 
85 #endif // META_OCEAN_SCENEDESCRIPTION_SDX_X3D_MULTI_TEXTURE_TRANSFORM_H
This class is the base class for all scene description fields.
Definition: Field.h:36
This class implements a node specification object.
Definition: scenedescription/Node.h:77
This class implements a x3d multi texture transform node.
Definition: MultiTextureTransform.h:31
~MultiTextureTransform() override
Destructs a multi texture transform node.
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...
size_t objectAddress() const override
Returns the address of the most derived object.
MultiTextureTransform(const SDXEnvironment *environment)
Creates a new x3d multi texture transform node.
bool onFieldChanging(const std::string &fieldName, const Field &field) override
Explicit changing event function for node fields.
MultiNode textureTransform_
TextureTransform field.
Definition: MultiTextureTransform.h:74
This class implements an abstract x3d texture transform node.
Definition: X3DTextureTransformNode.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