ImFusion SDK 4.3
PointCorrespondencesWidget Class Reference

#include <ImFusion/GUI/PointCorrespondencesWidget.h>

Widget that displays point correspondences in a table with buttons that allows to add and remove correspondences. More...

+ Inheritance diagram for PointCorrespondencesWidget:

Detailed Description

Widget that displays point correspondences in a table with buttons that allows to add and remove correspondences.

Update to the underlying points are automatically reflected in the UI

Public Slots

void onRowEdited (QStandardItem *)
 

Signals

void correspondenceRenamed (int)
 

Public Member Functions

 PointCorrespondencesWidget (PointCorrespondences *correspondences, PointsOnDataManipulator *first, PointsOnDataManipulator *second)
 
void init (DisplayWidgetMulti *disp)
 
void exportPoints (AnnotationModel *annotationModel)
 
void setShowNames (bool show)
 If set to true will show names next to the points in the views.
 
void setShowError (bool show)
 If set to true (default) will show the registration error in the widget.
 
void setShowFitError (bool show)
 If set to true will show the mean rigid fit error as column in the widget. (default: false)
 
void setShowVisualGuide (bool show)
 If set to true a visual guide will be rendered to help with setting the point correspondences for a particular target. (default: false)
 
ItemViewWidgetitemViewWidget () const
 
- 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

void connectToTable ()
 
void computeNames ()
 
void updateErrorLabel ()
 
void onCorrespondencesChanged (int first, int last)
 
bool updateRow (int index)
 Updates the row of the table for correspondence index. Returns false if the row has been deleted.
 
void updateItemStyle (int index, std::optional< double > fitError=std::nullopt)
 Update custom style of item.
 
void onFitErrorThresholdChanged (double fitErrorThreshold)
 Update threshold and run styling of items.
 
void onFitErrorTypeChanged (int fitErrorType)
 Update fit error type.
 
void onVisualGuideDataChanged (int visualGuideDataSelection)
 Update suspect data for visual guide.
 
- Protected Member Functions inherited from SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.
 

Protected Attributes

PointCorrespondencesm_correspondences = nullptr
 
std::vector< PointsOnDataManipulator * > m_manipulators
 
ItemViewWidgetm_widget = nullptr
 
std::unique_ptr< CorrespondencesItemControl > m_itemControl
 
std::vector< QPushButton * > m_addPointButtons
 
std::array< std::string, 2 > m_manipulatorNames
 
std::array< std::string, 2 > m_manipulatorShortNames
 
QCheckBox * m_showNamesCheckbox = nullptr
 
QCheckBox * m_showFitErrorCheckbox = nullptr
 
QCheckBox * m_showVisualGuideCheckbox = nullptr
 
QComboBox * m_visualGuideDataCombobox = nullptr
 
QGroupBox * m_visualGuideGroupBox = nullptr
 
QLabel * m_visualGuideDataLabel = nullptr
 
PointCorrespondencesVisualGuide m_visualGuide
 
QComboBox * m_fitErrorTypeCombobox = nullptr
 
QGroupBox * m_fitErrorGroupBox = nullptr
 
QLabel * m_fitErrorLabel = nullptr
 
QLineEdit * m_fitErrorThresholdEdit = nullptr
 
QLabel * m_fitErrorThresholdLabel = nullptr
 
double m_fitErrorThreshold = -1
 
bool m_showFitError = false
 
QLabel * m_errorLabel = nullptr
 
bool m_showError = true
 
DisplayWidgetMultim_disp = nullptr
 
std::vector< QMetaObject::Connection > m_tableConnections
 

Constructor & Destructor Documentation

◆ PointCorrespondencesWidget()

Exceptions
std::runtime_errorif correspondences, first or second are nullptr.

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