X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FConstructionPlugin%2FConstructionPlugin_Plugin.cpp;h=c60c022b4311028afd31a9c801159ed0d1158822;hb=eef14b29d313b9dd16453d12f20aa02383ee139c;hp=dff14b5b63453d8468fe84c4680144a13f3215f2;hpb=85253719b1f5e630551c2590d23deab11db55fe1;p=modules%2Fshaper.git diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp b/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp index dff14b5b6..c60c022b4 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp @@ -21,23 +21,19 @@ ConstructionPlugin_Plugin::ConstructionPlugin_Plugin() ModelAPI_Session::get()->registerPlugin(this); // register construction properties - Config_PropManager::registerProp("Visualization", "construction_point_color", "Construction point color", - Config_Prop::Color, CONSTRUCTION_POINT_COLOR); - Config_PropManager::registerProp("Visualization", "construction_axis_color", "Construction axis color", - Config_Prop::Color, CONSTRUCTION_AXIS_COLOR); Config_PropManager::registerProp("Visualization", "construction_plane_color", "Construction plane color", - Config_Prop::Color, CONSTRUCTION_PLANE_COLOR); + Config_Prop::Color, ConstructionPlugin_Plane::DEFAULT_COLOR()); } FeaturePtr ConstructionPlugin_Plugin::createFeature(string theFeatureID) { - if (theFeatureID == CONSTRUCTION_POINT_KIND) { + if (theFeatureID == ConstructionPlugin_Point::ID()) { return FeaturePtr(new ConstructionPlugin_Point); } - else if (theFeatureID == CONSTRUCTION_AXIS_KIND) { + else if (theFeatureID == ConstructionPlugin_Axis::ID()) { return FeaturePtr(new ConstructionPlugin_Axis); } - else if (theFeatureID == CONSTRUCTION_PLANE_KIND) { + else if (theFeatureID == ConstructionPlugin_Plane::ID()) { return FeaturePtr(new ConstructionPlugin_Plane); } // feature of such kind is not found