Salome HOME
Refs #289 - Spline profile is represented in OCC view as polyline profile
[modules/hydro.git] / src / HYDROData / HYDROData_Object.h
index 0e19876dcbfd7ea34af317416e94e731b7190253..642ce06f797d0b78328a1a5afca6be1fb4ec6274 100644 (file)
@@ -27,11 +27,12 @@ protected:
     DataTag_First = HYDROData_Entity::DataTag_First + 100, ///< first tag, to reserve
     DataTag_TopShape,
     DataTag_Shape3D,
-    DataTag_AltitudeObject,     ///< reference altitude object
-    DataTag_FillingColor,       ///< filling color of geometrical object
-    DataTag_BorderColor,        ///< border color of geometrical object
-    DataTag_Object3D,           ///< child 3D object
-    DataTag_EdgesGroup,         ///< child group objects
+    DataTag_AltitudeObject,      ///< reference altitude object
+    DataTag_FillingColor,        ///< filling color of geometrical object
+    DataTag_BorderColor,         ///< border color of geometrical object
+    DataTag_Object3D,            ///< child 3D object
+    DataTag_EdgesGroup,          ///< child group objects
+    DataTag_ChildAltitudeObject, ///< child altitude object
   };
 
 public:
@@ -174,6 +175,26 @@ protected:
   HYDRODATA_EXPORT virtual void checkAndSetObject3D();
 
 
+  /**
+   * Returns the type of child altitude object.
+   * 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.
+   */
+  HYDRODATA_EXPORT virtual ObjectKind getAltitudeObjectType() const;
+
+  /**
+   * Checks and if necessary create child altitude object.
+   */
+  HYDRODATA_EXPORT virtual void checkAndSetAltitudeObject();
+
+  /**
+   * Return the child altitude object.
+   */
+  HYDRODATA_EXPORT virtual Handle(HYDROData_IAltitudeObject) getChildAltitudeObject() const;
+
+
   /**
    * Create new one child group object.
    */