QColor HYDROData_DummyObject3D::GetFillingColor() const
{
- QColor aResColor( HYDROData_Object::DefaultFillingColor() );
+ QColor aResColor( Qt::yellow );
Handle(HYDROData_Object) aFatherObj = GetObject();
if ( !aFatherObj.IsNull() )
QColor HYDROData_DummyObject3D::GetBorderColor() const
{
- QColor aResColor( HYDROData_Object::DefaultBorderColor() );
+ QColor aResColor( Qt::transparent );
Handle(HYDROData_Object) aFatherObj = GetObject();
if ( !aFatherObj.IsNull() )
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
*/
HYDRODATA_EXPORT virtual QColor GetBorderColor() const;
- /**
- * Returns default filling color for new object.
- */
- HYDRODATA_EXPORT static QColor DefaultFillingColor();
-
- /**
- * Returns default border color for new object.
- */
- HYDRODATA_EXPORT static QColor DefaultBorderColor();
-
protected:
/**
public:
- /**
- * Sets filling color for zone.
- */
- void SetFillingColor( const QColor& theColor );
-
- /**
- * Returns filling color of zone.
- */
- QColor GetFillingColor() const;
-
- /**
- * Sets border color for zone.
- */
- void SetBorderColor( const QColor& theColor );
-
- /**
- * Returns border color of zone.
- */
- QColor GetBorderColor() const;
-
/**
* Sets reference polyline object for zone.
*/
*/
void RemoveAltitudeObject();
+ /**
+ * Sets filling color for zone.
+ */
+ virtual void SetFillingColor( const QColor& theColor );
+
+ /**
+ * Returns filling color of zone.
+ */
+ virtual QColor GetFillingColor() const;
+
+ /**
+ * Sets border color for zone.
+ */
+ virtual void SetBorderColor( const QColor& theColor );
+
+ /**
+ * Returns border color of zone.
+ */
+ virtual QColor GetBorderColor() const;
+
protected:
/**