Ocean
Loading...
Searching...
No Matches
Viewpoint.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_VIEWPOINT_H
9#define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_VIEWPOINT_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 a x3d viewpoint node.
30 * @ingroup scenedescriptionsdxx3d
31 */
32class OCEAN_SCENEDESCRIPTION_SDX_X3D_EXPORT Viewpoint :
33 virtual public X3DViewpointNode,
34 virtual public SDXUpdateNode
35{
36 public:
37
38 /**
39 * Creates a new x3d viewpoint node.
40 * @param environment Node environment
41 */
42 explicit Viewpoint(const SDXEnvironment* environment);
43
44 protected:
45
46 /**
47 * Specifies the node type and the fields of this node.
48 * @return Unique node specification of this node
49 */
51
52 /**
53 * Returns the address of the most derived object.
54 * @see Node::objectAddress().
55 */
56 size_t objectAddress() const override;
57
58 /**
59 * Pre update event function.
60 * @see SDXUpdateNode::onPreUpdate().
61 */
62 Timestamp onPreUpdate(const Rendering::ViewRef& view, const Timestamp timestamp) override;
63
64 protected:
65
66 /// FieldOfView field.
68};
69
70}
71
72}
73
74}
75
76}
77
78#endif // META_OCEAN_SCENEDESCRIPTION_SDX_X3D_VIEWPOINT_H
This class implements a node specification object.
Definition scenedescription/Node.h:77
Timestamp onPreUpdate(const Rendering::ViewRef &view, const Timestamp timestamp) override
Pre update event function.
size_t objectAddress() const override
Returns the address of the most derived object.
SingleFloat fieldOfView_
FieldOfView field.
Definition Viewpoint.h:67
NodeSpecification specifyNode()
Specifies the node type and the fields of this node.
Viewpoint(const SDXEnvironment *environment)
Creates a new x3d viewpoint node.
X3DViewpointNode(const SDXEnvironment *environment)
Creates a new abstract x3d viewpoint node.
This class implements a node environment container.
Definition SDXNode.h:62
SDXUpdateNode(const SDXEnvironment *environment)
Creates a new update node and registers it at the scene description manager.
This class implements a timestamp.
Definition Timestamp.h:64
SmartObjectRef< View > ViewRef
Definition of a smart object reference holding a view node.
Definition View.h:39
Field0D< Scalar > SingleFloat
Definition of a single field with float value.
Definition Field0D.h:41
Namespace of the S(scene)D(escription)X X3D SceneDescription library.
Definition Appearance.h:26
Definition Appearance.h:23
Namespace of the SceneDescription library.
Definition DynamicNode.h:21
The namespace covering the entire Ocean framework.
Definition Accessor.h:15