13 #include <boost/bind.hpp> 29 TrainingWidget(services,
"NeuroSimulatorWidget",
"Neuro Simulator", parent),
30 mPluginContext(context)
51 this->changeWorkflowToImport();
54 void NeuroTrainingWidget::setUSSimulatorInput(QString usUid)
58 CX_LOG_DEBUG() <<
"NeuroTrainingWidget::setUSSimulatorInput: usUid is empty, not changing existing.";
63 if(simulatorStreamerService)
65 CX_LOG_INFO() <<
"Setting US simulator input to: " << usUid;
74 QWidget* registrationWidget = findMainWindowChildWithObjectName<QWidget*>(
"org_custusx_registration_gui_widget");
75 if(registrationWidget)
87 this->startTracking();
89 this->changeWorkflowToRegistration();
90 this->setSurfaceForPointCloudRegistration(
"Kaisa");
94 void NeuroTrainingWidget::setSurfaceForPointCloudRegistration(QString uidPart)
98 CX_LOG_INFO() <<
"Setting registration fixed data to: " << mesh->getUid();
99 mServices->registration()->setFixedData(mesh);
104 this->changeWorkflowToUSAcquisition();
109 this->changeWorkflowToUSAcquisition();
115 this->changeWorkflowToNavigation();
118 void NeuroTrainingWidget::startTracking()
123 void NeuroTrainingWidget::changeWorkflowToImport()
125 mServices->state()->setWorkFlowState(
"PatientDataUid");
128 void NeuroTrainingWidget::changeWorkflowToRegistration()
130 mServices->state()->setWorkFlowState(
"RegistrationUid");
133 void NeuroTrainingWidget::changeWorkflowToUSAcquisition()
135 mServices->state()->setWorkFlowState(
"IntraOpImagingUid");
138 void NeuroTrainingWidget::changeWorkflowToNavigation()
140 mServices->state()->setWorkFlowState(
"NavigationUid");
Abstract class. Interface to Simulated Streamers.
virtual void setImageToStream(QString imageUid)=0
boost::shared_ptr< class RegServices > RegServicesPtr
Abstract class. Interface to Streamers.
boost::shared_ptr< class Mesh > MeshPtr
static StreamerService * getStreamerServiceFromType(QString name, ctkPluginContext *context)
Namespace for all CustusX production code.