![]() |
ImFusion SDK 4.3
|
#include <ImFusion/US/SweepDisplayHandler.h>
A DataDisplayHandler for UltrasoundSweep. More...
Inheritance diagram for SweepDisplayHandler:A DataDisplayHandler for UltrasoundSweep.
An ultrasound sweep can be visualized in 2D or 3D views.
For the visualization in the volumetric 3D view a GlSweep3D object is maintained. There is a custom widget in the volumetric view that combines a combo box for the SweepDisplayOptions::RenderMode3d selection with the widget for the DisplayOptions3d nested. The latter is enabled only for the option of SweepDisplayOptions::RenderMode3d::TransferFunction as it is otherwise not applicable.
The widgets for the MPR and plain 2D view are the default DisplayOptions2dWidget widgets.
Upon deletion of the displayed sweeps, this handler takes care of cleaning the views
Public Member Functions | |
| 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. | |
| SignalReceiver & | operator= (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. | |
|
overridevirtual |
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.
Check whether a particular Data can be shown in the given view.
Used by DataDisplayHandler during view dispatch when calling show(). Should only be called if handlesType(data) == true.
Implements DataDisplayHandler.
Visualize the given data in the given view.
Should only be called if (handlesType(data) == true) && (canBeShownInView(data, view) == true).
Implements DataDisplayHandler.
Remove the given data from the given view.
data beyond pointer comparison because the instance may already in the process of deletion when calling this function. Implements DataDisplayHandler.
|
overridevirtual |
Called if a view associated with this DataDisplayHandler is destroyed.
Reimplemented from DataDisplayHandler.
|
overridevirtual |
Provides an optional QtWidgets-based GUI to configure display options for the given data shown in view.
This function is used to enable InteractiveViewOptionsOverlay showing a suitable GUI for all data shown in its corresponding view. The default implementation returns nullptr.
Reimplemented from DataDisplayHandler.