ImFusion SDK 4.3
CalibrationMatrixWidget Class Reference

#include <ImFusion/US/CalibrationMatrixWidget.h>

Specialization of TransformationMatrixWidget that allows the user to read and modify the calibration matrix of image sets that use a FrameGeometry to identify where in the image the tip of the ultrasound probe is, and allowing to express the calibration matrix independent of the imaging depth. More...

+ Inheritance diagram for CalibrationMatrixWidget:

Detailed Description

Specialization of TransformationMatrixWidget that allows the user to read and modify the calibration matrix of image sets that use a FrameGeometry to identify where in the image the tip of the ultrasound probe is, and allowing to express the calibration matrix independent of the imaging depth.

Public Member Functions

 CalibrationMatrixWidget (const mat4 &resetMat=mat4(), QWidget *parent=nullptr, Pose::TransformationConvention convention=Pose::FROMWORLD, Flags< Options > options=All, std::unique_ptr< FrameGeometry > frameGeometry=nullptr)
 CalibrationMatrixWidget constructor.
 
bool isCalibrationConventionToImageCenter () const
 Returns true, if the calibration is to the center of the image and false, if it is to the tip of the probe.
 
void setCalibrationConventionToImageCenter (const bool flag)
 Sets whether the calibration is to the center of the image (true) or to the tip of the probe (false)
 
const FrameGeometryframeGeometry () const
 Returns the frame geometry used for conversion between calibration conventions.
 
void setFrameGeometry (std::unique_ptr< FrameGeometry > fg)
 Sets the frame geometry to be used for conversion between calibration conventions.
 
void setMatrixSilent (const mat4 &matrix) override
 Overrides TransformationMatrixWidget::setMatrixSilent to take current calibration convention into account.
 
- Public Member Functions inherited from TransformationMatrixWidget
 TransformationMatrixWidget (const mat4 &resetMat=mat4::Identity(), QWidget *parent=nullptr, Pose::TransformationConvention convention=Pose::FROMWORLD, const std::string &worldName="World", const std::string &dataName="Data", Flags< Type > type=Affine, Flags< Options > options=All)
 TransformationMatrixWidged constructor.
 
mat4 matrix () const
 Returns the transformation matrix, in the constructor convention.
 
void setTranslationSilent (const vec3 &trans)
 Sets a translation without triggering signals, in the constructor convention.
 
void setRotationSilent (const vec3 &rot)
 Sets a rotation without triggering signals, in the constructor convention.
 
void setScaleSilent (const vec3 &scale)
 Sets a scale without triggering signals, in the constructor convention.
 
void setShearSilent (const vec3 &shear)
 Sets a shear without triggering signals, in the constructor convention.
 
void setIs2dTransform (bool is2d)
 Limits the transformation to 2D.
 
void setShownConvention (Pose::TransformationConvention convention)
 Sets the convention shown in the widget.
 
bool isReadOnly () const
 Returns whether UI elements are read-only.
 
void setReadOnly (const bool flag)
 Sets all UI elements to read-only.
 
- 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

- Public Types inherited from TransformationMatrixWidget
enum  Type {
  Translation = 1 << 0 , Rotation = 1 << 1 , ScaleShear = 1 << 2 , Rigid = Translation | Rotation ,
  Affine = Translation | Rotation | ScaleShear
}
 Bitset enumeration to define how to show the menu. More...
 
enum  Options {
  Tools = 1 << 0 , CopyPaste = 1 << 1 , GlobalLocal = 1 << 2 , ToFromWorld = 1 << 3 ,
  All = 0xFF
}
 
- Public Slots inherited from TransformationMatrixWidget
void setMatrixAnimated (const mat4 &matrix)
 Sets the matrix that is displayed in the dialog with an animation.
 
void setResetMatrix (const mat4 &matrix)
 Sets the matrix that will be set when the reset button is pressed. Does not change the currently displayed matrix.
 
void resetMatrix ()
 Sets transformation matrix to reset matrix.
 
void setCoordinateFrameNames (const std::string &worldName, const std::string &dataName)
 Updates the names of the coordinate frames in the dropbox list.
 
- Signals inherited from TransformationMatrixWidget
void matrixChanged (const mat4 &matrix) const
 Signals when the transformation matrix changes.
 
void coordinateChanged (bool isLocal) const
 Signals when the coordinate changes between local/global.
 
- Protected Member Functions inherited from SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.
 
- Protected Attributes inherited from TransformationMatrixWidget
QVBoxLayout * m_layout = nullptr
 

Constructor & Destructor Documentation

◆ CalibrationMatrixWidget()

CalibrationMatrixWidget ( const mat4 & resetMat = mat4(),
QWidget * parent = nullptr,
Pose::TransformationConvention convention = Pose::FROMWORLD,
Flags< Options > options = All,
std::unique_ptr< FrameGeometry > frameGeometry = nullptr )
explicit

CalibrationMatrixWidget constructor.

Sets the reset matrix, and is modular with types and options. Takes ownership of the FrameGeometry.

Parameters
resetMatSets the convention to be used with this matrix.
parentGUI parent to which to attach the widget
conventionCalls to matrix() will return the matrix in this convention.
optionsThe options to show in the widget.
frameGeometryThe frame geometry of the underlying data.

Member Function Documentation

◆ setMatrixSilent()

void setMatrixSilent ( const mat4 & matrix)
overridevirtual

Overrides TransformationMatrixWidget::setMatrixSilent to take current calibration convention into account.

Reimplemented from TransformationMatrixWidget.


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