ImFusion SDK 4.3
DataItemDisplayHandler Class Reference

#include <ImFusion/ML/DataItemDisplayHandler.h>

DataDisplayHandler for DataItems. More...

+ Inheritance diagram for DataItemDisplayHandler:

Detailed Description

DataDisplayHandler for DataItems.

Public Member Functions

bool handlesType (const Data *data) const override
 Returns true if data is a DataItem.
 
bool canBeShownInView (const Data *data, const GUI::View &view) const override
 Only supports ImageView2D and ImageView3D.
 
void show (Data *data, GUI::View &view) override
 Visualize the given data in the given view.
 
void hide (Data *data, GUI::View &view) override
 Remove the given data from the given view.
 
- Public Member Functions inherited from DataDisplayHandler
virtual void onViewDeleted (GUI::View &view)
 Called if a view associated with this DataDisplayHandler is destroyed.
 
virtual std::unique_ptr< QWidget > createDisplayOptionsWidget (Data *data, GUI::DisplayBase &display, GUI::View &view) const
 Provides an optional QtWidgets-based GUI to configure display options for the given data shown in view.
 
- Public Member Functions inherited from SignalReceiver
 SignalReceiver ()=default
 Default constructor.
 
 SignalReceiver (const SignalReceiver &other)
 Copy constructor, does not copy any existing signal connections from other.
 
SignalReceiveroperator= (SignalReceiver rhs)
 Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs.
 
virtual ~SignalReceiver ()
 Virtual destructor disconnects from all connected signals.
 

Additional Inherited Members

- Protected Member Functions inherited from SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.
 

Member Function Documentation

◆ handlesType()

bool handlesType ( const Data * data) const
overridevirtual

Returns true if data is a DataItem.

Implements DataDisplayHandler.

◆ canBeShownInView()

bool canBeShownInView ( const Data * data,
const GUI::View & view ) const
overridevirtual

Only supports ImageView2D and ImageView3D.

Implements DataDisplayHandler.

◆ show()

void show ( Data * data,
GUI::View & view )
overridevirtual

Visualize the given data in the given view.

Should only be called if (handlesType(data) == true) && (canBeShownInView(data, view) == true).

Implements DataDisplayHandler.

◆ hide()

void hide ( Data * data,
GUI::View & view )
overridevirtual

Remove the given data from the given view.

Warning
Implementations must not access data beyond pointer comparison because the instance may already in the process of deletion when calling this function.

Implements DataDisplayHandler.


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