Salome HOME
Define IsParametrical and BreakLinks methods
authorvsv <vsv@opencascade.com>
Fri, 20 Dec 2019 12:54:12 +0000 (15:54 +0300)
committervsv <vsv@opencascade.com>
Fri, 20 Dec 2019 12:54:12 +0000 (15:54 +0300)
idl/GEOM_Gen.idl
src/GEOM_I/GEOM_Object_i.hh

index fe78db3961c0633f04d8363260afd003e91e4e6a..eac174954952ede3ddac774c1b7af85c9bc109ed 100644 (file)
@@ -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
index 5e7ea8d45ee5aacb55397a88b82ca0a35e50f02d..a3d61e2058b2fad56a811c2dae10b9a36c7f1cbb 100644 (file)
@@ -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: