Salome HOME
bugfix for libSketchSolver.so: removing unresolved symbols from the SketchPlugin
[modules/shaper.git] / src / SketchPlugin / SketchPlugin_Constraint.h
index 5417111e399fe5948c34226ce4b683443d018d7e..01fbe230fbcdec6951020ed800177b9399367443 100644 (file)
@@ -5,40 +5,18 @@
 #ifndef SketchPlugin_Constraint_H_
 #define SketchPlugin_Constraint_H_
 
-#include "SketchPlugin.h"
-#include "SketchPlugin_Feature.h"
-#include <SketchPlugin_Sketch.h>
-#include <ModelAPI_AttributeReference.h>
-#include <ModelAPI_AttributeRefAttr.h>
+#include <SketchPlugin_Feature.h>
 
-#include <GeomAPI_IPresentable.h>
-
-#include <list>
-
-
-/*  Description: 
- *    Each constraint uses a set of parameters. In the SolveSpace library 
- *    these parameters are named "valA", "ptA", "ptB", "entityA", "entityB". 
- *    The "ptA" and "ptB" parameters represents a point in the constraint.
- *    The "entityA" and "entityB" represents any other object (and a point too).
- *    And the "valA" represents a real value.
- *
- *    The attributes below are named independent of the SolveSpace.
- *    Some of them may be unused. 
- *
- *    Also the list of possible attributes is provided to simplify assignment.
- */
+#include <string>
 
 /// Size of the list of constraint attributes
 const unsigned int CONSTRAINT_ATTR_SIZE = 4;
 
 /** \class SketchPlugin_Constraint
- *  \ingroup DataModel
- *  \brief Feature for creation of a new constraint between other features.
- *         Base class for all constraints.
+ *  \brief Abstract interface to the SketchPlugin_ConstraintBase
+ *         For more info see: SketchPlugin_ConstraintBase.h
  */
-class SketchPlugin_Constraint: public SketchPlugin_Feature, 
-                               public GeomAPI_IPresentable
+class SketchPlugin_Constraint: public SketchPlugin_Feature
 {
 public:
   /// The value parameter for the constraint
@@ -91,29 +69,6 @@ public:
     return EMPTY_STRING;
   }
 
-  /// \brief Returns to which group in the document must be added feature
-  SKETCHPLUGIN_EXPORT virtual const std::string& getGroup()
-  {static std::string MY_GROUP = SketchPlugin_Sketch::ID(); return MY_GROUP;}
-
-  /** \brief Adds sub-feature of the higher level feature (sub-element of the sketch)
-   *  \param theFeature sub-feature
-   */
-  SKETCHPLUGIN_EXPORT virtual const void addSub(
-    const FeaturePtr& theFeature) {}
-
-  /// Returns the AIS preview
-  SKETCHPLUGIN_EXPORT virtual boost::shared_ptr<GeomAPI_AISObject> getAISObject(
-                                boost::shared_ptr<GeomAPI_AISObject> thePrevious);
-
-  /// Moves the feature
-  /// \param theDeltaX the delta for X coordinate is moved
-  /// \param theDeltaY the delta for Y coordinate is moved
-  SKETCHPLUGIN_EXPORT virtual void move(const double theDeltaX, const double theDeltaY) {};
-
-  /// Return the distance between the feature and the point
-  /// \param thePoint the point
-  virtual double distanceToPoint(const boost::shared_ptr<GeomAPI_Pnt2d>& thePoint) { return 0; };
-
 protected:
   /// \brief Use plugin manager for features creation
   SketchPlugin_Constraint() {}