8 #ifndef META_OCEAN_SCENEDESCRIPTION_SDX_X3D_TOUCH_SENSOR_NODE_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDX_X3D_TOUCH_SENSOR_NODE_H
18 namespace SceneDescription
This class implements a node specification object.
Definition: scenedescription/Node.h:77
This class implements a touch sensor node.
Definition: TouchSensor.h:32
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.
This class implements an abstract x3d touch sensor node.
Definition: X3DTouchSensorNode.h:31
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:36
size_t ObjectId
Definition of a object id.
Definition: rendering/Rendering.h:59
ButtonEvent
Definition of different device events.
Definition: SceneDescription.h:92
ButtonType
Definition of different button types.
Definition: SceneDescription.h:76
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15