X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_Object.cxx;h=4bc6d2354210af352f73574a91b167bf5a593699;hb=deed826b2d6c39ba2ed410108cdf54d64cded321;hp=87ffb2dfbdd881d30748c7f100de859e02104ad9;hpb=a863d01069107030d3e8eb37973fc84a281133f7;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_Object.cxx b/src/HYDROData/HYDROData_Object.cxx index 87ffb2df..4bc6d235 100644 --- a/src/HYDROData/HYDROData_Object.cxx +++ b/src/HYDROData/HYDROData_Object.cxx @@ -8,6 +8,8 @@ #include +#include + IMPLEMENT_STANDARD_HANDLE(HYDROData_Object,HYDROData_Entity) IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Object,HYDROData_Entity) @@ -64,3 +66,32 @@ TopoDS_Shape HYDROData_Object::getShape3D() const return TopoDS_Shape(); } +void HYDROData_Object::SetFillingColor( const QColor& theColor ) +{ + return SetColor( theColor, DataTag_FillingColor ); +} + +QColor HYDROData_Object::GetFillingColor() const +{ + return GetColor( DefaultFillingColor(), DataTag_FillingColor ); +} + +void HYDROData_Object::SetBorderColor( const QColor& theColor ) +{ + return SetColor( theColor, DataTag_BorderColor ); +} + +QColor HYDROData_Object::GetBorderColor() const +{ + return GetColor( DefaultBorderColor(), DataTag_BorderColor ); +} + +QColor HYDROData_Object::DefaultFillingColor() +{ + return QColor( Qt::yellow ); +} + +QColor HYDROData_Object::DefaultBorderColor() +{ + return QColor( Qt::transparent ); +} \ No newline at end of file