|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
26 mActive(false), mServices(services)
108 return boost::dynamic_pointer_cast<Image>(
mCopiedInput[index]);
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 setActive(bool on)
Namespace for all CustusX production code.
virtual void initialize(QDomElement root, QString uid="")
std::vector< DataPtr > mCopiedInput
virtual void createOptions()=0
virtual void createInputTypes()=0
boost::shared_ptr< class VisServices > VisServicesPtr
FilterImpl(VisServicesPtr services)
std::vector< SelectDataStringPropertyBasePtr > mOutputTypes
virtual void createOutputTypes()=0
std::vector< SelectDataStringPropertyBasePtr > mInputTypes
QDomElement mCopiedOptions
ImagePtr getCopiedInputImage(int index=0)
boost::shared_ptr< class DoubleProperty > DoublePropertyPtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
boost::shared_ptr< class DoublePairProperty > DoublePairPropertyPtr
boost::shared_ptr< class Image > ImagePtr
void updateThresholdPairFromImageChange(QString uid, DoublePairPropertyPtr threshold)
virtual QString getUid() const
virtual std::vector< PropertyPtr > getOptions()
Vector3D ceil(const Vector3D &a)
virtual std::vector< SelectDataStringPropertyBasePtr > getInputTypes()
virtual QString getType() const =0
PatientModelServicePtr patientService()
virtual bool preProcess()
void updateThresholdFromImageChange(QString uid, DoublePropertyPtr threshold)
Utility class for describing a bounded numeric range.
std::vector< PropertyPtr > mOptionsAdapters
virtual std::vector< SelectDataStringPropertyBasePtr > getOutputTypes()