#include <SketchPlugin_Point.h>
#include <SketchPlugin_Circle.h>
#include <SketchPlugin_Arc.h>
#include <SketchPlugin_Point.h>
#include <SketchPlugin_Circle.h>
#include <SketchPlugin_Arc.h>
#include <SketchPlugin_ConstraintCoincidence.h>
#include <SketchPlugin_ConstraintDistance.h>
#include <SketchPlugin_ConstraintEqual.h>
#include <SketchPlugin_ConstraintCoincidence.h>
#include <SketchPlugin_ConstraintDistance.h>
#include <SketchPlugin_ConstraintEqual.h>
new SketchPlugin_CoincidenceAttrValidator);
aFactory->registerValidator("SketchPlugin_CopyValidator",
new SketchPlugin_CopyValidator);
new SketchPlugin_CoincidenceAttrValidator);
aFactory->registerValidator("SketchPlugin_CopyValidator",
new SketchPlugin_CopyValidator);
- Config_PropManager::registerProp("Visualization", "sketch_entity_color", "Sketch enity color",
+ Config_PropManager::registerProp("Visualization", "sketch_entity_color", "Sketch entity color",
Config_Prop::Color, SKETCH_ENTITY_COLOR);
Config_PropManager::registerProp("Visualization", "sketch_external_color", "Sketch external entity color",
Config_Prop::Color, SKETCH_ENTITY_COLOR);
Config_PropManager::registerProp("Visualization", "sketch_external_color", "Sketch external entity color",
return FeaturePtr(new SketchPlugin_MultiTranslation);
} else if (theFeatureID == SketchPlugin_MultiRotation::ID()) {
return FeaturePtr(new SketchPlugin_MultiRotation);
return FeaturePtr(new SketchPlugin_MultiTranslation);
} else if (theFeatureID == SketchPlugin_MultiRotation::ID()) {
return FeaturePtr(new SketchPlugin_MultiRotation);
::getFeaturesState(const std::shared_ptr<ModelAPI_Feature>& theFeature) const
{
const Events_ID kResponseEvent = Events_Loop::loop()->eventByName(EVENT_FEATURE_STATE_RESPONSE);
::getFeaturesState(const std::shared_ptr<ModelAPI_Feature>& theFeature) const
{
const Events_ID kResponseEvent = Events_Loop::loop()->eventByName(EVENT_FEATURE_STATE_RESPONSE);
- std::shared_ptr<ModelAPI_FeatureStateMessage> aMsg =
- std::make_shared<ModelAPI_FeatureStateMessage>(kResponseEvent, this);
+ std::shared_ptr<ModelAPI_FeatureStateMessage> aMsg(
+ new ModelAPI_FeatureStateMessage(kResponseEvent, this));
aMsg->setState(SketchPlugin_ConstraintTangent::ID(), aHasSketchPlane);
aMsg->setState(SketchPlugin_ConstraintMirror::ID(), aHasSketchPlane);
aMsg->setState(SketchPlugin_ConstraintFillet::ID(), aHasSketchPlane);
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);
}
aMsg->setState(SketchPlugin_MultiRotation::ID(), aHasSketchPlane);
aMsg->setState(SketchPlugin_MultiTranslation::ID(), aHasSketchPlane);
}