Go to the documentation of this file.
34 void setValue(
const Draw::Texture2Transform& ttf,
bool calculateTextureScaleFactor =
false);
38 const Draw::Texture2Transform&
getValue()
const;
47 std::shared_ptr<Core::DbgInfo>
getDbgInfo()
const override;
53 bool _calculateTextureScaleFactor =
false;
61 void setValue(
const Draw::TextureCoordinateMapping& tcm);
65 const Draw::TextureCoordinateMapping&
getValue()
const;
83 void setValue(
const Draw::TextureCoordinateFunction& tcf);
87 const Draw::TextureCoordinateFunction&
getValue()
const;
105 void setValue(
const std::map<int, Draw::Texture2>& texList);
115 const std::map<int, Draw::Texture2>&
getValue(
void)
const;
128 std::map<int, Draw::Texture2> _textureMap;
129 Draw::Texture2 _defaultTexture;
130 int _nextAvailableId = 1;
virtual bool isEqual(const Property *) const
compare properties
void copyValue(Core::Property *p)
bool isCalculateTextureScaleFactor() const
const Draw::Texture2 & getTextureById(int id)
bool hasTexture(const Draw::Texture2 &tex)
Draw::TextureCoordinateFunction _textureCoordinateFunction
Definition: PropertyTexture2.h:97
virtual void restoreDocFile(Base::Reader &reader, const Base::String &tmpdir)
This method is used to restore large amounts of data from a binary file.
void setCalculateTextureScaleFactor(bool onoff)
virtual void paste(const Core::Property &from) override
Paste the value from the property (mainly for Undo/Redo and transactions)
const std::map< int, Draw::Texture2 > & getValue(void) const
bool setValueFromVariant(const Core::Variant &value)
bool setValueFromVariant(const Core::Variant &value)
const Draw::Texture2 getValue() const
virtual void saveDocFile(Base::AbstractWriter &writer, const Base::String &filename, const Base::String &tmpdir)
This method is used to save large amounts of data to a binary file.
Definition: PropertyTexture2.h:57
Core::Variant getVariant(void) const
void setValue(const Draw::TextureCoordinateFunction &tcf)
void setValue(const std::map< int, Draw::Texture2 > &texList)
bool setValueFromVariant(const Core::Variant &value)
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...
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 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: PropertyTexture2.h:101
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...
void copyValue(Core::Property *p)
const Draw::TextureCoordinateMapping & getValue() const
virtual bool isEqual(const Property *) const
compare properties
void setValue(const Draw::Texture2 &mat)
Definition: Persistence.h:13
void setValue(const Draw::TextureCoordinateMapping &tcm)
void setValue(const Draw::Texture2Transform &ttf, bool calculateTextureScaleFactor=false)
virtual void restore(Base::AbstractXMLReader &reader, Base::PersistenceVersion &version)
This method is used to restore properties from an XML document.
Definition: PropertyTexture2.h:30
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.
void copyValue(Core::Property *p)
void copyValue(Core::Property *p)
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...
virtual bool isEqual(const Property *) const
compare properties
const Draw::Texture2Transform & getValue() const
Definition: AbstractXMLReader.h:7
void restore(Base::AbstractXMLReader &reader, Base::PersistenceVersion &version)
This method is used to restore properties from an XML document.
Core::Variant getVariant(void) const
virtual bool isEqual(const Property *) const
compare properties
virtual void restore(Base::AbstractXMLReader &reader, Base::PersistenceVersion &version)
This method is used to restore properties from an XML document.
Definition: PropertyTexture2.h:79
std::shared_ptr< Core::DbgInfo > getDbgInfo() const override
Returns the debug information for this property.
void copyValue(Core::Property *p)
Draw::TextureCoordinateMapping _textureCoordinateMapping
Definition: PropertyTexture2.h:75
Core::Variant getVariant(void) const
Draw::Texture2Transform _texture2Transform
Definition: PropertyTexture2.h:52
bool setValueFromVariant(const Core::Variant &)
Definition: PropertyTexture2.h:106
void restore(Base::AbstractXMLReader &reader, Base::PersistenceVersion &version)
This method is used to restore properties from an XML document.
LX_CORE_EXPORT Version & version
Definition: Property.h:72
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.
Core::Variant getVariant(void) const
void restore(Base::AbstractXMLReader &reader, Base::PersistenceVersion &version)
This method is used to restore properties from an XML document.
virtual void paste(const Core::Property &from) override
Paste the value from the property (mainly for Undo/Redo and transactions)
A Utf-16 (windows) or ucs4 (unix) encoded string class.
Definition: String.h:18
virtual void paste(const Core::Property &from) override
Paste the value from the property (mainly for Undo/Redo and transactions)
Definition: PropertyTexture2.h:8
virtual bool isEqual(const Property *) const
compare properties
const Draw::TextureCoordinateFunction & getValue() const
#define TYPESYSTEM_HEADER()
define for subclassing Base::BaseClass
Definition: Base.h:12
Core::Variant getVariant(void) const
DECLARE_PROPERTY_FACTORY(PropertyAxis1_Factory, Core::PropertyAxis1)
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.
int addTexture(const Draw::Texture2 &tex)
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 Core::Property * copy(void) const override
Returns a new copy of the property (mainly for Undo/Redo and transactions). The copy has no container...
bool setValueFromVariant(const Core::Variant &value)
virtual void paste(const Core::Property &from) override
Paste the value from the property (mainly for Undo/Redo and transactions)