22 mTypeRegexp(typeRegexp),
23 mPatientModelService(patientModelService),
39 std::map<QString, DataPtr>::iterator iter, current;
41 for (iter=input.begin(); iter!=input.end(); )
44 if (!current->second->getType().contains(reg))
65 std::map<QString, DataPtr>::iterator iter, current;
66 for (iter=input.begin(); iter!=input.end(); )
69 if (!current->second->getUid().contains(reg))
81 std::map<QString, DataPtr>::iterator iter, current;
82 for (iter=input.begin(); iter!=input.end(); )
85 ImagePtr image = boost::dynamic_pointer_cast<
Image>(current->second);
86 if(image && !image->is2D())
114 for (
unsigned i=0; i<sorted.size(); ++i)
115 retval << sorted[i]->
getUid();
QString qstring_cast(const T &val)
void setOnly2DImagesFilter(bool only2D)
SelectDataStringPropertyBase(PatientModelServicePtr patientModelService, QString typeRegexp=".*")
std::map< QString, DataPtr > filterOnUid(std::map< QString, DataPtr > input, QString regexp) const
std::map< QString, DataPtr > filterImagesOn2D(std::map< QString, DataPtr > input, bool only2D) const
virtual void setTypeRegexp(QString regexp)
virtual QStringList getValueRange() const
virtual QString getDisplayName() const
name of data entity. Used for display to user.
boost::shared_ptr< class Image > ImagePtr
virtual void setValueName(const QString name)
static std::map< QString, DataPtr > filterOnType(std::map< QString, DataPtr > input, QString regexp)
boost::shared_ptr< class Data > DataPtr
std::vector< T > sortOnGroupsAndAcquisitionTime(std::map< QString, T > input)
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
void changed()
emit when the underlying data value is changed: The user interface will be updated.
virtual void setHelp(QString text)
virtual DataPtr getData() const
virtual QString getUid() const
virtual void setUidRegexp(QString regexp)
virtual QString convertInternal2Display(QString internal)
range of value. Use if data is constrained to a set.
virtual QString getValue() const =0
get the data value.
PatientModelServicePtr mPatientModelService
Namespace for all CustusX production code.