CRSPCHelloState::CRSPCHelloState(CRSPlayerConnection *ownerConnection): m_ownerConnection(ownerConnection) { setStateName("Hello State"); registerSlot(ireon::net::rspcCodes::scHelloLogin, (CGenericSlot) &CRSPCHelloState::onLoginRequest); registerSlot(ireon::net::rspcCodes::scHelloRegister, (CGenericSlot) &CRSPCHelloState::onRegisterRequest); }
CPCRCHelloState::CPCRCHelloState(CPCRSConnection *ownerConnection): m_ownerConnection(ownerConnection) { setStateName("Hello State"); registerSlot(ireon::net::pcrsCodes::scSendVersionInfo, (CGenericSlot) &CPCRCHelloState::onSendVersionSignal, ireon::net::netAddress::atInternalAddress); registerSlot(ireon::net::pcrsCodes::scCheckVersionOk, (CGenericSlot) &CPCRCHelloState::onCheckVersionOk); registerSlot(ireon::net::pcrsCodes::scCheckVersionOld, (CGenericSlot) &CPCRCHelloState::onCheckVersionOld); registerSlot(ireon::net::pcrsCodes::scSendRegistrationRequest, (CGenericSlot) &CPCRCHelloState::onRegisterSignal, ireon::net::netAddress::atInternalAddress); registerSlot(ireon::net::pcrsCodes::scSendLoginRequest, (CGenericSlot) &CPCRCHelloState::onLoginSignal, ireon::net::netAddress::atInternalAddress); }
CRSPCWaitRemoveAckState::CRSPCWaitRemoveAckState(CRSPlayerConnection *ownerConnection): m_ownerConnection(ownerConnection) { setStateName("WaitRemoveAcc State"); // notice addrTypeMask -- signal only available for internal calls registerSlot(ireon::net::rspcCodes::scCharRemAck, (CGenericSlot) &CRSPCWaitRemoveAckState::onRemoveAck, netAddress::atInternalAddress); }
Server::Server() : XmlRpcServer(){ listen(QHostAddress::Any, glb::port); registerSlot(this, SLOT(join(const QVariant&)),"/xmlrpcNode."); registerSlot(this, SLOT(signOff(const QVariant&)), "/xmlrpcNode."); registerSlot(this, SLOT(startElection()), "/xmlrpcNode."); registerSlot(this, SLOT(rpcElectionRequest(const QVariant&)), "/xmlrpcNode."); registerSlot(this, SLOT(hostBroadcast(const QVariant&)), "/xmlrpcNode."); registerSlot(this, SLOT(startConcatProcess()), "/xmlrpcNode."); registerSlot(this, SLOT(rpcLifeSign(const QVariant&)), "/xmlrpcNode."); registerSlot(this, SLOT(checkConcatResult()), "/xmlrpcNode."); registerSlot(this, SLOT(echo(const QVariant&)), "/xmlrpcNode."); registerSlot(this, SLOT(rpcRequestString()), "/xmlrpcNode."); registerSlot(this, SLOT(rpcOverrideString(const QVariant&)), "/xmlrpcNode."); concatObject = new WordConcatenation(); critSectionBusy = isRunning = false; xmlRpcClient = new Client(glb::host, glb::port); xmlRpcClient->init(); }
void BronchoscopyRegistrationWidget::setup() { mOptions = profile()->getXmlSettings().descend("bronchoscopyregistrationwidget"); mSelectMeshWidget = StringPropertySelectMesh::New(mServices->patient()); mSelectMeshWidget->setValueName("Centerline: "); //this->initializeTrackingService(); connect(mServices->patient().get(),&PatientModelService::patientChanged,this,&BronchoscopyRegistrationWidget::clearDataOnNewPatient); mProcessCenterlineButton = new QPushButton("Process centerline"); connect(mProcessCenterlineButton, SIGNAL(clicked()), this, SLOT(processCenterlineSlot())); mProcessCenterlineButton->setToolTip(this->defaultWhatsThis()); // mBronchoscopeRegistrationPtr = BronchoscopeRegistrationPtr(new BronchoscopePositionProjection()); // mProjectionCenterlinePtr->createMaxDistanceToCenterlineOption(mOptions.getElement()); mRegisterButton = new QPushButton("Register"); connect(mRegisterButton, SIGNAL(clicked()), this, SLOT(registerSlot())); mRegisterButton->setToolTip(this->defaultWhatsThis()); mRecordTrackingWidget = new RecordTrackingWidget(mOptions.descend("recordTracker"), mServices->acquisition(), mServices, "bronc_path", this); mRecordTrackingWidget->getSessionSelector()->setHelp("Select bronchoscope path for registration"); mRecordTrackingWidget->getSessionSelector()->setDisplayName("Bronchoscope path"); mVerticalLayout->setMargin(0); mVerticalLayout->addWidget(new DataSelectWidget(mServices->view(), mServices->patient(), this, mSelectMeshWidget)); this->selectSubsetOfBranches(mOptions.getElement()); this->createMaxNumberOfGenerations(mOptions.getElement()); this->useLocalRegistration(mOptions.getElement()); this->createMaxLocalRegistrationDistance(mOptions.getElement()); // PropertyPtr maxLocalRegistrationDistance = mProjectionCenterlinePtr->getMaxLocalRegistrationDistanceOption(); mVerticalLayout->addWidget(new CheckBoxWidget(this, mUseSubsetOfGenerations)); mVerticalLayout->addWidget(createDataWidget(mServices->view(), mServices->patient(), this, mMaxNumberOfGenerations)); mVerticalLayout->addWidget(mProcessCenterlineButton); mVerticalLayout->addWidget(mRecordTrackingWidget); mVerticalLayout->addWidget(new CheckBoxWidget(this, mUseLocalRegistration)); mVerticalLayout->addWidget(createDataWidget(mServices->view(), mServices->patient(), this, mMaxLocalRegistrationDistance)); mVerticalLayout->addWidget(mRegisterButton); mVerticalLayout->addStretch(); }
LandmarkPatientRegistrationWidget::LandmarkPatientRegistrationWidget(RegServices services, QWidget* parent, QString objectName, QString windowTitle) : LandmarkRegistrationWidget(services, parent, objectName, windowTitle) { mLandmarkTableWidget->hide(); mLandmarkListener->useI2IRegistration(false); mFixedProperty.reset(new StringPropertyRegistrationFixedImage(services.registrationService, services.patientModelService)); connect(services.patientModelService.get(), &PatientModelService::rMprChanged, this, &LandmarkPatientRegistrationWidget::setModified); mRegisterButton = new QPushButton("Register", this); mRegisterButton->setToolTip("Perform registration"); connect(mRegisterButton, SIGNAL(clicked()), this, SLOT(registerSlot())); mVerticalLayout->addWidget(new LabeledComboBoxWidget(this, mFixedProperty)); QHBoxLayout* regLayout = new QHBoxLayout; regLayout->addWidget(mRegisterButton); mVerticalLayout->addWidget(mAvarageAccuracyLabel); mVerticalLayout->addLayout(regLayout); mVerticalLayout->addStretch(); }
CRSCCHelloState::CRSCCHelloState(CRSCMConnection *ownerConnection): m_ownerConnection(ownerConnection) { setStateName("CM Connection Hello State"); registerSlot(ireon::net::rsccCodes::scHelloLogin, (CGenericSlot) &CRSCCHelloState::onLoginRequest); }
CGenericState::CGenericState(): m_stateName("Undefined State") { registerSlot(ireon::net::rcCommandNotFound, (CGenericSlot) &CGenericState::onUnknownCommandResponse); }
CTestClientState (CNetConnection *ownerConnection): CGenericState(ownerConnection) { setStateName("Client Test State"); registerSlot(testConversation1, static_cast<CGenericSlot> (&CTestClientState::onTest1)); }