Salome HOME
Corrections of examples path after install with scbi
[modules/hydro.git] / src / HYDROData / HYDROData_Object.h
index 3b653ce773979455844256d81b1983b459a8443c..606cf2dc0d804a547a3810fa7fee13b2a04d6629 100644 (file)
 
 #include <HYDROData_Entity.h>
 
-DEFINE_STANDARD_HANDLE(HYDROData_Object, HYDROData_Entity)
-
 class TopoDS_Shape;
-class Handle(HYDROData_IAltitudeObject);
-class Handle(HYDROData_DummyObject3D);
-class Handle(HYDROData_ShapesGroup);
+class HYDROData_IAltitudeObject;
+class HYDROData_DummyObject3D;
+class HYDROData_ShapesGroup;
 
 /**\class HYDROData_Object
  * \brief The base class for all geometrical objects in the HYDRO module.
@@ -53,13 +51,13 @@ protected:
   };
 
 public:
-  DEFINE_STANDARD_RTTI(HYDROData_Object);
+  DEFINE_STANDARD_RTTIEXT(HYDROData_Object, HYDROData_Entity);
 
   /**
    * Updates the name of this object.
    * Reimplemented to update the names child groups.
    */
-  HYDRODATA_EXPORT virtual void SetName( const QString& theName );
+  HYDRODATA_EXPORT virtual void SetName( const QString& theName, bool isDefault = false );
 
   /**
    * Update the geometry object.
@@ -76,7 +74,7 @@ public:
    * Sets the "MustBeUpdated" flag: if object is depended on updated features.
    * Reimplemented to update the state of child 3D object.
    */
-  HYDRODATA_EXPORT virtual void SetToUpdate( bool theFlag );
+  HYDRODATA_EXPORT virtual void Changed( Geometry );
 
 
   /**
@@ -160,13 +158,16 @@ public:
   HYDRODATA_EXPORT bool IsSubmersible() const;
   HYDRODATA_EXPORT void SetIsSubmersible( bool ) const;
 
+  HYDRODATA_EXPORT virtual void GetBoundaries( QList<TopoDS_Shape>& theBoundShapes,
+                                               QStringList& theBoundNames ) const;
+
 protected:
 
   /**
-   * Creates new object in the internal data structure. Use higher level objects 
+   * Creates new object in the internal data structure. Use higher level objects
    * to create objects with real content.
    */
-  HYDRODATA_EXPORT HYDROData_Object();
+  HYDRODATA_EXPORT HYDROData_Object( Geometry );
 
   /**
    * Destructs properties of the object and object itself, removes it from the document.
@@ -186,7 +187,7 @@ protected:
 
   /**
    * Checks and if necessary create child 3D object.
-   * Reimplement this function in your subclass if you 
+   * Reimplement this function in your subclass if you
    * do not want to create child 3D object.
    */
   HYDRODATA_EXPORT virtual void checkAndSetObject3D();
@@ -194,7 +195,7 @@ protected:
 
   /**
    * Returns the type of child altitude object.
-   * Base implementation returns KIND_UNKNOWN, it means that child altitude 
+   * Base implementation returns KIND_UNKNOWN, it means that child altitude
    * object will not be created inside of checkAndSetAltitudeObject() function.
    * Reimplement this function in your subclass an return correct altitude
    * object type if you want to create child altitude object.