|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
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;
64 virtual QString getHelp()
const
70 return std::vector<Space>();
72 virtual QString convertInternal2Display(
Space internal)
74 return internal.toString();
87 #endif // CXSPACEPROPERTYBASE_H_
virtual bool isReadOnly() const
Namespace for all CustusX production code.
virtual bool getAllowOnlyValuesInRange() const
boost::shared_ptr< SpacePropertyBase > SpacePropertyBasePtr
virtual QVariant getValueAsVariant() const
virtual QString getUid() const
static CoordinateSystem fromString(QString text)
virtual QString convertRefObjectInternal2Display(QString internal)
Superclass for all data adapters.
virtual std::vector< Space > getValueRange() const
virtual void setValueFromVariant(QVariant val)
virtual ~SpacePropertyBase()
Identification of a Coordinate system.