![]() |
Murl Engine API
Version 2024.1
|
The ITouchArea interface. More...
#include <murl_input_i_touch_area.h>
The ITouchArea interface.
The ITouchArea object can be created by the ITouchableHandler object.
Inherited by Murl::Input::TouchArea.
Public Member Functions | |
virtual Bool | SetActiveFaces (IEnums::PolygonFaces faces)=0 |
Set which faces of the touch area are active. More... | |
virtual IEnums::PolygonFaces | GetActiveFaces () const =0 |
Check which faces of the touch area are active. More... | |
virtual Bool | SetOutCoord (Real x1, Real y1, Real x2, Real y2)=0 |
Set the button's output coordinate range. More... | |
virtual Bool | SetOutCoord1 (Real x1, Real y1)=0 |
Set the button's output coordinate start. More... | |
virtual Bool | SetOutCoord2 (Real x2, Real y2)=0 |
Set the button's output coordinate end. More... | |
virtual Bool | SetOutCoordX1 (Real x1)=0 |
Set the button's horizontal start output coordinate. More... | |
virtual Bool | SetOutCoordY1 (Real y1)=0 |
Set the button's vertical start output coordinates. More... | |
virtual Bool | SetOutCoordX2 (Real x2)=0 |
Set the button's horizontal end output coordinate. More... | |
virtual Bool | SetOutCoordY2 (Real y2)=0 |
Set the button's vertical end output coordinates. More... | |
virtual Real | GetOutCoordX1 () const =0 |
Get the button's horizontal start output coordinate. More... | |
virtual Real | GetOutCoordY1 () const =0 |
Get the button's vertical start output coordinate. More... | |
virtual Real | GetOutCoordX2 () const =0 |
Get the button's horizontal end output coordinate. More... | |
virtual Real | GetOutCoordY2 () const =0 |
Get the button's vertical end output coordinate. More... | |
virtual Bool | SetOutCoordClippingEnabled (Bool enable)=0 |
Enable or disable output coordinate clipping. More... | |
virtual Bool | IsOutCoordClippingEnabled () const =0 |
Check if output coordinate clipping is enabled. More... | |
virtual void | SetResponseTarget (Graph::ITouchReporter *node)=0 |
Set the response target object. More... | |
virtual Graph::ITouchReporter * | GetResponseTarget () const =0 |
Get the response target object. More... | |
virtual void | SetResponseButton (IEnums::MouseButton button)=0 |
Set the response button. More... | |
virtual IEnums::MouseButton | GetResponseButton () const =0 |
Get the response button. More... | |
virtual void | SetPassEventsEnabled (Bool enable)=0 |
Set the pass events state. More... | |
virtual Bool | IsPassEventsEnabled () const =0 |
Check the pass events state. More... | |
|
pure virtual |
Set which faces of the touch area are active.
faces | One of the available IEnums::PolygonFaces enumeration values. |
|
pure virtual |
Check which faces of the touch area are active.
|
pure virtual |
Set the button's output coordinate range.
This method sets the button's start and end output coordinates. In contrast to a button event's local intersection point, which always represents the actual intersection in object-space 3D coordinates, an event's output coordinate represents a 2D intersection on the button's clickable surface. This can be interpreted analogously to a renderable geometry, with 3D vertex coordinates and 2D texture coordinates.
x1 | The start coordinate in X direction. |
y1 | The start coordinate in Y direction. |
x2 | The end coordinate in X direction. |
y2 | The end coordinate in Y direction. |
Set the button's output coordinate start.
See SetOutCoord().
x1 | The start coordinate in X direction. |
y1 | The start coordinate in Y direction. |
Set the button's output coordinate end.
See SetOutCoord().
x2 | The end coordinate in X direction. |
y2 | The end coordinate in Y direction. |
Set the button's horizontal start output coordinate.
See SetOutCoord().
x1 | The start coordinate in X direction. |
Set the button's vertical start output coordinates.
See SetOutCoord().
y1 | The start coordinate in Y direction. |
Set the button's horizontal end output coordinate.
See SetOutCoord().
x2 | The end coordinate in X direction. |
Set the button's vertical end output coordinates.
See SetOutCoord().
y2 | The end coordinate in Y direction. |
|
pure virtual |
Get the button's horizontal start output coordinate.
See SetOutCoord().
|
pure virtual |
Get the button's vertical start output coordinate.
See SetOutCoord().
|
pure virtual |
Get the button's horizontal end output coordinate.
See SetOutCoord().
|
pure virtual |
Get the button's vertical end output coordinate.
See SetOutCoord().
Enable or disable output coordinate clipping.
enable | If true, output coordinates are being clipped. |
|
pure virtual |
Check if output coordinate clipping is enabled.
|
pure virtual |
Set the response target object.
node | The response target object. |
|
pure virtual |
Get the response target object.
|
pure virtual |
Set the response button.
button | The response button. |
|
pure virtual |
Get the response button.
|
pure virtual |
Set the pass events state.
enable | true for enable passing events. |
|
pure virtual |
Check the pass events state.