Salome HOME
Sorting alphabetically.
[modules/hydro.git] / src / HYDROData / HYDROData_Image.h
index 4966616e7626a22b5349bfe9bc49d17960f392b4..16a691a64b23afd3e0ab956a0b8ab69657cf0ef0 100644 (file)
@@ -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