34 #include <boost/bind.hpp> 50 TrainingWidget(services,
"NeuroSimulatorWidget",
"Neuro Simulator", parent),
51 mPluginContext(context)
72 this->changeWorkflowToImport();
75 void NeuroTrainingWidget::setUSSimulatorInput(QString usUid)
79 CX_LOG_DEBUG() <<
"NeuroTrainingWidget::setUSSimulatorInput: usUid is empty, not changing existing.";
84 if(simulatorStreamerService)
86 CX_LOG_INFO() <<
"Setting US simulator input to: " << usUid;
95 QWidget* registrationWidget = findMainWindowChildWithObjectName<QWidget*>(
"org_custusx_registration_gui_widget");
96 if(registrationWidget)
108 this->startTracking();
110 this->changeWorkflowToRegistration();
111 this->setSurfaceForPointCloudRegistration(
"Kaisa");
115 void NeuroTrainingWidget::setSurfaceForPointCloudRegistration(QString uidPart)
119 CX_LOG_INFO() <<
"Setting registration fixed data to: " << mesh->getUid();
120 mServices->registration()->setFixedData(mesh);
125 this->changeWorkflowToUSAcquisition();
130 this->changeWorkflowToUSAcquisition();
136 this->changeWorkflowToNavigation();
139 void NeuroTrainingWidget::startTracking()
144 void NeuroTrainingWidget::changeWorkflowToImport()
146 mServices->state()->setWorkFlowState(
"PatientDataUid");
149 void NeuroTrainingWidget::changeWorkflowToRegistration()
151 mServices->state()->setWorkFlowState(
"RegistrationUid");
154 void NeuroTrainingWidget::changeWorkflowToUSAcquisition()
156 mServices->state()->setWorkFlowState(
"IntraOpImagingUid");
159 void NeuroTrainingWidget::changeWorkflowToNavigation()
161 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.