Inviwo  0.9.10.1
Inviwo documentation
inviwo::WheelEvent Class Reference
+ Inheritance diagram for inviwo::WheelEvent:

Public Member Functions

 WheelEvent (MouseButtons buttonState=MouseButtons(flags::empty), KeyModifiers modifiers=KeyModifiers(flags::empty), dvec2 delta=dvec2(0), dvec2 normalizedPosition=dvec2(0), uvec2 canvasSize=uvec2(0), double depth=1.0)
 
 WheelEvent (const WheelEvent &rhs)=default
 
WheelEventoperator= (const WheelEvent &that)=default
 
virtual WheelEventclone () const override
 
dvec2 delta () const
 
void setDelta (dvec2 delta)
 
virtual uint64_t hash () const override
 
virtual void print (std::ostream &ss) const override
 
- Public Member Functions inherited from inviwo::MouseInteractionEvent
 MouseInteractionEvent (MouseButtons buttonState=MouseButtons(flags::empty), KeyModifiers modifiers=KeyModifiers(flags::empty), dvec2 normalizedPosition=dvec2(0), uvec2 canvasSize=uvec2(1), double depth=1.0)
 
 MouseInteractionEvent (const MouseInteractionEvent &rhs)=default
 
MouseInteractionEventoperator= (const MouseInteractionEvent &that)=default
 
MouseButtons buttonState () const
 
void setButtonState (MouseButtons buttonState)
 
dvec2 pos () const
 
void setPos (dvec2 pos)
 
uvec2 canvasSize () const
 
void setCanvasSize (uvec2 size)
 
double depth () const
 
void setDepth (double depth)
 
dvec2 posNormalized () const
 
void setPosNormalized (dvec2 pos)
 
dvec3 ndc () const
 
double x () const
 
double y () const
 
std::string buttonName () const
 
- Public Member Functions inherited from inviwo::InteractionEvent
 InteractionEvent (KeyModifiers modifiers=KeyModifiers(flags::empty))
 
 InteractionEvent (const InteractionEvent &rhs)=default
 
InteractionEventoperator= (const InteractionEvent &that)=default
 
KeyModifiers modifiers () const
 
void setModifiers (KeyModifiers modifiers)
 
std::string modifierNames () const
 
void setToolTip (const std::string &tooltip) const
 
void setToolTipCallback (ToolTipCallback callback)
 
const ToolTipCallback & getToolTipCallback () const
 
- Public Member Functions inherited from inviwo::Event
virtual bool shouldPropagateTo (Inport *inport, Processor *processor, Outport *source)
 
void markAsUsed ()
 
bool hasBeenUsed () const
 
void markAsUnused ()
 
void 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 Public Member Functions

static constexpr uint64_t chash ()
 

Additional Inherited Members

- Public Types inherited from inviwo::InteractionEvent
using ToolTipCallback = std::function< void(const std::string &)>
 
- Protected Member Functions inherited from inviwo::Event
 Event (const Event &rhs)=default
 
Eventoperator= (const Event &that)=default
 
- Protected Attributes inherited from inviwo::InteractionEvent
KeyModifiers modifiers_
 
ToolTipCallback tooltip_
 

The documentation for this class was generated from the following files: