#include <SketchPlugin_ConstraintRigid.h>
#include <SketchPlugin_ConstraintTangent.h>
#include <SketchPlugin_ConstraintVertical.h>
+#include <SketchPlugin_MultiRotation.h>
+#include <SketchPlugin_MultiTranslation.h>
#include <SketchPlugin_Validators.h>
#include <SketchPlugin_ExternalValidator.h>
new SketchPlugin_MirrorAttrValidator);
aFactory->registerValidator("SketchPlugin_CoincidenceAttr",
new SketchPlugin_CoincidenceAttrValidator);
+ aFactory->registerValidator("SketchPlugin_CopyValidator",
+ new SketchPlugin_CopyValidator);
// register this plugin
ModelAPI_Session::get()->registerPlugin(this);
Config_PropManager::registerProp("Visualization", "sketch_auxiliary_color", "Sketch auxiliary entity color",
Config_Prop::Color, SKETCH_AUXILIARY_COLOR);
- Config_PropManager::registerProp("Visualization", "sketch_constraint_color", "Sketch constraint color",
- Config_Prop::Color, SKETCH_CONSTRAINT_COLOR);
-
Config_PropManager::registerProp("Visualization", "sketch_dimension_color", "Sketch dimension color",
Config_Prop::Color, SKETCH_DIMENSION_COLOR);
return FeaturePtr(new SketchPlugin_ConstraintMirror);
} else if (theFeatureID == SketchPlugin_ConstraintFillet::ID()) {
return FeaturePtr(new SketchPlugin_ConstraintFillet);
+ } else if (theFeatureID == SketchPlugin_MultiTranslation::ID()) {
+ return FeaturePtr(new SketchPlugin_MultiTranslation);
+ } else if (theFeatureID == SketchPlugin_MultiRotation::ID()) {
+ return FeaturePtr(new SketchPlugin_MultiRotation);
}
// feature of such kind is not found
return FeaturePtr();
aMsg->setState(SketchPlugin_ConstraintTangent::ID(), aHasSketchPlane);
aMsg->setState(SketchPlugin_ConstraintMirror::ID(), aHasSketchPlane);
aMsg->setState(SketchPlugin_ConstraintFillet::ID(), aHasSketchPlane);
+ aMsg->setState(SketchPlugin_MultiRotation::ID(), aHasSketchPlane);
+ aMsg->setState(SketchPlugin_MultiTranslation::ID(), aHasSketchPlane);
}
}
return aMsg;