Salome HOME
Constriction type for all sketch entities
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Plane.cpp
index 5b347354cc1677b513a931cbdcf0dfec0310b590..d0ecc4d7ee88012e5f239c892402f118851862a1 100644 (file)
@@ -24,14 +24,14 @@ ConstructionPlugin_Plane::ConstructionPlugin_Plane()
 
 void ConstructionPlugin_Plane::initAttributes()
 {
-  data()->addAttribute(FACE_ATTR,  ModelAPI_AttributeSelection::type());
-  data()->addAttribute(DISTANCE_ATTR, ModelAPI_AttributeDouble::type());
+  data()->addAttribute(ConstructionPlugin_Plane::FACE(),  ModelAPI_AttributeSelection::type());
+  data()->addAttribute(ConstructionPlugin_Plane::DISTANCE(), ModelAPI_AttributeDouble::type());
 }
 
 void ConstructionPlugin_Plane::execute()
 {
-  AttributeSelectionPtr aFaceAttr = data()->selection(FACE_ATTR);
-  AttributeDoublePtr aDistAttr = data()->real(DISTANCE_ATTR);
+  AttributeSelectionPtr aFaceAttr = data()->selection(ConstructionPlugin_Plane::FACE());
+  AttributeDoublePtr aDistAttr = data()->real(ConstructionPlugin_Plane::DISTANCE());
   if ((aFaceAttr.get() != NULL) && (aDistAttr.get() != NULL) && 
     aFaceAttr->isInitialized() && aDistAttr->isInitialized()) {
 
@@ -76,7 +76,7 @@ void ConstructionPlugin_Plane::execute()
 void ConstructionPlugin_Plane::customisePresentation(AISObjectPtr thePrs)
 {
   std::vector<int> aRGB = Config_PropManager::color("Visualization", "construction_plane_color",
-                                                    CONSTRUCTION_PLANE_COLOR);
+                                                    ConstructionPlugin_Plane::DEFAULT_COLOR());
   thePrs->setColor(aRGB[0], aRGB[1], aRGB[2]);
   thePrs->setTransparensy(0.6);
-}
\ No newline at end of file
+}