36 "Point Cloud Registration")
42 mSpaceListenerMoving =
mServices->spaceProvider()->createListener();
43 mSpaceListenerFixed =
mServices->spaceProvider()->createListener();
44 mSpaceListenerMoving->setSpace(
mServices->spaceProvider()->getPr());
50 mFixedImage->setValueName(
"Select Surface");
51 mFixedImage->setHelp(
"Select a surface model to register against.");
64 this->connectAutoRegistration();
68 QVBoxLayout* layout =
new QVBoxLayout(
this);
72 QVBoxLayout* trackLayout = this->createVBoxInGroupBox(layout,
"Tracking Recorder");
73 trackLayout->setMargin(0);
74 trackLayout->addWidget(mRecordTrackingWidget);
82 void RMPCFromPointerWidget::connectAutoRegistration()
87 &RMPCFromPointerWidget::queuedAutoRegistration,
88 Qt::QueuedConnection);
92 QVBoxLayout* RMPCFromPointerWidget::createVBoxInGroupBox(QVBoxLayout* parent, QString header)
94 QWidget* widget =
new QWidget(
this);
95 QVBoxLayout* layout =
new QVBoxLayout(widget);
99 parent->addWidget(groupBox);
112 MeshPtr moving = this->getTrackerDataAsMesh();
113 QString logPath =
mServices->patient()->getActivePatientFolder() +
"/Logs/";
118 MeshPtr RMPCFromPointerWidget::getTrackerDataAsMesh()
126 moving->setVtkPolyData(trackerdata_r);
136 mSpaceListenerFixed->setSpace(
mServices->spaceProvider()->getD(fixed));
142 void RMPCFromPointerWidget::queuedAutoRegistration()
155 mServices->registration()->setLastRegistrationTime(QDateTime::currentDateTime());
156 QString text = QString(
"Contour from %1").arg(tool->getName());
157 mServices->registration()->addPatientRegistration(new_rMpr, text);
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
void fixedDataChanged(QString uid)
boost::shared_ptr< class Data > DataPtr
void activeToolChanged(const QString &uId)
vtkPolyDataPtr polydataFromTransforms(TimedTransformMap transformMap_prMt, Transform3D rMpr)
boost::shared_ptr< class RegServices > RegServicesPtr
void changed()
emit when the underlying data value is changed: The user interface will be updated.
vtkSmartPointer< vtkPolyData > vtkPolyDataPtr
static QString getTypeName()
boost::shared_ptr< class Mesh > MeshPtr
std::map< double, Transform3D > TimedTransformMap
XmlOptionFile descend(QString element) const
step one level down in the xml tree
Namespace for all CustusX production code.
boost::shared_ptr< class Tool > ToolPtr