Ocean
Loading...
Searching...
No Matches
X3DComposedGeometryNode.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_X3D_COMPOSED_GEOMETRY_NODE_H
9#define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_X3D_COMPOSED_GEOMETRY_NODE_H
10
13
15
16namespace Ocean
17{
18
19namespace SceneDescription
20{
21
22namespace SDX
23{
24
25namespace X3D
26{
27
28/**
29 * This class implements an abstract x3d composed geometry node.
30 * @ingroup scenedescriptionsdxx3d
31 */
32class OCEAN_SCENEDESCRIPTION_SDX_X3D_EXPORT X3DComposedGeometryNode : virtual public X3DGeometryNode
33{
34 protected:
35
36 /**
37 * Creates an abstract x3d composed geometry node.
38 * @param environment Node environment
39 */
40 explicit X3DComposedGeometryNode(const SDXEnvironment* environment);
41
42 /**
43 * Destructs a x3d composed geometry node.
44 */
46
47 /**
48 * Registers the fields of this node.
49 * @param specification Node specification receiving the field informations
50 */
51 void registerFields(NodeSpecification& specification);
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 protected:
60
61 /// Attrib field.
63
64 /// Color field.
66
67 /// Coord field.
69
70 /// FogCoord field.
72
73 /// Normal field.
75
76 /// TexCoord field.
78
79 /// CCW field.
81
82 /// ColorPerVertex field.
84
85 /// NormalPerVertex field.
87
88 /// Solid field.
90
91 /// Rendering vertex set
93};
94
95}
96
97}
98
99}
100
101}
102
103#endif // META_OCEAN_SCENEDESCRIPTION_SDX_X3D_X3D_COMPOSED_GEOMETRY_NODE_H
This class implements a node specification object.
Definition scenedescription/Node.h:77
This class implements an abstract x3d composed geometry node.
Definition X3DComposedGeometryNode.h:33
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...
MultiNode attrib_
Attrib field.
Definition X3DComposedGeometryNode.h:62
SingleBool colorPerVertex_
ColorPerVertex field.
Definition X3DComposedGeometryNode.h:83
Rendering::VertexSetRef renderingVertexSet_
Rendering vertex set.
Definition X3DComposedGeometryNode.h:92
SingleBool solid_
Solid field.
Definition X3DComposedGeometryNode.h:89
X3DComposedGeometryNode(const SDXEnvironment *environment)
Creates an abstract x3d composed geometry node.
SingleBool normalPerVertex_
NormalPerVertex field.
Definition X3DComposedGeometryNode.h:86
SingleNode color_
Color field.
Definition X3DComposedGeometryNode.h:65
void registerFields(NodeSpecification &specification)
Registers the fields of this node.
SingleNode texCoord_
TexCoord field.
Definition X3DComposedGeometryNode.h:77
SingleNode coord_
Coord field.
Definition X3DComposedGeometryNode.h:68
SingleBool ccw_
CCW field.
Definition X3DComposedGeometryNode.h:80
SingleNode normal_
Normal field.
Definition X3DComposedGeometryNode.h:74
SingleNode fogCoord_
FogCoord field.
Definition X3DComposedGeometryNode.h:71
~X3DComposedGeometryNode() override
Destructs a x3d composed geometry node.
This class implements an abstract x3d geometry node.
Definition X3DGeometryNode.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