Salome HOME
Renamed SHAPER_CONFIG_FILE to PLUGINS_CONFIG_FILE
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintFillet.h
index 8701917978856768b09c5c6f6c6b477fa75f7124..6a1dfa8f09f14b13914dc1d81c594f5eebaa8573 100644 (file)
@@ -44,6 +44,10 @@ class SketchPlugin_ConstraintFillet : public SketchPlugin_ConstraintBase
   /// \brief Request for initialization of data model of the feature: adding all attributes
   SKETCHPLUGIN_EXPORT virtual void initAttributes();
 
+  /// Called on change of any argument-attribute of this object
+  /// \param theID identifier of changed attribute
+  SKETCHPLUGIN_EXPORT virtual void attributeChanged(const std::string& theID);
+
   /// Returns the AIS preview
   SKETCHPLUGIN_EXPORT virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious);
 
@@ -53,6 +57,24 @@ class SketchPlugin_ConstraintFillet : public SketchPlugin_ConstraintBase
 
   /// \brief Use plugin manager for features creation
   SketchPlugin_ConstraintFillet();
+
+  /// \return base points list;
+  SKETCHPLUGIN_EXPORT const std::list<AttributePtr> basePoints() const {return myBasePoints;};
+
+  /// \return base edges list;
+  SKETCHPLUGIN_EXPORT const std::list<FeaturePtr> baseEdges() const {return myBaseEdges;};
+
+  /// \return result edges list;
+  SKETCHPLUGIN_EXPORT const std::list<FeaturePtr> resultEdges() const {return myResultEdges;};
+
+private:
+  std::list<AttributePtr> myBasePoints; ///< list of base points
+  std::list<FeaturePtr> myBaseEdges;      ///< list of objects the fillet is based
+  std::list<FeaturePtr> myResultEdges;      ///< list of result edges
+  std::list<FeaturePtr> myProducedFeatures; ///< list of constraints provided by the fillet
+  bool myListOfPointsChangedInCode; ///< flag to track that list of points changed in code
+  bool myRadiusChangedByUser; ///< flag to track that radius changed by user
+  bool myRadiusChangedInCode; ///< flag to track that radius changed in code
 };
 
 #endif