From e2fe8c13602419e70e70ba96ac7a9e0b4ff05675 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 20 Dec 2019 15:54:12 +0300 Subject: [PATCH] Define IsParametrical and BreakLinks methods --- idl/GEOM_Gen.idl | 11 +++++++++++ src/GEOM_I/GEOM_Object_i.hh | 5 +++++ 2 files changed, 16 insertions(+) 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: -- 2.30.2