Salome HOME
Make the expressions in double attributes and points updated after the parameter...
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Point.cpp
index 231e54fb2cddaa70bbcfbeb0b7d9f0adfe269791..b31b3b55217d0b0bd94b538207392dc58d90ba14 100644 (file)
@@ -29,9 +29,9 @@ const std::string& ConstructionPlugin_Point::getKind()
 
 void ConstructionPlugin_Point::initAttributes()
 {
-  data()->addAttribute(ConstructionPlugin_Point::X(), ModelAPI_AttributeDouble::type());
-  data()->addAttribute(ConstructionPlugin_Point::Y(), ModelAPI_AttributeDouble::type());
-  data()->addAttribute(ConstructionPlugin_Point::Z(), ModelAPI_AttributeDouble::type());
+  data()->addAttribute(ConstructionPlugin_Point::X(), ModelAPI_AttributeDouble::typeId());
+  data()->addAttribute(ConstructionPlugin_Point::Y(), ModelAPI_AttributeDouble::typeId());
+  data()->addAttribute(ConstructionPlugin_Point::Z(), ModelAPI_AttributeDouble::typeId());
 }
 
 void ConstructionPlugin_Point::execute()
@@ -45,11 +45,3 @@ void ConstructionPlugin_Point::execute()
   aConstr->setShape(GeomAlgoAPI_PointBuilder::point(aPnt));
   setResult(aConstr);
 }
-
-void ConstructionPlugin_Point::customisePresentation(AISObjectPtr thePrs)
-{
-  std::vector<int> aRGB = Config_PropManager::color("Visualization", "construction_point_color",
-                                                    ConstructionPlugin_Point::DEFAULT_COLOR());
-  thePrs->setColor(aRGB[0], aRGB[1], aRGB[2]);
-  thePrs->redisplay();
-}