Salome HOME
Corrections of examples path after install with scbi
[modules/hydro.git] / src / HYDROData / HYDROData_Object.h
index 0c217f274a6464e8e44d93c5271e4c7de578453b..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.
@@ -166,7 +164,7 @@ public:
 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( Geometry );
@@ -189,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();
@@ -197,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.