X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_LandCoverMap.h;h=e009351a2baa6e20176ca49c3baa0b7218103401;hb=f9d37ee66fa46871478d806faa54de237225d3c6;hp=15b697f4da1a79b8aec478bf5e2ded90b4960c7b;hpb=d3536f05df9691a98703c444c528826f1e587b79;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_LandCoverMap.h b/src/HYDROData/HYDROData_LandCoverMap.h index 15b697f4..e009351a 100644 --- a/src/HYDROData/HYDROData_LandCoverMap.h +++ b/src/HYDROData/HYDROData_LandCoverMap.h @@ -25,8 +25,11 @@ #include #include #include +#include +#include class Handle_HYDROData_StricklerTable; +#include typedef NCollection_IndexedDataMap HYDROData_MapOfFaceToStricklerType; @@ -38,7 +41,7 @@ class TopoDS_Iterator; class TopTools_ListOfShape; class Handle( HYDROData_PolylineXY ); class Handle( HYDROData_Object ); -class gp_Pnt2d; +class gp_XY; class HYDROData_LandCoverMap : public HYDROData_Entity { @@ -90,15 +93,16 @@ public: HYDRODATA_EXPORT virtual const ObjectKind GetKind() const; - HYDRODATA_EXPORT bool ImportSHP( const QString& theSHPFileName ); + HYDRODATA_EXPORT bool ImportSHP( const QString& theSHPFileName, + const QList& theIndices = QList() ); + + HYDRODATA_EXPORT bool ExportSHP( const QString& theSHPFileName, bool bUseDiscr = false, double theDefl = 0.1) const; HYDRODATA_EXPORT DBFStatus ImportDBF( const QString& theDBFFileName, const QString& theFieldName, const QStringList& DBFValues, const QStringList& StricklerTypes, const QList& theIndices = QList() ); - - HYDRODATA_EXPORT void ExportSHP( const QString& theSHPFileName ) const; HYDRODATA_EXPORT void ExportDBF( const QString& theDBFFileName, const QString& theFieldName, @@ -140,15 +144,29 @@ public: HYDRODATA_EXPORT void SetTransparency( double ); HYDRODATA_EXPORT double GetTransparency() const; - HYDRODATA_EXPORT TopoDS_Shape RemoveInternal(const TopoDS_Shape& InSh); + HYDRODATA_EXPORT void RemoveInternal(TopoDS_Shape& ShToRebuild, NCollection_IndexedDataMap* aF2FReplace); + + HYDRODATA_EXPORT bool CheckLinear(); + + HYDRODATA_EXPORT virtual void UpdateLocalCS( double theDx, double theDy ); + + HYDRODATA_EXPORT void ClassifyPoints( const std::vector& thePoints, std::vector >& theTypes ) const; + + HYDRODATA_EXPORT void ClassifyPoints( const std::vector& thePoints, + Handle(HYDROData_StricklerTable) theTable, + std::vector& theCoeffs, double DefValue, bool UseMax ) const; protected: void SetShape( const TopoDS_Shape& ); bool Add( const TopoDS_Wire&, const QString& ); + bool LocalPartition( const TopoDS_Shape&, const QString& theNewType ); + static TopoDS_Shape MergeFaces(const TopTools_ListOfShape& theFaces, - bool IsToUnify, double theTolerance = 1E-5 ); + bool IsToUnify, + TopTools_IndexedDataMapOfShapeListOfShape* theShHistory = NULL, + double theTolerance = 1E-5 ); public: DEFINE_STANDARD_RTTI( HYDROData_LandCoverMap );