Salome HOME
Merge branch 'Dev_1.1.0' of newgeom:newgeom.git into Dev_1.1.0
[modules/shaper.git] / src / ConstructionPlugin / ConstructionPlugin_Point.cpp
index 4c13dba4958abb832558f62db3d307c557470e4e..231e54fb2cddaa70bbcfbeb0b7d9f0adfe269791 100644 (file)
@@ -13,6 +13,8 @@
 #include <GeomAlgoAPI_PointBuilder.h>
 #include <GeomAPI_Pnt.h>
 
+#include <Config_PropManager.h>
+
 using namespace std;
 
 ConstructionPlugin_Point::ConstructionPlugin_Point()
@@ -43,3 +45,11 @@ 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();
+}