return true;
}
-QColor HYDROData_Channel::DefaultFillingColor()
+QColor HYDROData_Channel::DefaultFillingColor() const
{
return QColor( Qt::blue );
}
-QColor HYDROData_Channel::DefaultBorderColor()
+QColor HYDROData_Channel::DefaultBorderColor() const
{
return QColor( Qt::transparent );
}
-QColor HYDROData_Channel::getDefaultFillingColor() const
-{
- return DefaultFillingColor();
-}
-
-QColor HYDROData_Channel::getDefaultBorderColor() const
-{
- return DefaultBorderColor();
-}
-
bool HYDROData_Channel::SetGuideLine( const Handle(HYDROData_Polyline3D)& theGuideLine )
{
Handle(HYDROData_Polyline3D) aPrevGuideLine = GetGuideLine();
/**
* Returns default filling color for new channel.
*/
- HYDRODATA_EXPORT static QColor DefaultFillingColor();
+ HYDRODATA_EXPORT virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new channel.
*/
- HYDRODATA_EXPORT static QColor DefaultBorderColor();
+ HYDRODATA_EXPORT virtual QColor DefaultBorderColor() const;
public:
protected:
-
- /**
- * Returns default filling color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
-
- /**
- * Returns default border color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
-
/**
* Returns the type of child altitude object.
* Reimplemented to create chanel altitude object.
{
}
-QColor HYDROData_Digue::DefaultFillingColor()
+QColor HYDROData_Digue::DefaultFillingColor() const
{
return QColor( Qt::red );
}
-QColor HYDROData_Digue::DefaultBorderColor()
+QColor HYDROData_Digue::DefaultBorderColor() const
{
return QColor( Qt::transparent );
}
-QColor HYDROData_Digue::getDefaultFillingColor() const
-{
- return DefaultFillingColor();
-}
-
-QColor HYDROData_Digue::getDefaultBorderColor() const
-{
- return DefaultBorderColor();
-}
-
/**
* Returns default filling color for new digue.
*/
- HYDRODATA_EXPORT static QColor DefaultFillingColor();
+ HYDRODATA_EXPORT virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new digue.
*/
- HYDRODATA_EXPORT static QColor DefaultBorderColor();
-
-protected:
-
- /**
- * Returns default filling color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
-
- /**
- * Returns default border color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
+ HYDRODATA_EXPORT virtual QColor DefaultBorderColor() const;
protected:
*/
HYDRODATA_EXPORT virtual PointsList GetPoints( const int theSectionIndex = -1, bool IsConvertToGlobal = false ) const = 0;
- TopoDS_Shape GetShape() const;
- void SetShape( const TopoDS_Shape& theShape );
+ HYDRODATA_EXPORT TopoDS_Shape GetShape() const;
+ HYDRODATA_EXPORT void SetShape( const TopoDS_Shape& theShape );
protected:
void RemovePolylineShape();
return GetTopShape();
}
-QColor HYDROData_ImmersibleZone::DefaultFillingColor()
+QColor HYDROData_ImmersibleZone::DefaultFillingColor() const
{
return QColor( Qt::darkBlue );
}
-QColor HYDROData_ImmersibleZone::DefaultBorderColor()
+QColor HYDROData_ImmersibleZone::DefaultBorderColor() const
{
return QColor( Qt::transparent );
}
-QColor HYDROData_ImmersibleZone::getDefaultFillingColor() const
-{
- return DefaultFillingColor();
-}
-
-QColor HYDROData_ImmersibleZone::getDefaultBorderColor() const
-{
- return DefaultBorderColor();
-}
-
void HYDROData_ImmersibleZone::SetPolyline( const Handle(HYDROData_PolylineXY)& thePolyline )
{
if( IsEqual( GetPolyline(), thePolyline ) )
/**
* Returns default filling color for new zone.
*/
- HYDRODATA_EXPORT static QColor DefaultFillingColor();
+ HYDRODATA_EXPORT virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new zone.
*/
- HYDRODATA_EXPORT static QColor DefaultBorderColor();
+ HYDRODATA_EXPORT virtual QColor DefaultBorderColor() const;
/**
* Sets reference polyline object for zone.
HYDRODATA_EXPORT TopoDS_Shape generateTopShape() const;
HYDRODATA_EXPORT static TopoDS_Shape generateTopShape( const Handle(HYDROData_PolylineXY)& );
-protected:
-
- /**
- * Returns default filling color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
-
- /**
- * Returns default border color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
-
private:
/**
return GetColor( DefaultBorderColor(), DataTag_BorderColor );
}
-QColor HYDROData_LandCover::DefaultFillingColor()
+QColor HYDROData_LandCover::DefaultFillingColor() const
{
return QColor( Qt::magenta );
}
-QColor HYDROData_LandCover::DefaultBorderColor()
+QColor HYDROData_LandCover::DefaultBorderColor() const
{
return QColor( Qt::transparent );
}
/**
* Returns default filling color for new land cover.
*/
- HYDRODATA_EXPORT static QColor DefaultFillingColor();
+ HYDRODATA_EXPORT virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new land cover.
*/
- HYDRODATA_EXPORT static QColor DefaultBorderColor();
+ HYDRODATA_EXPORT virtual QColor DefaultBorderColor() const;
/**
* Build the shape presentation of the land cover.
QColor HYDROData_Object::GetFillingColor() const
{
- return GetColor( getDefaultFillingColor(), DataTag_FillingColor );
+ return GetColor( DefaultFillingColor(), DataTag_FillingColor );
}
void HYDROData_Object::SetBorderColor( const QColor& theColor )
QColor HYDROData_Object::GetBorderColor() const
{
- return GetColor( getDefaultBorderColor(), DataTag_BorderColor );
+ return GetColor( DefaultBorderColor(), DataTag_BorderColor );
}
-QColor HYDROData_Object::getDefaultFillingColor() const
+QColor HYDROData_Object::DefaultFillingColor() const
{
return QColor( Qt::yellow );
}
-QColor HYDROData_Object::getDefaultBorderColor() const
+QColor HYDROData_Object::DefaultBorderColor() const
{
return QColor( Qt::transparent );
}
QStringList aColorsDef;
QColor aFillingColor = GetFillingColor();
- setPythonObjectColor( aColorsDef, aFillingColor, getDefaultFillingColor(), "SetFillingColor" );
+ setPythonObjectColor( aColorsDef, aFillingColor, DefaultFillingColor(), "SetFillingColor" );
QColor aBorderColor = GetBorderColor();
- setPythonObjectColor( aColorsDef, aBorderColor, getDefaultBorderColor(), "SetBorderColor" );
+ setPythonObjectColor( aColorsDef, aBorderColor, DefaultBorderColor(), "SetBorderColor" );
if ( !aColorsDef.isEmpty() )
{
HYDRODATA_EXPORT bool IsSubmersible() const;
HYDRODATA_EXPORT void SetIsSubmersible( bool ) const;
-protected:
-
- /**
- * Returns default filling color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
-
- /**
- * Returns default border color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
-
protected:
/**
virtual HYDRODATA_EXPORT ~HYDROData_Object();
protected:
+ HYDRODATA_EXPORT virtual QColor DefaultFillingColor() const;
+ HYDRODATA_EXPORT virtual QColor DefaultBorderColor() const;
/**
* Dump the initial object creation to a Python script.
HYDROData_ArtificialObject::SetTopShape( aShape2d );
}
-QColor HYDROData_Obstacle::DefaultFillingColor()
+QColor HYDROData_Obstacle::DefaultFillingColor() const
{
return QColor( Qt::yellow );
}
-QColor HYDROData_Obstacle::DefaultBorderColor()
+QColor HYDROData_Obstacle::DefaultBorderColor() const
{
return QColor( Qt::transparent );
}
return aResShape;
}
-QColor HYDROData_Obstacle::getDefaultFillingColor() const
-{
- return DefaultFillingColor();
-}
-
-QColor HYDROData_Obstacle::getDefaultBorderColor() const
-{
- return DefaultBorderColor();
-}
-
ObjectKind HYDROData_Obstacle::getAltitudeObjectType() const
{
return KIND_OBSTACLE_ALTITUDE;
/**
* Returns default filling color for new obstacle.
*/
- HYDRODATA_EXPORT static QColor DefaultFillingColor();
+ HYDRODATA_EXPORT virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new obstacle.
*/
- HYDRODATA_EXPORT static QColor DefaultBorderColor();
+ HYDRODATA_EXPORT virtual QColor DefaultBorderColor() const;
/**
const double theDz );
protected:
-
- /**
- * Returns default filling color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
-
- /**
- * Returns default border color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
-
/**
* Returns the type of child altitude object.
* Reimplemented to create obstacle altitude object.
SetShape3D( aResWire );
}
-QColor HYDROData_Polyline3D::DefaultFillingColor()
+QColor HYDROData_Polyline3D::DefaultFillingColor() const
{
return QColor( Qt::transparent );
}
-QColor HYDROData_Polyline3D::DefaultBorderColor()
+QColor HYDROData_Polyline3D::DefaultBorderColor() const
{
return QColor( Qt::red );
}
-QColor HYDROData_Polyline3D::getDefaultFillingColor() const
-{
- return DefaultFillingColor();
-}
-
-QColor HYDROData_Polyline3D::getDefaultBorderColor() const
-{
- return DefaultBorderColor();
-}
-
bool HYDROData_Polyline3D::SetPolylineXY( const Handle(HYDROData_PolylineXY)& thePolyline,
const bool theIsUpdateProfile )
{
/**
* Returns default filling color for new 3D polyline.
*/
- HYDRODATA_EXPORT static QColor DefaultFillingColor();
+ HYDRODATA_EXPORT virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new 3D polyline.
*/
- HYDRODATA_EXPORT static QColor DefaultBorderColor();
+ HYDRODATA_EXPORT virtual QColor DefaultBorderColor() const;
public:
HYDRODATA_EXPORT Polyline3DPoints GetPoints() const;
protected:
-
- /**
- * Returns default filling color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
-
- /**
- * Returns default border color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
-
/**
* Checks and if necessary create child 3D object.
* Reimplemented to prevent creation of 3D child object.
SetShape3D( aShape );
}
-QColor HYDROData_Profile::DefaultFillingColor()
+QColor HYDROData_Profile::DefaultFillingColor() const
{
return QColor( Qt::transparent );
}
-QColor HYDROData_Profile::DefaultBorderColor()
+QColor HYDROData_Profile::DefaultBorderColor() const
{
return QColor( Qt::black );
}
-QColor HYDROData_Profile::getDefaultFillingColor() const
-{
- return DefaultFillingColor();
-}
-
-QColor HYDROData_Profile::getDefaultBorderColor() const
-{
- return DefaultBorderColor();
-}
-
bool HYDROData_Profile::IsValid() const
{
gp_XY aFirstPoint, aLastPoint;
aProfile->SetFilePath( theFileName );
- aProfile->SetBorderColor( HYDROData_Profile::DefaultBorderColor() );
+ aProfile->SetBorderColor( aProfile->DefaultBorderColor() );
}
return aCreatedProfiles.Length();
/**
* Returns default filling color for new profile.
*/
- HYDRODATA_EXPORT static QColor DefaultFillingColor();
+ HYDRODATA_EXPORT virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new profile.
*/
- HYDRODATA_EXPORT static QColor DefaultBorderColor();
+ HYDRODATA_EXPORT virtual QColor DefaultBorderColor() const;
public:
bool* theIsRead = 0 );
protected:
-
- /**
- * Returns default filling color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
-
- /**
- * Returns default border color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
-
/**
* Checks and if necessary create child 3D object.
* Reimplemented to prevent creation of 3D child object.
aPolylineObj->SetPolylineXY (aPolylineXY, false);
aPolylineObj->SetAltitudeObject(aBath);
- aPolylineObj->SetBorderColor( HYDROData_Polyline3D::DefaultBorderColor() );
+ aPolylineObj->SetBorderColor( aPolylineObj->DefaultBorderColor() );
aPolylineObj->SetName( aPoly3DName );
aPolylineObj->Update();
anOutGroup->AddShape( aResultPrs.myOutlet );
}
-QColor HYDROData_Stream::DefaultFillingColor()
+QColor HYDROData_Stream::DefaultFillingColor() const
{
return QColor( Qt::green );
}
-QColor HYDROData_Stream::DefaultBorderColor()
+QColor HYDROData_Stream::DefaultBorderColor() const
{
return QColor( Qt::transparent );
}
return HYDROData_Tool::getFirstShapeFromGroup( aGroups, 4);
}
-QColor HYDROData_Stream::getDefaultFillingColor() const
-{
- return DefaultFillingColor();
-}
-
-QColor HYDROData_Stream::getDefaultBorderColor() const
-{
- return DefaultBorderColor();
-}
-
bool HYDROData_Stream::SetHydraulicAxis( const Handle(HYDROData_PolylineXY)& theAxis )
{
if ( !IsValidAsAxis( theAxis ) )
/**
* Returns default filling color for new stream.
*/
- HYDRODATA_EXPORT static QColor DefaultFillingColor();
+ HYDRODATA_EXPORT virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new stream.
*/
- HYDRODATA_EXPORT static QColor DefaultBorderColor();
+ HYDRODATA_EXPORT virtual QColor DefaultBorderColor() const;
/**
* Returns true if given polyline can be used as stream axis.
static Handle(Geom_BSplineCurve) buildInterpolationCurve(
const Handle(TColgp_HArray1OfPnt)& theArrayOfPnt );
- /**
- * Returns default filling color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultFillingColor() const;
-
- /**
- * Returns default border color for new object.
- */
- HYDRODATA_EXPORT virtual QColor getDefaultBorderColor() const;
-
private:
void setParametersArray( const TColStd_Array1OfReal& theArray );
int r = aColor.red();
int g = aColor.green();
int b = aColor.blue();
- return ( aColor.isValid() ? aColor : HYDROData_ImmersibleZone::DefaultFillingColor() );
+ return ( aColor.isValid() ? aColor : Qt::darkBlue );
}
void HYDROGUI_CalculationOp::setRules( HYDROData_CalculationCase::DataTag theDataTag )
if ( !myIsEdit )
{
- myEditedObject->SetFillingColor( getDefaultFillingColor() );
- myEditedObject->SetBorderColor( getDefaultBorderColor() );
+ myEditedObject->SetFillingColor( myEditedObject->DefaultFillingColor() );
+ myEditedObject->SetBorderColor( myEditedObject->DefaultBorderColor() );
}
QString aGuideLineName = aPanel->getGuideLineName();
return Handle(HYDROData_Channel)::DownCast( doc()->CreateObject( KIND_CHANNEL ) );
}
-QColor HYDROGUI_ChannelOp::getDefaultFillingColor() const
-{
- return HYDROData_Channel::DefaultFillingColor();
-}
-
-QColor HYDROGUI_ChannelOp::getDefaultBorderColor() const
-{
- return HYDROData_Channel::DefaultBorderColor();
-}
-
void HYDROGUI_ChannelOp::onCreatePreview()
{
HYDROGUI_ChannelDlg* aPanel = ::qobject_cast<HYDROGUI_ChannelDlg*>( inputPanel() );
{
myPreviewPrs = new HYDROGUI_Shape( aCtx, NULL, getPreviewZLayer() );
- QColor aFillingColor = getDefaultFillingColor();
- QColor aBorderColor = getDefaultBorderColor();
+ QColor aFillingColor = myEditedObject->DefaultFillingColor();
+ QColor aBorderColor = myEditedObject->DefaultBorderColor();
if ( !myEditedObject.IsNull() )
{
aFillingColor = myEditedObject->GetFillingColor();
virtual Handle(HYDROData_Channel) createNewObject() const;
- virtual QColor getDefaultFillingColor() const;
-
- virtual QColor getDefaultBorderColor() const;
-
virtual HYDROGUI_Shape* getPreviewShape() const { return myPreviewPrs; };
protected:
if ( !myIsEdit )
{
- myEditedObject->SetFillingColor( HYDROData_Digue::DefaultFillingColor() );
- myEditedObject->SetBorderColor( HYDROData_Digue::DefaultBorderColor() );
+ myEditedObject->SetFillingColor( myEditedObject->DefaultFillingColor() );
+ myEditedObject->SetBorderColor( myEditedObject->DefaultBorderColor() );
}
return true;
return Handle(HYDROData_Digue)::DownCast( doc()->CreateObject( KIND_DIGUE ) );
}
-QColor HYDROGUI_DigueOp::getDefaultFillingColor() const
-{
- return HYDROData_Digue::DefaultFillingColor();
-}
-
-QColor HYDROGUI_DigueOp::getDefaultBorderColor() const
-{
- return HYDROData_Digue::DefaultBorderColor();
-}
virtual Handle(HYDROData_Channel) createNewObject() const;
- virtual QColor getDefaultFillingColor() const;
-
- virtual QColor getDefaultBorderColor() const;
-
private:
};
if ( !myIsEdit )
{
- aZoneObj->SetFillingColor( HYDROData_ImmersibleZone::DefaultFillingColor() );
- aZoneObj->SetBorderColor( HYDROData_ImmersibleZone::DefaultBorderColor() );
+ aZoneObj->SetFillingColor( aZoneObj->DefaultFillingColor() );
+ aZoneObj->SetBorderColor( aZoneObj->DefaultBorderColor() );
}
aZoneObj->SetPolyline( aZonePolyline );
if ( aViewManager && myPreviewPrs )
{
- QColor aFillingColor = HYDROData_ImmersibleZone::DefaultFillingColor();
- QColor aBorderColor = HYDROData_ImmersibleZone::DefaultBorderColor();
+ QColor aFillingColor = myEditedObject->DefaultFillingColor();
+ QColor aBorderColor = myEditedObject->DefaultBorderColor();
if ( !myEditedObject.IsNull() ) {
aFillingColor = myEditedObject->GetFillingColor();
aBorderColor = myEditedObject->GetBorderColor();
if ( myOpType == ImportCreatedAsObstacle || myOpType == ImportSelectedAsObstacle ) {
anObject = doc()->CreateObject( KIND_OBSTACLE );
Handle(HYDROData_Obstacle) anObstacle = Handle(HYDROData_Obstacle)::DownCast( anObject );
- anObstacle->SetFillingColor( HYDROData_Obstacle::DefaultFillingColor() );
- anObstacle->SetBorderColor( HYDROData_Obstacle::DefaultBorderColor() );
+ anObstacle->SetFillingColor( anObstacle->DefaultFillingColor() );
+ anObstacle->SetBorderColor( anObstacle->DefaultBorderColor() );
anObstacle->SetGeomObjectEntry( anEntry.toLatin1().constData() );
} else if ( myOpType == ImportSelectedAsPolyline ) {
anObject = doc()->CreateObject( KIND_POLYLINEXY );
for( ;HYDROGUI_Tool::FindObjectByName(module(), aLCName); i++)
aLCName = aPanel->getObjectName() + "_polygon_" + QString::number(i);
aLC->SetName( aLCName );
- aLC->SetFillingColor( HYDROData_LandCover::DefaultFillingColor() );
- aLC->SetBorderColor( HYDROData_LandCover::DefaultBorderColor() );
+ aLC->SetFillingColor( aLC->DefaultFillingColor() );
+ aLC->SetBorderColor( aLC->DefaultBorderColor() );
aLC->SetShape(aResShape);
aLC->Show();
{
HYDROGUI_Shape* aShape = new HYDROGUI_Shape( aCtx, NULL, getPreviewZLayer() );
- aShape->setFillingColor( HYDROData_LandCover::DefaultFillingColor(), false, false );
- aShape->setBorderColor( HYDROData_LandCover::DefaultBorderColor(), false, false );
+ aShape->setFillingColor( aLC->DefaultFillingColor(), false, false );
+ aShape->setBorderColor( aLC->DefaultBorderColor(), false, false );
if( !aFace.IsNull() )
aShape->setShape( aLC->GetShape() );
myPolygonName2PrsShape.insert( "polygon_" + QString::number(i), aShape);
if ( anObstacle.IsNull() ) {
anObstacle = Handle(HYDROData_Obstacle)::DownCast( doc()->CreateObject(KIND_OBSTACLE) );
- anObstacle->SetFillingColor( HYDROData_Obstacle::DefaultFillingColor() );
- anObstacle->SetBorderColor( HYDROData_Obstacle::DefaultBorderColor() );
+ anObstacle->SetFillingColor( anObstacle->DefaultFillingColor() );
+ anObstacle->SetBorderColor( anObstacle->DefaultBorderColor() );
}
if ( !anObstacle.IsNull() ) {
if ( !myIsEdit )
{
- aZoneObj->SetFillingColor( HYDROData_LandCover::DefaultFillingColor() );
- aZoneObj->SetBorderColor( HYDROData_LandCover::DefaultBorderColor() );
+ aZoneObj->SetFillingColor( aZoneObj->DefaultFillingColor() );
+ aZoneObj->SetBorderColor( aZoneObj->DefaultBorderColor() );
}
aZoneObj->SetPolylines( aZonePolylines );
if ( aViewManager && myPreviewPrs )
{
- QColor aFillingColor = HYDROData_LandCover::DefaultFillingColor();
- QColor aBorderColor = HYDROData_LandCover::DefaultBorderColor();
+ QColor aFillingColor = myEditedObject->DefaultFillingColor();
+ QColor aBorderColor = myEditedObject->DefaultBorderColor();
if ( !myEditedObject.IsNull() ) {
aFillingColor = myEditedObject->GetFillingColor();
aBorderColor = myEditedObject->GetBorderColor();
if( !myIsEdit )
{
- aResult->SetBorderColor( HYDROData_Polyline3D::DefaultBorderColor() );
+ aResult->SetBorderColor( aResult->DefaultBorderColor() );
}
aResult->Update();
if ( !myIsEdit )
{
- aProfileObj->SetBorderColor( HYDROData_Profile::DefaultBorderColor() );
+ aProfileObj->SetBorderColor( aProfileObj->DefaultBorderColor() );
}
// At first we update the child u,z profile object
}
else
{
- // Set the filling color for zone
- setFillingColor( aZone->GetColor(HYDROData_ImmersibleZone::DefaultFillingColor()) );
+ // Set the filling color for zone
+ setFillingColor( aZone->GetColor( Qt::darkBlue ) );
}
}
else if ( myObject->IsKind( STANDARD_TYPE(HYDROData_Profile) ) )
if ( !myIsEdit )
{
- myEditedObject->SetFillingColor( HYDROData_Stream::DefaultFillingColor() );
- myEditedObject->SetBorderColor( HYDROData_Stream::DefaultBorderColor() );
+ myEditedObject->SetFillingColor( myEditedObject->DefaultFillingColor() );
+ myEditedObject->SetBorderColor( myEditedObject->DefaultBorderColor() );
}
// Erase preview
{
myPreviewPrs = new HYDROGUI_Shape( aCtx, NULL, getPreviewZLayer() );
- QColor aFillingColor = HYDROData_Stream::DefaultFillingColor();
- QColor aBorderColor = HYDROData_Stream::DefaultBorderColor();
+ QColor aFillingColor = myEditedObject->DefaultFillingColor();
+ QColor aBorderColor = myEditedObject->DefaultBorderColor();
if ( !myEditedObject.IsNull() )
{
aFillingColor = myEditedObject->GetFillingColor();
QColor HYDROGUI_Tool::GenerateFillingColor( const Handle(HYDROData_Document)& theDoc,
const QStringList& theZoneNames )
{
- QColor aFillingColor( HYDROData_ImmersibleZone::DefaultFillingColor() );
+ QColor aFillingColor( Qt::darkBlue );
int aCounter = 0;
int aR = 0, aG = 0, aB = 0;
/**
* Returns default filling color for new channel.
*/
- static QColor DefaultFillingColor();
+ virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new channel.
*/
- static QColor DefaultBorderColor();
+ virtual QColor DefaultBorderColor() const;
public:
/**
* Returns default filling color for new digue.
*/
- static QColor DefaultFillingColor();
+ virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new digue.
*/
- static QColor DefaultBorderColor();
+ virtual QColor DefaultBorderColor() const;
protected:
/**
/**
* Returns default filling color for new obstacle.
*/
- static QColor DefaultFillingColor();
+ virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new obstacle.
*/
- static QColor DefaultBorderColor();
+ virtual QColor DefaultBorderColor() const;
public:
/**
* Returns default filling color for new 3D polyline.
*/
- static QColor DefaultFillingColor();
+ virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new 3D polyline.
*/
- static QColor DefaultBorderColor();
+ virtual QColor DefaultBorderColor() const;
public:
/**
* Returns default wire color for new polyline.
*/
- static QColor DefaultWireColor();
+ static QColor DefaultWireColor() const;
/**
* Returns the presentation of polyline section in Qt maner.
/**
* Returns default filling color for new profile.
*/
- static QColor DefaultFillingColor();
+ virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new profile.
*/
- static QColor DefaultBorderColor();
+ virtual QColor DefaultBorderColor() const;
public:
/**
* Returns default filling color for new stream.
*/
- static QColor DefaultFillingColor();
+ virtual QColor DefaultFillingColor() const;
/**
* Returns default border color for new stream.
*/
- static QColor DefaultBorderColor();
+ virtual QColor DefaultBorderColor() const;
/**
* Returns true if given polyline can be used as stream axis.