在custusX中的自定义插件中,我使用mServices->patientModelService->getPatientLandmarks()->setLandmark
以编程方式更改某些地标。我想用已有的音量进行注册。如何访问CustusX插件中的registrationService?
在LandmarkPatientRegistrationWidget
in org.custusx.registration.method.landmark
,performRegistration()
要求mServices.registrationService->doPatientRegistration()
。
但是,我不确定我的方法是否可以获得registrationService
实例。
我到目前为止已将org_custusx_registration
添加到CMakeLists.txt文件中,并添加了"cxRegistrationService.h"
和<cxRegServices.h>
作为包含。
现在我可以定义一个RegServices mRegServices
并使用插件的mContext
在构造函数中初始化它。
但是,我要创建一个自己的注册服务还是可以访问已经存在的?我如何访问已经运行的注册服务?