#include <SketchPlugin_ExternalValidator.h>
#include <SketchPlugin_Ellipse.h>
#include <SketchPlugin_MacroEllipse.h>
+#include <SketchPlugin_SketchDrawer.h>
#include <SketcherPrs_Tools.h>
#define SKETCH_ENTITY_COLOR "225,0,0"
#define SKETCH_EXTERNAL_COLOR "170,0,225"
#define SKETCH_AUXILIARY_COLOR "0,85,0"
-#define SKETCH_OVERCONSTRAINT_COLOR "0,0,0"
+#define SKETCH_OVERCONSTRAINT_COLOR "255,0,0"
#define SKETCH_FULLY_CONSTRAINED_COLOR "0,150,0"
//#define SET_PLANES_COLOR_IN_PREFERENCES
aFactory->registerValidator("SketchPlugin_ArcEndPointIntersectionValidator",
new SketchPlugin_ArcEndPointIntersectionValidator);
aFactory->registerValidator("SketchPlugin_HasNoConstraint", new SketchPlugin_HasNoConstraint);
+ aFactory->registerValidator("SketchPlugin_ReplicationReference",
+ new SketchPlugin_ReplicationReferenceValidator);
+ aFactory->registerValidator("SketchPlugin_SketchFeatureValidator",
+ new SketchPlugin_SketchFeatureValidator);
+ aFactory->registerValidator("SketchPlugin_MultiRotationAngleValidator",
+ new SketchPlugin_MultiRotationAngleValidator);
// register this plugin
ModelAPI_Session::get()->registerPlugin(this);
"Sketch auxiliary entity color",
Config_Prop::Color, SKETCH_AUXILIARY_COLOR);
- Config_PropManager::registerProp("Visualization", "sketch_dimension_color",
- "Sketch dimension color",
- Config_Prop::Color, SKETCH_DIMENSION_COLOR);
-
Config_PropManager::registerProp("Visualization", "sketch_overconstraint_color",
"Sketch overconstraint color",
Config_Prop::Color, SKETCH_OVERCONSTRAINT_COLOR);
Config_Prop::Color, XY_PLANE_COLOR);
#endif
- Config_PropManager::registerProp(SKETCH_TAB_NAME, "dimension_font", "Dimension font",
- Config_Prop::String, "Arial");
- std::ostringstream aStream;
- aStream << SketcherPrs_Tools::getDefaultTextHeight();
- Config_PropManager::registerProp(SKETCH_TAB_NAME, "dimension_value_size",
- "Dimension value size", Config_Prop::Integer, aStream.str());
- aStream.str("");
- aStream.clear();
- aStream << SketcherPrs_Tools::getDefaultArrowSize();
- Config_PropManager::registerProp(SKETCH_TAB_NAME, "dimension_arrow_size",
- "Dimension arrow size", Config_Prop::Integer, aStream.str());
}
FeaturePtr SketchPlugin_Plugin::createFeature(std::string theFeatureID)
return FeaturePtr(new SketchPlugin_Ellipse);
} else if (theFeatureID == SketchPlugin_MacroEllipse::ID()) {
return FeaturePtr(new SketchPlugin_MacroEllipse);
+ } else if (theFeatureID == SketchPlugin_SketchDrawer::ID()) {
+ return FeaturePtr(new SketchPlugin_SketchDrawer);
}
// feature of such kind is not found
return FeaturePtr();
}
+// LCOV_EXCL_START
void SketchPlugin_Plugin::processEvent(const std::shared_ptr<Events_Message>& theMessage)
{
const Events_ID kRequestEvent =
}
return aMsg;
}
+// LCOV_EXCL_STOP