ImFusion SDK 4.3
InteractiveViewAdapter Class Reference

#include <ImFusion/GUI/DisplayWidgetMultiAdapter.h>

Helper class providing the API of InteractiveView while wrapping around either a InteractiveView or a GUI::View. More...

+ Inheritance diagram for InteractiveViewAdapter:

Detailed Description

Helper class providing the API of InteractiveView while wrapping around either a InteractiveView or a GUI::View.

Warning
To mimic existing use cases this adapter class has nullable/pointer semantics and can be 'null'. If it is null conversion to bool will yield false and comparison to nullptr will be true, and you must not call any of its other member functions.

Public Member Functions

 InteractiveViewAdapter (InteractiveView *view)
 
 InteractiveViewAdapter (GUI::View *view, GUI::RadiologyDisplay *parentDisplay)
 
InteractiveViewAdapteroperator-> ()
 
const InteractiveViewAdapteroperator-> () const
 
 operator bool () const
 
 operator GUI::View * () const
 
bool operator== (std::nullptr_t) const
 
bool operator!= (std::nullptr_t) const
 
bool operator== (const InteractiveView *view) const
 
bool operator!= (const InteractiveView *view) const
 
bool acceptsData (const Data *data) const
 
void setVisibleData (const DataList &data)
 
const DataListvisibleData () const
 
bool showData (Data *data)
 
void hideData (const Data *data)
 
void addOverlay (std::unique_ptr< GUI::ViewOverlay > overlay, GUI::ViewOverlay::Anchor anchor, int position=-1)
 
void addOverlay (std::unique_ptr< InteractiveOverlay > overlay, int position=-1)
 
std::unique_ptr< GUI::ViewOverlayremoveOverlay (GUI::ViewOverlay *overlay)
 
std::vector< GUI::ViewOverlay * > overlays () const
 
void addObject (GUI::ViewObject *object)
 
void removeObject (GUI::ViewObject *object)
 
std::vector< GUI::ViewObject * > objects () const
 
void reset ()
 
void setVisible (bool value)
 
std::vector< GUI::View::EventHandler * > interactions () const
 
template<typename T>
T * findInteraction () const
 
GlViewview ()
 
const GlViewview () const
 

Protected Attributes

Utils::Variant< InteractiveView *, GUI::View * > m_view = static_cast<InteractiveView*>(nullptr)
 
GUI::Viewm_viewBase = nullptr
 
GUI::RadiologyDisplaym_parentDisplay = nullptr
 

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close