Attribute which has a list of strings as enumerated values.
More...
#include <attribute.h>
|
static constexpr char | kInvalid [] = "Invalid" |
|
static constexpr char | kBool [] = "Bool" |
|
static constexpr char | kInt [] = "Int" |
|
static constexpr char | kFloat [] = "Float" |
|
static constexpr char | kDouble [] = "Double" |
|
static constexpr char | kString [] = "String" |
|
static constexpr char | kColorFloat3 [] = "ColorFloat3" |
|
static constexpr char | kColorFloat4 [] = "ColorFloat4" |
|
static constexpr char | kFilename [] = "Filename" |
|
static constexpr char | kEnumString [] = "EnumString" |
|
static constexpr char | kInt3 [] = "Int3" |
|
static constexpr char | kFloat2 [] = "Float2" |
|
static constexpr char | kFloat3 [] = "Float3" |
|
static constexpr char | kFloat4 [] = "Float4" |
|
static constexpr char | kDouble3 [] = "Double3" |
|
static constexpr char | kMatrix3d [] = "Matrix3d" |
|
static constexpr char | kMatrix4d [] = "Matrix4d" |
|
static constexpr char | kGeneric [] = "Generic" |
|
static constexpr char | kLocked [] = "Locked" |
|
Attribute which has a list of strings as enumerated values.
Definition at line 234 of file attribute.h.
◆ EnumValues
◆ Ptr
◆ Attribute() [1/3]
◆ Attribute() [2/3]
Ufe::Attribute::Attribute |
( |
const Attribute & |
| ) |
|
|
delete |
No copy or move constructor/assignment.
◆ Attribute() [3/3]
◆ get()
virtual std::string Ufe::AttributeEnumString::get |
( |
| ) |
const |
|
pure virtual |
◆ getEnumValues()
virtual EnumValues Ufe::AttributeEnumString::getEnumValues |
( |
| ) |
const |
|
pure virtual |
- Returns
- The list of allowed enum values for this attribute.
◆ isDefault()
virtual bool Ufe::AttributeEnumString::isDefault |
( |
| ) |
const |
|
pure virtual |
Returns true if this attribute value was never set and is still at the default value.
◆ reset()
virtual void Ufe::AttributeEnumString::reset |
( |
| ) |
|
|
pure virtual |
Reset the attribute value to its default setting.
◆ resetCmd()
Return a command for undo / redo that resets the attribute value. The returned command is not executed; it is up to the caller to call execute(). The default implementation stores undo/redo data in an AttributeInfo that allows reconstructing a stale Attribute. Executing the command will throw if reconstruction fails or leads to an incorrectly typed attribute.
◆ set()
virtual void Ufe::AttributeEnumString::set |
( |
const std::string & |
value | ) |
|
|
pure virtual |
◆ setCmd()
Return a command for undo / redo that sets the attribute value. The returned command is not executed; it is up to the caller to call execute(). The default implementation stores undo/redo data in an AttributeInfo that allows reconstructing a stale Attribute. Executing the command will throw if reconstruction fails or leads to an incorrectly typed attribute.
◆ type()
Type Ufe::AttributeEnumString::type |
( |
| ) |
const |
|
finalvirtual |
The documentation for this class was generated from the following file: