]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fillet is macro
authornds <natalia.donis@opencascade.com>
Wed, 27 May 2015 12:00:51 +0000 (15:00 +0300)
committernds <natalia.donis@opencascade.com>
Wed, 27 May 2015 12:00:51 +0000 (15:00 +0300)
src/SketchPlugin/SketchPlugin_ConstraintFillet.cpp
src/SketchPlugin/SketchPlugin_ConstraintFillet.h
src/SketchPlugin/plugin-Sketch.xml

index 5f23e1e8861bba3a45c05557cadb2b396ec8a694..bcee3fe0d551e3b04df9a348357f615132c493ce 100644 (file)
@@ -307,6 +307,10 @@ AISObjectPtr SketchPlugin_ConstraintFillet::getAISObject(AISObjectPtr thePreviou
   return anAIS;
 }
 
+bool SketchPlugin_ConstraintFillet::isMacro() const
+{
+  return false;
+}
 
 
 // =========   Auxiliary functions   =================
index 5b7cd49468fc496a6f04990d0c38fcc7b314ce41..8701917978856768b09c5c6f6c6b477fa75f7124 100644 (file)
@@ -47,6 +47,10 @@ class SketchPlugin_ConstraintFillet : public SketchPlugin_ConstraintBase
   /// Returns the AIS preview
   SKETCHPLUGIN_EXPORT virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious);
 
+  /// Reimplemented from ModelAPI_Feature::isMacro().
+  /// \returns true
+  SKETCHPLUGIN_EXPORT virtual bool isMacro() const;
+
   /// \brief Use plugin manager for features creation
   SketchPlugin_ConstraintFillet();
 };
index 59104a8f92f303ea43b82dfe9826dca284136c55..e246821a9ee7f2eedf93dc666728c2124bcac064 100644 (file)
           <validator id="PartSet_DifferentObjects"/>
         </sketch_shape_selector>
 
-        <doublevalue label="Value" tooltip="Fillet radius" id="ConstraintValue" min="0">
+        <doublevalue label="Value" tooltip="Fillet radius" id="ConstraintValue" min="0" default="1" use_reset="false">
           <validator id="GeomValidators_Positive"/>
         </doublevalue>
         <validator id="PartSet_FilletSelection"/>