26 mActive(false), mServices(services)
116 threshold->setValueRange(
DoubleRange(image->getMin(), image->getMax(), 1));
117 int oldLower = threshold->getValue();
120 if ((image->getMin() > oldLower )||( oldLower > image->getMax() )||( oldLower<=1 ))
122 int initLower =
::ceil(
double(image->getMin()) +
double(image->getRange())/10);
123 threshold->setValue(initLower);
134 threshold->setValueRange(
DoubleRange(image->getMin(), image->getMax(), 1));
136 int initLower =
::ceil(
double(image->getMin()) +
double(image->getRange())/10);
137 int initUpper = image->getMax();
138 threshold->setValue(Eigen::Vector2d(initLower, initUpper));
virtual void initialize(QDomElement root, QString uid="")
std::vector< SelectDataStringPropertyBasePtr > mInputTypes
QDomElement mCopiedOptions
virtual std::vector< SelectDataStringPropertyBasePtr > getOutputTypes()
Vector3D ceil(const Vector3D &a)
virtual void createInputTypes()=0
boost::shared_ptr< class VisServices > VisServicesPtr
virtual bool preProcess()
void updateThresholdPairFromImageChange(QString uid, DoublePairPropertyPtr threshold)
FilterImpl(VisServicesPtr services)
Utility class for describing a bounded numeric range.
boost::shared_ptr< class Image > ImagePtr
std::vector< DataPtr > mCopiedInput
std::vector< PropertyPtr > mOptionsAdapters
PatientModelServicePtr patientService()
virtual std::vector< PropertyPtr > getOptions()
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
ImagePtr getCopiedInputImage(int index=0)
virtual void setActive(bool on)
virtual void createOptions()=0
boost::shared_ptr< class DoubleProperty > DoublePropertyPtr
virtual QString getUid() const
std::vector< SelectDataStringPropertyBasePtr > mOutputTypes
boost::shared_ptr< class DoublePairProperty > DoublePairPropertyPtr
virtual std::vector< SelectDataStringPropertyBasePtr > getInputTypes()
virtual void createOutputTypes()=0
void updateThresholdFromImageChange(QString uid, DoublePropertyPtr threshold)
virtual QString getType() const =0
Namespace for all CustusX production code.