ImFusion SDK 4.3
ASCDataDisplayHandler< Q, T > Class Template Reference

#include <AnatomyPlugin/include/ImFusion/AnatomyPlugin/ASCDataDisplayHandler.h>

Template class that creates an ASCDataDisplayHandlerBase for a specific ASCVisualiser/AnatomicalStructureCollection pair. More...

+ Inheritance diagram for ASCDataDisplayHandler< Q, T >:

Detailed Description

template<typename Q, typename T>
class ImFusion::ASCDataDisplayHandler< Q, T >

Template class that creates an ASCDataDisplayHandlerBase for a specific ASCVisualiser/AnatomicalStructureCollection pair.

DataDisplayHandler interface

bool handlesType (const Data *data) const override
 Check whether this specialization handles the given Data type.
 

Additional Inherited Members

- Public Member Functions inherited from ASCDataDisplayHandlerBase
 ASCDataDisplayHandlerBase (std::function< std::unique_ptr< ASCVisualiser >(AnatomicalStructureCollection &arg)> construct)
 Constructor with a callback function that constructs an ASCVisualiser from an AnatomicalStructureCollection.
 
void setDisplayOptionsWidgetDisabled (bool disabled)
 
bool handlesType (const Data *data) const override
 Check whether this specialization handles the given Data type.
 
bool canBeShownInView (const Data *data, const GUI::View &view) const override
 Check whether a particular Data can be shown in the given view.
 
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.
 
void onViewDeleted (GUI::View &view) override
 Called if a view associated with this DataDisplayHandler is destroyed.
 
std::unique_ptr< QWidget > createDisplayOptionsWidget (Data *data, GUI::DisplayBase &display, GUI::View &view) const override
 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.
 
- Protected Member Functions inherited from ASCDataDisplayHandlerBase
virtual DataComponentBasegetOrCreateDisplayOptions (Data &data)
 
- Protected Member Functions inherited from SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.
 
- Protected Attributes inherited from ASCDataDisplayHandlerBase
bool m_displayOptionsWidgetDisabled = false
 If set to true, the display options widget will not be created. This is useful for the case that another class (like ASCSet) handles the display.
 
std::unordered_map< const Data *, std::unique_ptr< ASCVisualiser > > m_ascVisualisers
 

Member Function Documentation

◆ handlesType()

template<typename Q, typename T>
bool handlesType ( const Data * data) const
inlineoverridevirtual

Check whether this specialization handles the given Data type.

Checks should be as narrow as possible to avoid potential overlap with other handlers.

Implements DataDisplayHandler.


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