Go to the documentation of this file.
41 void setValue(
const std::vector<Base::MColor>& clist);
42 void setValue(
const std::vector<Base::Color>& clist);
50 const std::vector<Base::MColor>&
getValue()
const;
virtual bool isEqual(const Property *) const
compare properties
bool setValueFromVariant(const Core::Variant &value)
void copyValue(Core::Property *p)
virtual void save(Base::AbstractWriter &writer, Base::PersistenceVersion &save_version)
This method is used to save properties or very small amounts of data to an XML document.
bool setValueFromVariant(const Core::Variant &value)
void copyValue(Core::Property *p)
virtual bool setKeyValue(const std::string &name, const Core::Variant &value)
Possible values: "r" (int) , "g" (int) , "b" (int)
virtual std::map< std::string, Core::Variant > getKeyValueMap() const
Returns all keys and their values of this property.
const std::vector< Base::MColor > & getValue() const
void setValue(const Base::Color &c)
Definition: Persistence.h:13
void setValue(const std::vector< Base::Color > &clist)
virtual bool isEqual(const Property *) const
compare properties
virtual void save(Base::AbstractWriter &writer, Base::PersistenceVersion &save_version)
This method is used to save properties or very small amounts of data to an XML document.
virtual void paste(const Core::Property &from) override
Paste the value from the property (mainly for Undo/Redo and transactions)
virtual Core::Property * copy(void) const override
Returns a new copy of the property (mainly for Undo/Redo and transactions). The copy has no container...
Definition: PropertyColor.h:8
virtual void restore(Base::AbstractXMLReader &reader, Base::PersistenceVersion &version)
This method is used to restore properties from an XML document.
void setValue(int r, int g, int b)
Core::Variant getVariant(void) const
Definition: AbstractXMLReader.h:7
virtual Core::Property * copy(void) const override
Returns a new copy of the property (mainly for Undo/Redo and transactions). The copy has no container...
Definition: PropertyColor.h:37
const Base::Color & getValue() const
void addColor(const Base::MColor &c)
LX_CORE_EXPORT Version & version
Definition: Property.h:72
Core::Variant getVariant(void) const
Definition: PropertyColor.h:52
virtual void paste(const Core::Property &from) override
Paste the value from the property (mainly for Undo/Redo and transactions)
std::vector< Base::MColor > _colorList
Definition: PropertyColor.h:61
DECLARE_OPTIONAL_PROPERTY_HEADER(PropertyColorOpt, Core::PropertyColor)
virtual void restore(Base::AbstractXMLReader &reader, Base::PersistenceVersion &version)
This method is used to restore properties from an XML document.
#define TYPESYSTEM_HEADER()
define for subclassing Base::BaseClass
Definition: Base.h:12
DECLARE_PROPERTY_FACTORY(PropertyAxis1_Factory, Core::PropertyAxis1)
void setValue(const std::vector< Base::MColor > &clist)