Salome HOME
NCollection sequences improved.
[modules/hydro.git] / src / HYDROData / HYDROData_Object.cxx
index f920341142141e0cc994c316605f9e1888f732f5..719c105bf908f79ae3ddb090f11af3ce03be4671 100644 (file)
@@ -57,11 +57,11 @@ void HYDROData_Object::SetName( const QString& theName )
 
 void HYDROData_Object::Update()
 {
-  HYDROData_Entity::Update();
   removeTopShape();
   removeShape3D();
   removeGroupObjects();
   checkAndSetAltitudeObject();
+  HYDROData_Entity::Update();
 }
 
 HYDROData_SequenceOfObjects HYDROData_Object::GetAllReferenceObjects() const
@@ -188,24 +188,14 @@ QColor HYDROData_Object::GetBorderColor() const
   return GetColor( getDefaultBorderColor(), DataTag_BorderColor );
 }
 
-QColor HYDROData_Object::DefaultFillingColor()
-{
-  return QColor( Qt::yellow );
-}
-
-QColor HYDROData_Object::DefaultBorderColor()
-{
-  return QColor( Qt::transparent );
-}
-
 QColor HYDROData_Object::getDefaultFillingColor() const
 {
-  return DefaultFillingColor();
+  return QColor( Qt::yellow );
 }
 
 QColor HYDROData_Object::getDefaultBorderColor() const
 {
-  return DefaultBorderColor();
+  return QColor( Qt::transparent );
 }
 
 ObjectKind HYDROData_Object::getAltitudeObjectType() const
@@ -267,10 +257,6 @@ Handle(HYDROData_ShapesGroup) HYDROData_Object::createGroupObject()
   return aNewGroup;
 }
 
-void HYDROData_Object::createGroupObjects()
-{
-}
-
 void HYDROData_Object::removeGroupObjects()
 {
   TDF_Label aLabel = myLab.FindChild( DataTag_EdgesGroup, false );