Salome HOME
lot 10 - warnings for DTM - untested
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ProfileDlg.cxx
index 6e8479d111eb75ed57c4044e6ed6e974859ba6b6..a60b631053fca3ec3325d9614d23dd4a9cf0e63f 100644 (file)
@@ -358,9 +358,14 @@ void HYDROGUI_ProfileDlg::onSetColorBtnPressed(bool)
 
   Quantity_Color newOCCCol = HYDROData_Tool::toOccColor(newQCurCol);
   aCurve->setColorSectionInternal(0, newOCCCol);
-  //Handle(AIS_InteractiveObject) anAISObject = aCurve->getAISObject();
-  //if (anAISObject)
-  //  anAISObject->SetColor(newOCCCol);
+  Handle(AIS_InteractiveObject) anAISObject = aCurve->getAISObject();
+  if (anAISObject)
+  {
+    //color points of shape in the same color as edges
+    Handle(Prs3d_PointAspect) anAspect = anAISObject->Attributes()->PointAspect();
+    anAspect->SetColor(newOCCCol);
+    anAISObject->Attributes()->SetPointAspect( anAspect );
+  }
 
   QListWidgetItem* item = myProfileNames->item(theIndex);
   QPixmap SPixmap(16, 16);