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_IPolyline.cxx
diff --git
a/src/HYDROData/HYDROData_IPolyline.cxx
b/src/HYDROData/HYDROData_IPolyline.cxx
index 4b7354b0a4a7118b888d90da17633ef86563226c..adc76d3b87fe47b3b677c041adabcca52240be77 100755
(executable)
--- a/
src/HYDROData/HYDROData_IPolyline.cxx
+++ b/
src/HYDROData/HYDROData_IPolyline.cxx
@@
-1,8
+1,4
@@
-// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
+// Copyright (C) 2014-2015 EDF-R&D
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
@@
-28,19
+24,14
@@
#include <TDataStd_ExtStringList.hxx>
#include <TDataStd_IntegerList.hxx>
#include <TDataStd_RealList.hxx>
#include <TDataStd_ExtStringList.hxx>
#include <TDataStd_IntegerList.hxx>
#include <TDataStd_RealList.hxx>
-
#include <TopoDS_Shape.hxx>
#include <TopoDS_Shape.hxx>
-
-#include <TNaming_Builder.hxx>
-#include <TNaming_NamedShape.hxx>
-
#include <QColor>
IMPLEMENT_STANDARD_HANDLE(HYDROData_IPolyline, HYDROData_Entity)
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_IPolyline, HYDROData_Entity)
HYDROData_IPolyline::HYDROData_IPolyline()
#include <QColor>
IMPLEMENT_STANDARD_HANDLE(HYDROData_IPolyline, HYDROData_Entity)
IMPLEMENT_STANDARD_RTTIEXT(HYDROData_IPolyline, HYDROData_Entity)
HYDROData_IPolyline::HYDROData_IPolyline()
-: HYDROData_Entity()
+: HYDROData_Entity(
Geom_2d
)
{
}
{
}
@@
-68,29
+59,19
@@
int HYDROData_IPolyline::NbPoints( const int theSectionIndex ) const
return GetPoints( theSectionIndex ).Length();
}
return GetPoints( theSectionIndex ).Length();
}
-TopoDS_Shape HYDROData_IPolyline::
getPolyline
Shape() const
+TopoDS_Shape HYDROData_IPolyline::
Get
Shape() const
{
{
- TDF_Label aShapeLabel = myLab.FindChild( DataTag_PolylineShape, false );
- if ( !aShapeLabel.IsNull() )
- {
- Handle(TNaming_NamedShape) aNamedShape;
- if ( aShapeLabel.FindAttribute( TNaming_NamedShape::GetID(), aNamedShape ) )
- return aNamedShape->Get();
- }
- return TopoDS_Shape();
+ return HYDROData_Entity::GetShape( DataTag_PolylineShape );
}
}
-void HYDROData_IPolyline::
setPolyline
Shape( const TopoDS_Shape& theShape )
+void HYDROData_IPolyline::
Set
Shape( const TopoDS_Shape& theShape )
{
{
- TNaming_Builder aBuilder( myLab.FindChild( DataTag_PolylineShape ) );
- aBuilder.Generated( theShape );
+ HYDROData_Entity::SetShape( DataTag_PolylineShape, theShape );
}
}
-void HYDROData_IPolyline::
r
emovePolylineShape()
+void HYDROData_IPolyline::
R
emovePolylineShape()
{
{
- TDF_Label aShapeLabel = myLab.FindChild( DataTag_PolylineShape, false );
- if ( !aShapeLabel.IsNull() )
- aShapeLabel.ForgetAllAttributes();
+ SetShape( TopoDS_Shape() );
}
void HYDROData_IPolyline::getSectionsLists( Handle(TDataStd_ExtStringList)& theNamesList,
}
void HYDROData_IPolyline::getSectionsLists( Handle(TDataStd_ExtStringList)& theNamesList,