|
OpenFrames
|
Encapsulates the laser attached to OpenVR devices (usually controllers). More...
#include <OpenVRDevice.hpp>
Public Member Functions | |
| osg::MatrixTransform * | getTransform () const |
| Get Local->World matrix (transforms points in Laser frame to Controller frame) | |
| void | showLaser (bool show) |
| bool | isLaserShown () const |
| void | setLaserHideDelay (const double &delay) |
| double | getLaserHideDelay () const |
| void | setColor (const osg::Vec4 &color) |
| Laser color. | |
| const osg::Vec4 & | getColor () const |
| void | setDefaultColor (const osg::Vec4 &color) |
| const osg::Vec4 & | getDefaultColor () const |
| void | setLength (const double &length) |
| Laser length (meters) | |
| double | getLength () const |
| void | setDefaultLength (const double &length) |
| double | getDefaultLength () const |
| void | setWidth (const float &width) |
| Laser width (pixels) | |
| float | getWidth () const |
| void | setDefaultWidth (const float &width) |
| float | getDefaultWidth () const |
| const osg::Timer_t & | getUpdateTime () const |
| Last time any laser property was updated. | |
| void | restoreDefaults () |
Encapsulates the laser attached to OpenVR devices (usually controllers).
|
inline |
Set a delay for hiding the laser, in seconds If delay > 0 then any request to hide the laser will be applied only after its parameters have not changed for the specified amount of time. Laser hides immediately if delay <= 0 Laser stays on indefinitely if delay = DBL_MAX
| void OpenFrames::OpenVRDevice::LaserModel::showLaser | ( | bool | show | ) |
Show/hide the laser Note that delay-hiding the laser can be overridden by showing the laser
1.8.14