CustusX  16.5.0-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::SpacePropertyBase Class Referenceabstract

#include <cxSpacePropertyBase.h>

Inheritance diagram for cx::SpacePropertyBase:
cx::Property cx::SpaceProperty

Public Member Functions

 SpacePropertyBase ()
 
virtual ~SpacePropertyBase ()
 
virtual QString getDisplayName () const =0
 name of data entity. Used for display to user. More...
 
virtual QVariant getValueAsVariant () const
 
virtual void setValueFromVariant (QVariant val)
 
virtual QString getUid () const
 
virtual bool setValue (const Space &value)=0
 set the data value. More...
 
virtual Space getValue () const =0
 get the data value. More...
 
virtual bool isReadOnly () const
 
virtual bool getAllowOnlyValuesInRange () const
 
virtual QString getHelp () const
 return a descriptive help string for the data, used for example as a tool tip. More...
 
virtual std::vector< SpacegetValueRange () const
 
virtual QString convertInternal2Display (Space internal)
 range of value. Use if data is constrained to a set. More...
 
virtual QString convertRefObjectInternal2Display (QString internal)
 
- Public Member Functions inherited from cx::Property
 Property ()
 
virtual ~Property ()
 
virtual bool getEnabled () const
 Get the enabled/disabled state of the Property. More...
 
virtual bool getAdvanced () const
 Get the advanced flag of the adapter. More...
 
virtual QString getGroup () const
 Flag the adapter as part of a group. More...
 

Additional Inherited Members

- Public Slots inherited from cx::Property
virtual bool setEnabled (bool enabled)
 Set the enabled/disabled state of the Property. More...
 
virtual bool setAdvanced (bool advanced)
 Set the advanced flag of the adapter. More...
 
virtual bool setGroup (QString name)
 Flag the adapter as part of a group. More...
 
- Signals inherited from cx::Property
void changed ()
 emit when the underlying data value is changed: The user interface will be updated. More...
 
- Static Public Member Functions inherited from cx::Property
static PropertyPtr findProperty (std::vector< PropertyPtr > properties, QString id)
 
- Protected Attributes inherited from cx::Property
bool mEnabled
 
bool mAdvanced
 
QString mGroup
 

Detailed Description

Definition at line 51 of file cxSpacePropertyBase.h.

Constructor & Destructor Documentation

cx::SpacePropertyBase::SpacePropertyBase ( )
inline

Definition at line 55 of file cxSpacePropertyBase.h.

virtual cx::SpacePropertyBase::~SpacePropertyBase ( )
inlinevirtual

Definition at line 56 of file cxSpacePropertyBase.h.

Member Function Documentation

virtual QString cx::SpacePropertyBase::convertInternal2Display ( Space  internal)
inlinevirtual

range of value. Use if data is constrained to a set.

conversion from internal value to display value

Definition at line 93 of file cxSpacePropertyBase.h.

virtual QString cx::SpacePropertyBase::convertRefObjectInternal2Display ( QString  internal)
inlinevirtual

Reimplemented in cx::SpaceProperty.

Definition at line 97 of file cxSpacePropertyBase.h.

virtual bool cx::SpacePropertyBase::getAllowOnlyValuesInRange ( ) const
inlinevirtual

Reimplemented in cx::SpaceProperty.

Definition at line 83 of file cxSpacePropertyBase.h.

virtual QString cx::SpacePropertyBase::getDisplayName ( ) const
pure virtual

name of data entity. Used for display to user.

Implements cx::Property.

Implemented in cx::SpaceProperty.

virtual QString cx::SpacePropertyBase::getHelp ( ) const
inlinevirtual

return a descriptive help string for the data, used for example as a tool tip.

Reimplemented in cx::SpaceProperty.

Definition at line 85 of file cxSpacePropertyBase.h.

virtual QString cx::SpacePropertyBase::getUid ( ) const
inlinevirtual

Implements cx::Property.

Reimplemented in cx::SpaceProperty.

Definition at line 71 of file cxSpacePropertyBase.h.

virtual Space cx::SpacePropertyBase::getValue ( ) const
pure virtual

get the data value.

Implemented in cx::SpaceProperty.

virtual QVariant cx::SpacePropertyBase::getValueAsVariant ( ) const
inlinevirtual

Implements cx::Property.

Definition at line 62 of file cxSpacePropertyBase.h.

virtual std::vector<Space> cx::SpacePropertyBase::getValueRange ( ) const
inlinevirtual

Reimplemented in cx::SpaceProperty.

Definition at line 89 of file cxSpacePropertyBase.h.

virtual bool cx::SpacePropertyBase::isReadOnly ( ) const
inlinevirtual

Reimplemented in cx::SpaceProperty.

Definition at line 79 of file cxSpacePropertyBase.h.

virtual bool cx::SpacePropertyBase::setValue ( const Space value)
pure virtual

set the data value.

Implemented in cx::SpaceProperty.

virtual void cx::SpacePropertyBase::setValueFromVariant ( QVariant  val)
inlinevirtual

Implements cx::Property.

Definition at line 66 of file cxSpacePropertyBase.h.


The documentation for this class was generated from the following file: