11 #ifndef CXSPACEPROPERTYBASE_H_ 12 #define CXSPACEPROPERTYBASE_H_ 14 #include "cxResourceExport.h" 16 #include <boost/shared_ptr.hpp> 19 #include <QStringList> 39 virtual QString getDisplayName()
const = 0;
43 return QVariant(this->getValue().
toString());
50 virtual QString
getUid()
const {
return this->getDisplayName()+
"_uid"; }
51 virtual bool setValue(
const Space& value) = 0;
52 virtual Space getValue()
const = 0;
70 return std::vector<Space>();
74 return internal.toString();
87 #endif // CXSPACEPROPERTYBASE_H_
virtual bool isReadOnly() const
virtual bool getAllowOnlyValuesInRange() const
std::string toString(T const &value)
converts any type to a string
virtual QVariant getValueAsVariant() const
Superclass for all data adapters.
boost::shared_ptr< SpacePropertyBase > SpacePropertyBasePtr
virtual QString convertInternal2Display(Space internal)
range of value. Use if data is constrained to a set.
virtual void setValueFromVariant(QVariant val)
virtual QString convertRefObjectInternal2Display(QString internal)
virtual QString getHelp() const
return a descriptive help string for the data, used for example as a tool tip.
Identification of a Coordinate system.
virtual ~SpacePropertyBase()
virtual QString getUid() const
virtual std::vector< Space > getValueRange() const
static CoordinateSystem fromString(QString text)
Namespace for all CustusX production code.