|
| GestureEvent (dvec2 deltaPos, double deltaDistance, GestureType type, GestureState state, int numFingers, dvec2 screenPosNorm, uvec2 canvasSize, double depth=1.0) |
|
| GestureEvent (const GestureEvent &rhs)=default |
|
GestureEvent & | operator= (const GestureEvent &that)=default |
|
virtual GestureEvent * | clone () const override |
|
dvec2 | deltaPos () const |
|
double | deltaDistance () const |
|
GestureType | type () const |
|
GestureState | state () const |
|
int | numFingers () const |
|
dvec2 | screenPosNormalized () const |
|
void | setScreenPosNormalized (dvec2) |
|
uvec2 | canvasSize () const |
|
void | setCanvasSize (uvec2 size) |
|
double | depth () const |
|
void | setDepth (double depth) |
|
dvec3 | ndc () const |
|
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 |
|
virtual bool | shouldPropagateTo (Inport *inport, Processor *processor, Outport *source) |
|
bool | markAsUsed () |
|
bool | hasBeenUsed () const |
|
bool | markAsUnused () |
|
bool | setUsed (bool isUsed) |
|
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 |
|
|
static constexpr uint64_t | chash () |
|
|
using | ToolTipCallback = std::function<void(std::string_view)> |
|
| Event (const Event &rhs)=default |
|
Event & | operator= (const Event &that)=default |
|
KeyModifiers | modifiers_ |
|
ToolTipCallback | tooltip_ |
|
◆ clone()
virtual GestureEvent * inviwo::GestureEvent::clone |
( |
| ) |
const |
|
overridevirtual |
◆ depth()
double inviwo::GestureEvent::depth |
( |
| ) |
const |
Retrieve depth value in normalized device coordinates at gesture position. Defined in [-1 1], where -1 is the near plane and 1 is the far plane. Will be 1 if no depth value is available. The depth is then defined to be positive inwards by default, resulting in a left handed coordinate system together with the position.
◆ hash()
virtual uint64_t inviwo::GestureEvent::hash |
( |
| ) |
const |
|
overridevirtual |
◆ ndc()
dvec3 inviwo::GestureEvent::ndc |
( |
| ) |
const |
Returns the normalized device coordinates. Position and depth normalized to the range of (-1,1) In in a left handed coordinate system. The lower left near will be (-1,-1,-1) And the upper right far (1,1,1)
◆ print()
virtual void inviwo::GestureEvent::print |
( |
std::ostream & | ss | ) |
const |
|
overridevirtual |
The documentation for this class was generated from the following file: