*/
class HYDROData_Image : public HYDROData_Object
{
+protected:
+ /**
+ * Enumeration of tags corresponding to the persistent object parameters.
+ */
+ enum DataTag
+ {
+ DataTag_First = HYDROData_Object::DataTag_First + 100, ///< first tag, to reserve
+ DataTag_Operator, ///< name of the operator that must be executed for image update
+ DataTag_TrsfPoints, ///< image transformation points (3 input + 3 output)
+ DataTag_FilePath ///< image imported file path
+ };
+
public:
DEFINE_STANDARD_RTTI(HYDROData_Image);
*/
HYDRODATA_EXPORT virtual const ObjectKind GetKind() const {return KIND_IMAGE;}
+ /**
+ * Dump Image object to Python script representation.
+ */
+ HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const;
+
/**
* Stores the image
* \param theImage new image
*/
HYDRODATA_EXPORT void SetImage(const QImage& theImage);
+ /**
+ * Load the image from file
+ * \param theFilePath path to image
+ */
+ HYDRODATA_EXPORT bool LoadImage(const QString& theFilePath);
+
/**
* Returns the kept image
*/
HYDRODATA_EXPORT QImage Image();
+ /**
+ * Stores the image file path
+ * \param theFilePath image file path
+ */
+ HYDRODATA_EXPORT void SetFilePath(const QString& theFilePath);
+
+ /**
+ * Returns uploaded image file path
+ */
+ HYDRODATA_EXPORT QString GetFilePath() const;
+
/**
* Stores the image transformation
* \param theTrsf new transformation
/**
* Returns the kept transformation, or "identity" if not yet stored
*/
- HYDRODATA_EXPORT QTransform Trsf();
+ HYDRODATA_EXPORT QTransform Trsf() const;
/**
* Stores the image transformation points (3 input + 3 output)
QPoint& thePointCIn,
QPointF& thePointAOut,
QPointF& thePointBOut,
- QPointF& thePointCOut);
+ QPointF& thePointCOut) const;
/**
* Appends reference to other image.
* Returns the number of referenced images
* \return zero if there is no references
*/
- HYDRODATA_EXPORT int NbReferences();
+ HYDRODATA_EXPORT int NbReferences() const;
/**
* Returns reference by index.
* Returns the operator name
* \returns the name of the operator that must be executed for image update
*/
- HYDRODATA_EXPORT QString OperatorName();
+ HYDRODATA_EXPORT QString OperatorName() const;
/**
* Stores the operator arguments
* Returns the operator arguments
* \returns array that stores the operator arguments, needed for execution
*/
- HYDRODATA_EXPORT QByteArray Args();
+ HYDRODATA_EXPORT QByteArray Args() const;
/**
* Sets the "MustBeUpdated" flag: if image is depended on updated features.