MCPcopy Create free account
hub / github.com/MITK/MITK / IsEqual

Method IsEqual

Modules/Core/src/Interactions/mitkMouseWheelEvent.cpp:61–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61bool mitk::MouseWheelEvent::IsEqual(const mitk::InteractionEvent &interactionEvent) const
62{
63 const auto &mwe = static_cast<const MouseWheelEvent &>(interactionEvent);
64 return ((this->GetWheelDelta() * mwe.GetWheelDelta() >=
65 0) // Consider WheelEvents to be equal if the scrolling is done in the same direction.
66 &&
67 this->GetModifiers() == mwe.GetModifiers() && this->GetButtonStates() == mwe.GetButtonStates() &&
68 Superclass::IsEqual(interactionEvent));
69}
70
71bool mitk::MouseWheelEvent::IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const
72{

Callers

nothing calls this directly

Calls 4

GetWheelDeltaMethod · 0.95
GetModifiersMethod · 0.95
GetButtonStatesMethod · 0.95
IsEqualFunction · 0.85

Tested by

no test coverage detected