A virtual button on a trackable More...
Public Types | |
enum | Sensitivity { HIGH, MEDIUM, LOW } |
The sensitivity of this virtual button. This is a trade off between fast detection and robustness again accidental occlusion. More... | |
Public Member Functions | |
bool | SetArea (RectangleData area) |
Defines a new area for the button area in 3D scene units (the coordinate system is local to the ImageTarget). More... | |
bool | SetEnabled (bool enabled) |
Enables or disables a virtual button More... | |
bool | SetSensitivity (Sensitivity sensitivity) |
Sets the sensitivity of the virtual button More... | |
Public Attributes | |
const Sensitivity | DEFAULT_SENSITIVITY = Sensitivity.LOW |
The standard sensitivity More... | |
Properties | |
RectangleData | Area [get] |
Returns the currently set Area More... | |
bool | Enabled [get] |
Returns true if the virtual button is active (updates while tracking). More... | |
int | ID [get] |
Returns a unique id for this virtual button. More... | |
string | Name [get] |
Returns the name of the button More... | |
A virtual button on a trackable
Methods to modify a VirtualButton must not be called while the corresponding DataSet is active. The dataset must be deactivated first before reconfiguring a VirtualButton.
|
strong |
bool SetArea | ( | RectangleData | area | ) |
Defines a new area for the button area in 3D scene units (the coordinate system is local to the ImageTarget).
This method must not be called while the corresponding DataSet is active or it will return false.
bool SetEnabled | ( | bool | enabled | ) |
Enables or disables a virtual button
This method must not be called while the corresponding DataSet is active or it will return false.
bool SetSensitivity | ( | Sensitivity | sensitivity | ) |
Sets the sensitivity of the virtual button
Sensitivity allows deciding between fast and robust button press measurements. This method must not be called while the corresponding DataSet is active or it will return false.
const Sensitivity DEFAULT_SENSITIVITY = Sensitivity.LOW |
The standard sensitivity
|
get |
Returns the currently set Area
|
get |
Returns true if the virtual button is active (updates while tracking).
|
get |
Returns a unique id for this virtual button.
|
get |
Returns the name of the button