![]() |
ImFusion SDK 4.3
|
#include <ImFusion/US/RawDataController.h>
Controller for ultrasound B-mode and raw data handling. More...
Inheritance diagram for RawDataController:Controller for ultrasound B-mode and raw data handling.
This controller creates a table using the images read by a RawDataAlgorithm. This algorithm is created anew every time new data is selected, and dynamically updates the table upon creation. The table has three columns, B-Mode, raw components and a name, for every image inside our data.
Through the use of this table, the user can select what B-Mode data and raw component they want to view, as well as what they want to export. The data is visualized in the main window in two views, one for B-Mode images, and one for the raw data it comes from.
Public Slots | |
| void | onUpdateLabel () |
| Performs scan conversion on the label image data and displays it in the viewer. | |
Public Member Functions | |
| RawDataController () | |
| Starts the controller without an algorithm. | |
Public Member Functions inherited from DataController | |
| std::string | title () const override |
| Returns the shown widget title if the controller is shown in a mode that supports this (e.g. | |
| std::string | factoryName () const |
| Returns the name used to identify this DataController in the factory. | |
| void | setFactoryName (const std::string &factoryName) |
| Sets the name used to identify this DataController in the factory. | |
| std::vector< Location > | supportedLocations () const override |
| Returns the list of locations in which this controller is allowed to be placed by the parent MainWindowBase. | |
| Location | preferredLocation () const override |
| Returns the preferred location in which the parent MainWindowBase should place this controller. | |
Public Member Functions inherited from Controller | |
| void | setMainWindowBase (MainWindowBase *mw) |
Complete the initialization by providing the parent MainWindowBase instance hosting the controller by setting m_main and m_disp and eventually call init(). | |
| virtual void | onLocationChanged (Location newLocation) |
| Callback function called by the parent MainWindowBase/ControllerDecorator whenever the place was changed. | |
| Location | location () const |
| Convenience function to query the current controller Location from the parent ControllerDecorator. | |
| ControllerDecorator * | getDecorator () const |
Convenience function to return m_main->getControllerDecorator(this) if m_main is set or nullptr otherwise. | |
| template<typename T> | |
| T * | getDecorator () const |
Convenience function to dynamic_cast the return value of getDecorator() to a derived type. | |
Public Member Functions inherited from Configurable | |
| virtual void | configure (const Properties *p) |
| Configure this object instance by de-serializing the given Properties. | |
| virtual void | configuration (Properties *p) const |
| Serialize the current object configuration into the given Properties object. | |
| virtual void | configureDefaults () |
| Retrieve the properties of this object, replaces values with their defaults and sets it again. | |
| void | registerParameter (ParameterBase *param) |
| Register the given Parameter or SubProperty, so that it will be configured during configure()/configuration(). | |
| void | unregisterParameter (const ParameterBase *param) |
| Remove the given Parameter or SubProperty from the list of registered parameters. | |
| Configurable (const Configurable &rhs) | |
| Configurable (Configurable &&rhs) noexcept | |
| Configurable & | operator= (const Configurable &) |
| Configurable & | operator= (Configurable &&) noexcept |
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. | |
Static Public Member Functions | |
| static bool | createCompatible (const DataList &data, DataController **a=0) |
Static Public Member Functions inherited from DataController | |
| static bool | createCompatible (const DataList &, DataController **=0) |
| Factory interface for DataControllers: If data is compatible with data controller return true. | |
Protected Member Functions | |
| void | init () override |
| Two-step initialization function to be implemented by subclasses. | |
| void | createTable () |
| Dynamically create a table from the contents of m_alg: rendered images, raw data images and labels, if present. | |
Protected Member Functions inherited from DataController | |
| virtual bool | supportsToolBar () const |
| Subclasses can return true if they support showing their GUI in Location::ToolBar. | |
Protected Member Functions inherited from SignalReceiver | |
| void | disconnectAll () |
| Disconnects all existing connections. | |
Protected Attributes | |
| DisplayWidgetMultiAdapter | m_dispAdapter |
| The internal display adapter. | |
| RawDataAlgorithm * | m_alg |
| The internal algorithm used for raw data processing. It resets when new data arrives and is selected. | |
| std::unique_ptr< GlFanGeometry > | m_fan |
| The fan for the viewed data. | |
| ImageView2DAdapter | m_view |
| View to display the data in. | |
| std::vector< std::pair< const GlPointBasedAnnotation *, std::unique_ptr< InteractiveObject > > > | m_annot |
| Annotation-Interactive objects pairs. | |
| std::vector< std::unique_ptr< SharedImageSet > > | m_converted |
| Vector of already converted images. | |
| std::shared_ptr< PointsOnImage > | m_landmarks |
| Optional landmarks originating from Labels. | |
| int | m_currentlyShownBMode = 0 |
| start counting from 0 | |
| int | m_currentlyShownRaw = 1 |
| can be made to a vector when we allow fusion | |
| Ui_RawDataController * | m_ui = nullptr |
| Pointer to the UI. | |
Protected Attributes inherited from DataController | |
| std::string | m_factoryName |
Protected Attributes inherited from Controller | |
| MainWindowBase * | m_main = nullptr |
| The parent MainWindowBase instance hosting this Controller. | |
| DisplayWidgetMulti * | m_disp = nullptr |
The main DisplayWidget instance, convenience shortcut for m_main->display(). | |
Protected Attributes inherited from Configurable | |
| std::vector< Param > | m_params |
| List of all registered Parameter and SubProperty instances. | |
Additional Inherited Members | |
Public Types inherited from Controller | |
| enum class | Location : int { Unknown = -1 , Naked = 0 , PrimaryDock = 1 , SecondaryDock = 2 , Detached = 3 , ToolBar = 4 , UserLocation = 100 } |
| Enumeration of possible placement/decoration options of a Controller. More... | |
Public Attributes inherited from Controller | |
| Signal | signalTitleChanged |
| Signal emitted when the title() has changed. | |
Public Attributes inherited from Configurable | |
| Signal | signalParametersChanged |
Emitted whenever one of the registered Parameters' or SubPropertys' signalValueChanged signal was emitted. | |
Starts the controller without an algorithm.
The algorithm will be created from the selected data instead. When new data is selected, the algorithm will change if possible.
|
overrideprotectedvirtual |
Two-step initialization function to be implemented by subclasses.
This function is called by setMainWindowBase() after the m_disp and m_main attributes have been set and hence a complete initialization of the controller is possible at this point.
Reimplemented from DataController.