ImFusion SDK 4.3
ViewGroupAdapter Class Reference

#include <ImFusion/GUI/DisplayWidgetMultiAdapter.h>

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

Detailed Description

Helper class providing the API of ViewGroup while wrapping around either a ViewGroup or a GUI::RadiologyViewGroup.

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

 ViewGroupAdapter (ViewGroup *vg)
 
 ViewGroupAdapter (GUI::RadiologyViewGroup *vg)
 
ViewGroupAdapteroperator-> ()
 
const ViewGroupAdapteroperator-> () const
 
 operator bool () const
 
bool operator== (std::nullptr_t) const
 
bool operator!= (std::nullptr_t) const
 
bool acceptsData (const Data *data) const
 
void setVisibleData (const DataList &data)
 
DataList visibleData () const
 
bool showData (Data *data)
 
void hideData (Data *data)
 
void addObject (InteractiveObject *object)
 
void removeObject (InteractiveObject *object)
 
std::vector< InteractiveViewAdapterviews () const
 
std::vector< ImageView2DAdaptermprViews () const
 
void reset ()
 
std::optional< vec3 > intersectionCenter () const
 
void centerIntersection ()
 
void centerSlices (const vec3 &point)
 
void centerOnData (const Data *data)
 
void setMprViewMatrices (const mat4 &matrix)
 
void alignMprViewsToVoxelGrid ()
 

Protected Attributes

Utils::Variant< std::monostate, ViewGroup *, GUI::RadiologyViewGroup * > m_viewGroup
 

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