X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_ShapesGroup.sip;h=62389c788aa6577f5777999ba1f86cca3508701e;hb=aef25fd825d5add8a8cc2cdf43db3f24e5d4a90f;hp=ca2ccdeec3ac7ee19c620c49d7d534cb2f44c38b;hpb=185fe26122f4932fe3603721213c40bb14668896;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_ShapesGroup.sip b/src/HYDROPy/HYDROData_ShapesGroup.sip index ca2ccdee..62389c78 100644 --- a/src/HYDROPy/HYDROData_ShapesGroup.sip +++ b/src/HYDROPy/HYDROData_ShapesGroup.sip @@ -31,6 +31,24 @@ class HYDROData_ShapesGroup : public HYDROData_Entity #include %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