1 #line 1 "S:/jenkins/workspace/ufe-full-windows/ufe/include/attribute.h" 39 typedef std::shared_ptr<Attribute>
Ptr;
44 static constexpr
char kInvalid[] =
"Invalid";
45 static constexpr
char kBool[] =
"Bool";
46 static constexpr
char kInt[] =
"Int";
47 static constexpr
char kFloat[] =
"Float";
48 static constexpr
char kDouble[] =
"Double";
49 static constexpr
char kString[] =
"String";
50 static constexpr
char kColorFloat3[] =
"ColorFloat3";
51 static constexpr
char kEnumString[] =
"EnumString";
52 static constexpr
char kInt3[] =
"Int3";
53 static constexpr
char kFloat3[] =
"Float3";
54 static constexpr
char kDouble3[] =
"Double3";
55 static constexpr
char kGeneric[] =
"Generic";
74 virtual bool hasValue()
const = 0;
83 virtual Type type()
const = 0;
97 typedef std::shared_ptr<AttributeGeneric>
Ptr;
105 virtual
std::
string nativeType() const = 0;
114 typedef std::shared_ptr<AttributeEnumString>
Ptr;
123 virtual
std::
string get() const = 0;
126 virtual
void set(const
std::
string& value) = 0;
144 typedef std::shared_ptr<TypedAttribute<T>>
Ptr;
152 virtual T
get() const = 0;
155 virtual
void set(const T& value) = 0;
std::shared_ptr< Attribute > Ptr
Typed attribute template for creating a specialized type.
Attribute(const SceneItem::Ptr &)
Constructor.
Attribute which has a list of strings as enumerated values.
std::string string(const Path &path)
Definition of macros for symbol visibility.
std::shared_ptr< AttributeEnumString > Ptr
const SceneItem::Ptr fItem
std::shared_ptr< TypedAttribute< T > > Ptr
std::shared_ptr< AttributeGeneric > Ptr
Typed vector template for creating a specialized vector.
virtual Type type() const =0
Abstract base class for undoable commands.
Abstract base class for Attribute interface.
std::shared_ptr< SceneItem > Ptr
std::vector< std::string > EnumValues
Generic attribute which doesn't match any defined type.