Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'SketchSolver'
[modules/shaper.git]
/
src
/
SketchPlugin
/
SketchPlugin_Plugin.cpp
diff --git
a/src/SketchPlugin/SketchPlugin_Plugin.cpp
b/src/SketchPlugin/SketchPlugin_Plugin.cpp
index bbbbd878e55ae9b791ddae879d7c0b9981293837..23a6cf05a17cc3fb364a10d7f616943df9d71c6b 100644
(file)
--- a/
src/SketchPlugin/SketchPlugin_Plugin.cpp
+++ b/
src/SketchPlugin/SketchPlugin_Plugin.cpp
@@
-6,9
+6,10
@@
#include "SketchPlugin_Arc.h"
#include "SketchPlugin_ConstraintCoincidence.h"
#include "SketchPlugin_ConstraintDistance.h"
#include "SketchPlugin_Arc.h"
#include "SketchPlugin_ConstraintCoincidence.h"
#include "SketchPlugin_ConstraintDistance.h"
-#include "SketchPlugin_Constraint
Diameter
.h"
+#include "SketchPlugin_Constraint
Length
.h"
#include "SketchPlugin_ConstraintParallel.h"
#include "SketchPlugin_ConstraintPerpendicular.h"
#include "SketchPlugin_ConstraintParallel.h"
#include "SketchPlugin_ConstraintPerpendicular.h"
+#include "SketchPlugin_ConstraintRadius.h"
#include <ModelAPI_PluginManager.h>
#include <ModelAPI_Document.h>
#include <ModelAPI_PluginManager.h>
#include <ModelAPI_Document.h>
@@
-43,8
+44,8
@@
boost::shared_ptr<ModelAPI_Feature> SketchPlugin_Plugin::createFeature(string th
else if (theFeatureID == "SketchConstraintDistance") {
return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintDistance);
}
else if (theFeatureID == "SketchConstraintDistance") {
return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintDistance);
}
- else if (theFeatureID == "SketchConstraint
Diameter
") {
- return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_Constraint
Diameter
);
+ else if (theFeatureID == "SketchConstraint
Length
") {
+ return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_Constraint
Length
);
}
else if (theFeatureID == "SketchConstraintParallel") {
return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintParallel);
}
else if (theFeatureID == "SketchConstraintParallel") {
return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintParallel);
@@
-52,6
+53,9
@@
boost::shared_ptr<ModelAPI_Feature> SketchPlugin_Plugin::createFeature(string th
else if (theFeatureID == "SketchConstraintPerpendicular") {
return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintPerpendicular);
}
else if (theFeatureID == "SketchConstraintPerpendicular") {
return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintPerpendicular);
}
+ else if (theFeatureID == "SketchConstraintRadius") {
+ return boost::shared_ptr<ModelAPI_Feature>(new SketchPlugin_ConstraintRadius);
+ }
// feature of such kind is not found
return boost::shared_ptr<ModelAPI_Feature>();
}
// feature of such kind is not found
return boost::shared_ptr<ModelAPI_Feature>();
}