bool USAcquisition::getWriteColor() { PropertyPtr angio = this->getReconstructer()->getParam("Angio data"); bool writeColor = angio->getValueAsVariant().toBool() || !settings()->value("Ultrasound/8bitAcquisitionData").toBool(); return writeColor; }
void UsReconstructionImplService::onServiceAdded(ReconstructionMethodService* service) { QStringList range = mParams->getAlgorithmAdapter()->getValueRange(); range << service->getName(); mParams->getAlgorithmAdapter()->setValueRange(range); // select algo if none selected PropertyPtr algoName = mParams->getParameter("Algorithm"); if (algoName->getValueAsVariant().value<QString>().isEmpty()) algoName->setValueFromVariant(service->getName()); }