Salome HOME
Bug #478: unresolved conflicts appear again when Edit calculation case in Manual...
[modules/hydro.git] / src / HYDROPy / HYDROData_ShapesGroup.sip
index ca2ccdeec3ac7ee19c620c49d7d534cb2f44c38b..62389c788aa6577f5777999ba1f86cca3508701e 100644 (file)
@@ -31,6 +31,24 @@ class HYDROData_ShapesGroup : public HYDROData_Entity
 #include <HYDROData_ShapesGroup.h>
 %End
 
+%ConvertToSubClassCode
+    // HYDROData_Entity sub-classes provide a unique kind ID.
+    switch ( sipCpp->GetKind() )
+    {
+      case KIND_SPLITTED_GROUP:
+        sipClass = sipClass_HYDROData_SplittedShapesGroup;
+        break;
+        
+      case KIND_UNKNOWN:
+        sipClass = sipClass_HYDROData_Entity;
+        break;
+
+      default:
+        // We don't recognise the type.
+        sipClass = NULL;
+    }
+%End
+
 public:
   // Public methods to work with reference Shapes