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 c78c5e416bbc3ca0a2b68eb6aff0c92759590bda..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
)
{
}
{
}
@@
-114,16
+113,6
@@
HYDROData_SequenceOfObjects HYDROData_Channel::GetAllReferenceObjects() const
return aResSeq;
}
return aResSeq;
}
-TopoDS_Shape HYDROData_Channel::GetTopShape() const
-{
- return getTopShape();
-}
-
-TopoDS_Shape HYDROData_Channel::GetShape3D() const
-{
- return getShape3D();
-}
-
bool HYDROData_Channel::CreatePresentations( const Handle(HYDROData_Polyline3D)& theGuideLine,
const Handle(HYDROData_Profile)& theProfile,
PrsDefinition& thePrs )
bool HYDROData_Channel::CreatePresentations( const Handle(HYDROData_Polyline3D)& theGuideLine,
const Handle(HYDROData_Profile)& theProfile,
PrsDefinition& thePrs )
@@
-353,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();
@@
-393,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;
}
@@
-413,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 )
@@
-432,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;
}
@@
-452,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