13 #include <QPushButton> 18 #include <vtkCellArray.h> 45 this->setLayout(
new QVBoxLayout);
63 this->updateDifferenceLines();
67 void ICPRegistrationBaseWidget::initialize()
69 delete this->layout();
74 this->initializeProperties();
81 connect(
mObscuredListener.get(), SIGNAL(obscured(
bool)),
this, SLOT(obscuredSlot(
bool)));
85 void ICPRegistrationBaseWidget::initializeProperties()
88 "Ignore LTS, instead attempt to find optimal value",
93 "Fraction of points in the lesser point set to use during each iteration.",
98 "Number of iterations",
103 "Differential RMS stop threshold, between iterations",
108 "Maximum time spent iterating, in seconds",
113 "Data outside a bounding box defined by the intersection\n" 114 "of the fixed/moving by a margin are cropped.",
119 "Use only linear iteration",
124 "Display metric and difference lines between point sets",
126 connect(mDisplayProgress.get(), &
DoubleProperty::changed,
this, &ICPRegistrationBaseWidget::onDisplayProgressChanged);
129 "Registration is done one iteration at a time.",
133 std::vector<PropertyPtr> ICPRegistrationBaseWidget::getAllProperties()
135 std::vector<PropertyPtr> properties;
148 void ICPRegistrationBaseWidget::obscuredSlot(
bool obscured)
209 bool success =
false;
223 std::cout <<
"v2v linear result:\n" << linearTransform << std::endl;
226 if ((std::isnan)(linearTransform(0,0)))
244 void ICPRegistrationBaseWidget::updateDifferenceLines()
256 void ICPRegistrationBaseWidget::onDisplayProgressChanged()
258 this->updateDifferenceLines();
QString qstring_cast(const T &val)
cxResource_EXPORT ProfilePtr profile()
static BoolPropertyPtr initialize(const QString &uid, QString name, QString help, bool value, QDomNode root=QDomNode())
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
Utility class for describing a bounded numeric range.
QDomElement getElement()
return the current element
void reportWarning(QString msg)
boost::shared_ptr< class RegServices > RegServicesPtr
void changed()
emit when the underlying data value is changed: The user interface will be updated.
static DoublePropertyPtr initialize(const QString &uid, QString name, QString help, double value, DoubleRange range, int decimals, QDomNode root=QDomNode())
void reportDebug(QString msg)
Namespace for all CustusX production code.