Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
copyrights are updated
[modules/hydro.git]
/
src
/
HYDROData
/
HYDROData_Channel.cxx
diff --git
a/src/HYDROData/HYDROData_Channel.cxx
b/src/HYDROData/HYDROData_Channel.cxx
index 33cd9d81e59c84ec059cb4b6a62469634b80a528..9a8fae8657a8a4250d6aa3263216fb65d23de6a4 100644
(file)
--- a/
src/HYDROData/HYDROData_Channel.cxx
+++ b/
src/HYDROData/HYDROData_Channel.cxx
@@
-25,7
+25,6
@@
#include "HYDROData_Projection.h"
#include "HYDROData_ShapesGroup.h"
#include "HYDROData_ShapesTool.h"
#include "HYDROData_Projection.h"
#include "HYDROData_ShapesGroup.h"
#include "HYDROData_ShapesTool.h"
-#include "HYDROData_Pipes.h"
#include "HYDROData_Stream.h"
#include "HYDROData_Tool.h"
#include "HYDROData_Stream.h"
#include "HYDROData_Tool.h"
@@
-73,7
+72,7
@@
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_Channel,HYDROData_ArtificialObject)
HYDROData_Channel::HYDROData_Channel()
HYDROData_Channel::HYDROData_Channel()
-: HYDROData_ArtificialObject()
+: HYDROData_ArtificialObject(
Geom_3d
)
{
}
{
}
@@
-343,26
+342,16
@@
bool HYDROData_Channel::IsHas2dPrs() const
return true;
}
return true;
}
-QColor HYDROData_Channel::DefaultFillingColor()
+QColor HYDROData_Channel::DefaultFillingColor()
const
{
return QColor( Qt::blue );
}
{
return QColor( Qt::blue );
}
-QColor HYDROData_Channel::DefaultBorderColor()
+QColor HYDROData_Channel::DefaultBorderColor()
const
{
return QColor( Qt::transparent );
}
{
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();
bool HYDROData_Channel::SetGuideLine( const Handle(HYDROData_Polyline3D)& theGuideLine )
{
Handle(HYDROData_Polyline3D) aPrevGuideLine = GetGuideLine();
@@
-383,7
+372,7
@@
bool HYDROData_Channel::SetGuideLine( const Handle(HYDROData_Polyline3D)& theGui
SetReferenceObject( theGuideLine, DataTag_GuideLine );
// Indicate model of the need to update the chanel presentation
SetReferenceObject( theGuideLine, DataTag_GuideLine );
// Indicate model of the need to update the chanel presentation
-
SetToUpdate( true
);
+
Changed( Geom_3d
);
return true;
}
return true;
}
@@
-403,7
+392,7
@@
void HYDROData_Channel::RemoveGuideLine()
ClearReferenceObjects( DataTag_GuideLine );
// Indicate model of the need to update the chanel presentation
ClearReferenceObjects( DataTag_GuideLine );
// Indicate model of the need to update the chanel presentation
-
SetToUpdate( true
);
+
Changed( Geom_3d
);
}
bool HYDROData_Channel::SetProfile( const Handle(HYDROData_Profile)& theProfile )
}
bool HYDROData_Channel::SetProfile( const Handle(HYDROData_Profile)& theProfile )
@@
-422,7
+411,7
@@
bool HYDROData_Channel::SetProfile( const Handle(HYDROData_Profile)& theProfile
SetReferenceObject( theProfile, DataTag_Profile );
// Indicate model of the need to update the chanel presentation
SetReferenceObject( theProfile, DataTag_Profile );
// Indicate model of the need to update the chanel presentation
-
SetToUpdate( true
);
+
Changed( Geom_3d
);
return true;
}
return true;
}
@@
-442,7
+431,7
@@
void HYDROData_Channel::RemoveProfile()
ClearReferenceObjects( DataTag_Profile );
// Indicate model of the need to update the chanel presentation
ClearReferenceObjects( DataTag_Profile );
// Indicate model of the need to update the chanel presentation
-
SetToUpdate( true
);
+
Changed( Geom_3d
);
}
ObjectKind HYDROData_Channel::getAltitudeObjectType() const
}
ObjectKind HYDROData_Channel::getAltitudeObjectType() const