8#ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_TOUCH_SENSOR_NODE_H
9#define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_TOUCH_SENSOR_NODE_H
This class implements a node specification object.
Definition scenedescription/Node.h:77
void onMouse(const ButtonType button, const ButtonEvent buttonEvent, const Vector2 &screenPosition, const Vector3 &objectPosition, const Rendering::ObjectId objectId, const Timestamp timestamp) override
Mouse event function.
static bool hasRenderingObject(const SmartObjectRef< X3DGroupingNode, Node > &group, const Rendering::ObjectId objectId)
Returns whether a specified group object holds a specific rendering object id.
bool isSiblingNode(const Rendering::ObjectId objectId) const
Returns whether the selected rendering object is an object of the sibling nodes.
SingleVector3 hitPointChanged_
HitPoint_changed field.
Definition TouchSensor.h:88
Vector3 lastObjectPosition_
Last object hit position.
Definition TouchSensor.h:94
NodeSpecification specifyNode()
Specifies the node type and the fields of this node.
TouchSensor(const SDXEnvironment *environment)
Creates an abstract touch sensor node.
void onKey(const int key, const ButtonEvent buttonEvent, const Rendering::ObjectId objectId, const Timestamp timestamp) override
Key event function.
SingleVector3 hitNormalChanged_
HitNormal_changed field.
Definition TouchSensor.h:85
SingleVector2 hitTexCoordChanged_
HitTexCoord_changed field.
Definition TouchSensor.h:91
size_t objectAddress() const override
Returns the address of the most derived object.
X3DTouchSensorNode(const SDXEnvironment *environment)
Creates an abstract x3d touch sensor node.
This class implements a node environment container.
Definition SDXNode.h:62
This template class implements a smart object reference which is a specialization of an ObjectRef obj...
Definition SmartObjectRef.h:90
This class implements a timestamp.
Definition Timestamp.h:64
VectorT2< Scalar > Vector2
Definition of a 2D vector.
Definition Vector2.h:28
VectorT3< Scalar > Vector3
Definition of a 3D vector.
Definition Vector3.h:29
size_t ObjectId
Definition of a object id.
Definition rendering/Rendering.h:59
Field0D< Vector3 > SingleVector3
Definition of a single field with 3D vector value.
Definition Field0D.h:95
Field0D< Vector2 > SingleVector2
Definition of a single field with 2D vector value.
Definition Field0D.h:89
ButtonEvent
Definition of different device events.
Definition SceneDescription.h:92
ButtonType
Definition of different button types.
Definition SceneDescription.h:76
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