Salome HOME
Another fix for revolution naming.
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Plugin.cpp
index 8c025dd5405fa7748c9cd6f20c21288701ca55ad..c60c022b4311028afd31a9c801159ed0d1158822 100644 (file)
@@ -22,23 +22,18 @@ ConstructionPlugin_Plugin::ConstructionPlugin_Plugin()
 
   // register construction properties
   Config_PropManager::registerProp("Visualization", "construction_plane_color", "Construction plane color",
-                                   Config_Prop::Color, CONSTRUCTION_PLANE_COLOR);
-
-  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_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