![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
Public Member Functions | |
| uvec2 | canvasSize () const |
| virtual GestureEvent * | clone () const override |
| double | deltaDistance () const |
| dvec2 | deltaPos () const |
| double | depth () const |
| GestureEvent (const GestureEvent &rhs)=default | |
| GestureEvent (dvec2 deltaPos, double deltaDistance, GestureType type, GestureState state, int numFingers, dvec2 screenPosNorm, uvec2 canvasSize, double depth=1.0) | |
| virtual uint64_t | hash () const override |
| dvec3 | ndc () const |
| int | numFingers () const |
| GestureEvent & | operator= (const GestureEvent &that)=default |
| virtual void | print (fmt::memory_buffer &buff) const override |
| dvec2 | screenPosNormalized () const |
| void | setCanvasSize (uvec2 size) |
| void | setDepth (double depth) |
| void | setScreenPosNormalized (dvec2) |
| GestureState | state () const |
| GestureType | type () const |
| Public Member Functions inherited from inviwo::InteractionEvent | |
| const ContextMenuCallback & | getContexMenuCallback () const |
| const ToolTipCallback & | getToolTipCallback () const |
| InteractionEvent (const InteractionEvent &rhs)=default | |
| InteractionEvent (KeyModifiers modifiers=KeyModifiers(flags::empty)) | |
| KeyModifiers | modifiers () const |
| InteractionEvent & | operator= (const InteractionEvent &that)=default |
| void | setContextMenuCallback (ContextMenuCallback callback) |
| void | setModifiers (KeyModifiers modifiers) |
| void | setToolTip (std::string_view tooltip) const |
| void | setToolTipCallback (ToolTipCallback callback) |
| void | showContextMenu (std::span< ContextMenuEntry > entries, ContextMenuCategories categories=ContextMenuCategory::Callback) |
| Public Member Functions inherited from inviwo::Event | |
| template<typename EventType> | |
| EventType * | getAs () |
| template<typename EventType> | |
| const EventType * | getAs () const |
| const std::vector< Processor * > & | getVisitedProcessors () const |
| bool | hasBeenUsed () const |
| bool | hasVisitedProcessor (Processor *) const |
| bool | markAsUnused () |
| bool | markAsUsed () |
| void | markAsVisited (Event &) |
| bool | markAsVisited (Processor *) |
| bool | setUsed (bool isUsed) |
| virtual bool | shouldPropagateTo (Inport *inport, Processor *processor, Outport *source) |
Static Public Member Functions | |
| static constexpr uint64_t | chash () |
Additional Inherited Members | |
| Public Types inherited from inviwo::InteractionEvent | |
| using | ContextMenuCallback |
| using | ToolTipCallback = std::function<void(std::string_view)> |
| Protected Member Functions inherited from inviwo::Event | |
| Event (const Event &rhs)=default | |
| Event & | operator= (const Event &that)=default |
| Protected Attributes inherited from inviwo::InteractionEvent | |
| ContextMenuCallback | contextMenuCallback_ |
| KeyModifiers | modifiers_ |
| ToolTipCallback | tooltip_ |
|
overridevirtual |
Implements inviwo::InteractionEvent.
| 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.
|
overridevirtual |
Implements inviwo::Event.
| 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)
|
overridevirtual |
Implements inviwo::Event.