X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Image.h;h=16a691a64b23afd3e0ab956a0b8ab69657cf0ef0;hb=f108c7fd8c3b2dbb8c263b14456a31f8dd1d0921;hp=4966616e7626a22b5349bfe9bc49d17960f392b4;hpb=a51a8a154799a4a022e4f8d5f8547585102e83f7;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Image.h b/src/HYDROData/HYDROData_Image.h index 4966616e..16a691a6 100644 --- a/src/HYDROData/HYDROData_Image.h +++ b/src/HYDROData/HYDROData_Image.h @@ -41,6 +41,22 @@ public: */ HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const; + /** + * Updates object state. + * Reimplemented to update an Image object in the data structure. + * Call this method whenever you made changes for operator or reference objects. + * If it is changed, sets "MustBeUpdated" flag to other depended images. + * \param theIsForce force reupdating of data object + */ + HYDRODATA_EXPORT virtual void Update( const bool theIsForce = true ); + + /** + * Returns data of object wrapped to QVariant. + * Reimplemented to wrap and return saved image. + * Transformation are applied to result image. + */ + HYDRODATA_EXPORT virtual QVariant GetDataVariant(); + /** * Stores the image * \param theImage new image @@ -118,7 +134,7 @@ public: * Appends reference to other object (image or polyline). * \param theReferenced the object referenced by this */ - HYDRODATA_EXPORT void AppendReference(Handle(HYDROData_Object) theReferenced); + HYDRODATA_EXPORT void AppendReference( const Handle(HYDROData_Object)& theReferenced ); /** * Returns the number of referenced objects