Salome HOME
Merge branch 'master' of salome:modules/shaper
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_ConstraintLength.h
index d6098af221cf8c12e60b629ff246c56b80c63a45..662e276ee0bf265fd7af21e00a70fda1b1c2f24e 100644 (file)
@@ -25,7 +25,7 @@ class GeomDataAPI_Point2D;
  *  SketchPlugin_Constraint::VALUE() (length) and SketchPlugin_Constraint::ENTITY_A() (segment),
  *  SketchPlugin_Constraint::FLYOUT_VALUE_PNT() (distance of a constraints handle)
  */
-class SketchPlugin_ConstraintLength : public SketchPlugin_ConstraintBase, public GeomAPI_ICustomPrs
+class SketchPlugin_ConstraintLength : public SketchPlugin_ConstraintBase
 {
  public:
   /// Length constraint kind
@@ -52,6 +52,10 @@ class SketchPlugin_ConstraintLength : public SketchPlugin_ConstraintBase, public
   /// \brief Request for initialization of data model of the feature: adding all attributes
   SKETCHPLUGIN_EXPORT virtual void initAttributes();
 
+  /// Retuns the parameters of color definition in the resources config manager
+  SKETCHPLUGIN_EXPORT virtual void colorConfigInfo(std::string& theSection, std::string& theName,
+                                                   std::string& theDefault);
+
   /// Returns the AIS preview
   SKETCHPLUGIN_EXPORT virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious);
 
@@ -64,10 +68,6 @@ class SketchPlugin_ConstraintLength : public SketchPlugin_ConstraintBase, public
   /// \param theID identifier of changed attribute
   SKETCHPLUGIN_EXPORT virtual void attributeChanged(const std::string& theID);
 
-  /// Customize presentation of the feature
-  virtual bool customisePresentation(ResultPtr theResult, AISObjectPtr thePrs,
-                                     std::shared_ptr<GeomAPI_ICustomPrs> theDefaultPrs);
-
   /// \brief Use plugin manager for features creation
   SketchPlugin_ConstraintLength();