From: vsv Date: Fri, 20 Dec 2019 12:54:12 +0000 (+0300) Subject: Define IsParametrical and BreakLinks methods X-Git-Tag: V9_5_0a1^2^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e2fe8c13602419e70e70ba96ac7a9e0b4ff05675;p=modules%2Fgeom.git Define IsParametrical and BreakLinks methods --- diff --git a/idl/GEOM_Gen.idl b/idl/GEOM_Gen.idl index fe78db396..eac174954 100644 --- a/idl/GEOM_Gen.idl +++ b/idl/GEOM_Gen.idl @@ -509,6 +509,17 @@ module GEOM */ GEOM_Object GetMainShape(); + /* + * \brief Returns true if the current object has connection to a parametrical model + * which can be modified by parameters change. + */ + boolean IsParametrical(); + + /* + * \brief Breaks links to parametrical mode for parametrical shape + */ + void BreakLinks(); + }; //# GEOM_Field diff --git a/src/GEOM_I/GEOM_Object_i.hh b/src/GEOM_I/GEOM_Object_i.hh index 5e7ea8d45..a3d61e205 100644 --- a/src/GEOM_I/GEOM_Object_i.hh +++ b/src/GEOM_I/GEOM_Object_i.hh @@ -81,6 +81,11 @@ class GEOM_I_EXPORT GEOM_Object_i : public virtual POA_GEOM::GEOM_Object, public virtual bool IsShape(); + virtual bool IsParametrical() { return false; } + + virtual void BreakLinks() {} + + Handle(::GEOM_Object) GetImpl() { return _impl; } private: