Touch event contains all touch points associated with the event. Touch events are usually generated by touch screens or touch pads, see TouchDevice.
More...
|
|
| TouchEvent (const std::vector< TouchPoint > &touchPoints, const TouchDevice *source, KeyModifiers modifiers) |
| virtual TouchEvent * | clone () const override |
|
bool | hasTouchPoints () const |
|
const std::vector< TouchPoint > & | touchPoints () const |
|
std::vector< TouchPoint > & | touchPoints () |
|
void | setTouchPoints (std::vector< TouchPoint > val) |
|
uvec2 | canvasSize () const |
| dvec2 | centerPoint () const |
| | Computes average position. Returns dvec2(0) if no touch points exist.
|
| dvec2 | centerPointNormalized () const |
| | Computes average normalized position. Returns dvec2(0) if no touch points exist.
|
| dvec2 | prevCenterPointNormalized () const |
| | Computes previous average normalized position. Returns dvec2(0) if no touch points exist.
|
| dvec3 | centerNDC () const |
| | Average of touch points in normalized device coordinates, TouchPoint::ndc() Defined in (-1,1) in a left handed coordinate system.
|
| double | averageDepth () const |
| | Average depth of touch points, TouchPoint::depth() Defined in [-1 1], where -1 is the near plane and 1 is the far plane.
|
|
const TouchDevice * | getDevice () const |
| | Return TouchDevice that generated the event.
|
| std::vector< const TouchPoint * > | findClosestTwoTouchPoints () const |
| | Retrieve pointers to the two closest touch points.
|
| virtual uint64_t | hash () const override |
| virtual void | print (std::ostream &ss) const override |
|
| InteractionEvent (KeyModifiers modifiers=KeyModifiers(flags::empty)) |
|
| InteractionEvent (const InteractionEvent &rhs)=default |
|
InteractionEvent & | operator= (const InteractionEvent &that)=default |
|
KeyModifiers | modifiers () const |
|
void | setModifiers (KeyModifiers modifiers) |
|
std::string | modifierNames () const |
| void | setToolTip (std::string_view tooltip) const |
| void | setToolTipCallback (ToolTipCallback callback) |
|
const ToolTipCallback & | getToolTipCallback () const |
| void | showContextMenu (std::span< ContextMenuEntry > entries, ContextMenuCategories categories=ContextMenuCategory::Callback) |
|
void | setContextMenuCallback (ContextMenuCallback callback) |
|
const ContextMenuCallback & | getContexMenuCallback () const |
| virtual bool | shouldPropagateTo (Inport *inport, Processor *processor, Outport *source) |
| bool | markAsUsed () |
| bool | markAsUnused () |
| bool | setUsed (bool isUsed) |
|
bool | hasBeenUsed () const |
| bool | markAsVisited (Processor *) |
|
void | markAsVisited (Event &) |
|
bool | hasVisitedProcessor (Processor *) const |
|
const std::vector< Processor * > & | getVisitedProcessors () const |
|
template<typename EventType> |
| EventType * | getAs () |
|
template<typename EventType> |
| const EventType * | getAs () const |
Touch event contains all touch points associated with the event. Touch events are usually generated by touch screens or touch pads, see TouchDevice.
- See also
- TouchPoint