A class for keeping track of captured pointers.
More...
#include <CapturedPointer.h>
|
std::ostream & | operator<< (std::ostream &os, const CapturedPointer &pointer) |
|
A class for keeping track of captured pointers.
ofx::DOM::CapturedPointer::CapturedPointer |
( |
std::size_t |
id | ) |
|
Create a CapturedPointer with the given id.
- Parameters
-
id | The id of the captured pointer. |
std::size_t ofx::DOM::CapturedPointer::id |
( |
| ) |
const |
- Returns
- the captured pointer's id.
uint64_t ofx::DOM::CapturedPointer::lastUpdate |
( |
| ) |
const |
- Returns
- the last update time.
const Position & ofx::DOM::CapturedPointer::offset |
( |
| ) |
const |
- Returns
- the start()-position() of the captured pointer.
const Position & ofx::DOM::CapturedPointer::position |
( |
| ) |
const |
- Returns
- the current position of the captured pointer.
const Position & ofx::DOM::CapturedPointer::start |
( |
| ) |
const |
- Returns
- the start position of the captured pointer.
uint64_t ofx::DOM::CapturedPointer::timestamp |
( |
| ) |
const |
- Returns
- the initial timestamp when the pointer was captured.
Update a given Captured Pointer from an Element and PointerEvent.
This method updates offset, position, velocity, lastUpdate and other parameters of the CapturedPointer.
- Parameters
-
const Position & ofx::DOM::CapturedPointer::velocity |
( |
| ) |
const |
- Returns
- the velocity of the captured pointer (lastPosition() - position()).
The documentation for this class was generated from the following files: