20 #ifndef ModelAPI_AttributeImage_H_
21 #define ModelAPI_AttributeImage_H_
24 #include <ModelAPI_Attribute.h>
40 MODELAPI_EXPORT
virtual void setTexture(
const int theWidth,
42 const std::list<unsigned char>& theByteArray,
43 const std::string& theFormat,
44 const bool sendUpdated =
true) = 0;
50 MODELAPI_EXPORT
virtual bool texture(
int& theWidth,
52 std::list<unsigned char>& theByteArray,
53 std::string& theFormat) = 0;
56 virtual void copyTo(std::shared_ptr<ModelAPI_AttributeImage> theTarget)
const = 0;
59 MODELAPI_EXPORT
static std::string
typeId()
76 typedef std::shared_ptr<ModelAPI_AttributeImage> AttributeImagePtr;
API for the attribute that contains binary data.
Definition: ModelAPI_AttributeImage.h:37
virtual MODELAPI_EXPORT ~ModelAPI_AttributeImage()
To virtually destroy the fields of successors.
Definition: ModelAPI_AttributeImage.cpp:29
virtual MODELAPI_EXPORT void setTexture(const int theWidth, const int theHeight, const std::list< unsigned char > &theByteArray, const std::string &theFormat, const bool sendUpdated=true)=0
Defines the value of the image attribute.
virtual MODELAPI_EXPORT std::string attributeType()
Returns the type of this class of attributes, not static method.
Definition: ModelAPI_AttributeImage.cpp:23
virtual MODELAPI_EXPORT bool texture(int &theWidth, int &theHeight, std::list< unsigned char > &theByteArray, std::string &theFormat)=0
Returns the value of the image attribute.
virtual MODELAPI_EXPORT bool hasTexture()=0
Returns true, if texture width and height are non-zero.
MODELAPI_EXPORT ModelAPI_AttributeImage()
Objects are created for features automatically.
Definition: ModelAPI_AttributeImage.cpp:33
virtual void copyTo(std::shared_ptr< ModelAPI_AttributeImage > theTarget) const =0
Copy the image data to the destination attribute.
static MODELAPI_EXPORT std::string typeId()
Returns the type of this class of attributes.
Definition: ModelAPI_AttributeImage.h:59
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34