FAST
3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
|
Go to the documentation of this file.
3 #include "FASTExport.hpp"
17 #define CREATE_ATTRIBUTE_VALUE_OBJECT(NAME, TYPE) \
18 class AttributeValue##NAME : public AttributeValue { \
20 AttributeValue##NAME(TYPE value) : mValue(value) {}; \
37 mID(id), mName(name), mDescription(description), mType(type) {
40 void setValue(std::shared_ptr<AttributeValue> value) {
41 if(mValues.size() == 0) {
42 mValues.push_back(value);
48 std::shared_ptr<AttributeValue>
getValue()
const {
52 void setValues(std::vector<std::shared_ptr<AttributeValue>> values) {
56 std::vector<std::shared_ptr<AttributeValue>>
getValues()
const {
72 void parseInput(std::string input);
74 void parseBooleanInput(std::string input);
75 void parseStringInput(std::string input);
76 void parseFloatInput(std::string input);
77 void parseIntegerInput(std::string input);
81 std::string mDescription;
83 std::vector<std::shared_ptr<AttributeValue> > mValues;
void setValue(std::shared_ptr< AttributeValue > value)
Definition: Attribute.hpp:40
AttributeType
Definition: Attribute.hpp:10
Attribute(std::string id, std::string name, std::string description, AttributeType type)
Definition: Attribute.hpp:36
std::string getID() const
Definition: Attribute.hpp:64
std::vector< std::shared_ptr< AttributeValue > > getValues() const
Definition: Attribute.hpp:56
AttributeType getType() const
Definition: Attribute.hpp:68
@ ATTRIBUTE_TYPE_STRING
Definition: Attribute.hpp:10
void setValues(std::vector< std::shared_ptr< AttributeValue >> values)
Definition: Attribute.hpp:52
Definition: Attribute.hpp:34
Definition: AffineTransformation.hpp:7
@ ATTRIBUTE_TYPE_BOOLEAN
Definition: Attribute.hpp:10
std::shared_ptr< AttributeValue > getValue() const
Definition: Attribute.hpp:48
#define CREATE_ATTRIBUTE_VALUE_OBJECT(NAME, TYPE)
Definition: Attribute.hpp:17
@ ATTRIBUTE_TYPE_INTEGER
Definition: Attribute.hpp:10
@ ATTRIBUTE_TYPE_FLOAT
Definition: Attribute.hpp:10
std::string getName() const
Definition: Attribute.hpp:60
virtual ~AttributeValue()
Definition: Attribute.hpp:14
Definition: Attribute.hpp:12