DoublePropertyPtr DilationFilter::getDilationRadiusOption(QDomElement root) { DoublePropertyPtr retval = DoubleProperty::initialize("Dilation radius (mm)", "", "Set dilation radius in mm", 1, DoubleRange(1, 20, 1), 0, root); retval->setGuiRepresentation(DoublePropertyBase::grSLIDER); return retval; }
DoublePropertyPtr AirwaysFilter::getNoiseLevelOption(QDomElement root) { DoublePropertyPtr retval = DoubleProperty::initialize("Noise level", "", "Select the amount of noise present in the image", 0.5, DoubleRange(0.0, 2, 0.5), 1, root); retval->setGuiRepresentation(DoubleProperty::grSLIDER); return retval; }
DoublePropertyPtr AirwaysFilter::getSensitivityOption(QDomElement root) { DoublePropertyPtr retval = DoubleProperty::initialize("Sensitivity", "", "Select sensitivity for the segmentation", 0.85, DoubleRange(0.01, 1, 0.01), 2, root); retval->setGuiRepresentation(DoubleProperty::grSLIDER); return retval; }
DoublePropertyBasePtr NetworkConnectionHandle::createPortOption() { DoublePropertyPtr retval; int defval = mClient->getConnectionInfo().port; retval = DoubleProperty::initialize("port", "Port", "Network Port (default "+QString::number(defval)+")", defval, DoubleRange(1024, 49151, 1), 0, mOptions.getElement()); retval->setGuiRepresentation(DoublePropertyBase::grSPINBOX); retval->setAdvanced(true); retval->setGroup("Connection"); connect(retval.get(), &Property::changed, this, &NetworkConnectionHandle::onPropertiesChanged); return retval; }