X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_Entity.sip;h=9c4bf4fd013772f42f924ddb09c2b24ac2e65fb3;hb=3a1dd3f29ff9b985b0aa2366a2afd5724286cb6e;hp=c07ecc35d01e3835395c90f382c58c7ebc1e960f;hpb=373b25511ebe691dc0e332996521c0de189f6db2;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_Entity.sip b/src/HYDROPy/HYDROData_Entity.sip index c07ecc35..9c4bf4fd 100644 --- a/src/HYDROPy/HYDROData_Entity.sip +++ b/src/HYDROPy/HYDROData_Entity.sip @@ -1,12 +1,8 @@ -// Copyright (C) 2007-2013 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 -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -44,6 +40,9 @@ const ObjectKind KIND_POLYLINEXY; const ObjectKind KIND_CALCULATION; const ObjectKind KIND_ZONE; const ObjectKind KIND_REGION; +const ObjectKind KIND_SHAPES_GROUP; +const ObjectKind KIND_SPLITTED_GROUP; +const ObjectKind KIND_OBSTACLE_ALTITUDE; class HYDROData_Entity { @@ -59,65 +58,85 @@ class HYDROData_Entity sipClass = sipClass_HYDROData_Image; break; - case KIND_POLYLINEXY: - sipClass = sipClass_HYDROData_PolylineXY; - break; - - case KIND_PROFILEUZ: - sipClass = sipClass_HYDROData_ProfileUZ; + case KIND_POLYLINE: + sipClass = sipClass_HYDROData_Polyline3D; break; case KIND_BATHYMETRY: sipClass = sipClass_HYDROData_Bathymetry; break; - case KIND_OBSTACLE_ALTITUDE: - sipClass = sipClass_HYDROData_ObstacleAltitude; + case KIND_ALTITUDE: + sipClass = sipClass_HYDROData_AltitudeObject; break; case KIND_IMMERSIBLE_ZONE: sipClass = sipClass_HYDROData_ImmersibleZone; break; - - case KIND_DIGUE: - sipClass = sipClass_HYDROData_Digue; + + case KIND_RIVER: + sipClass = sipClass_HYDROData_River; + break; + + case KIND_STREAM: + sipClass = sipClass_HYDROData_Stream; + break; + + case KIND_CONFLUENCE: + sipClass = sipClass_HYDROData_Confluence; break; case KIND_CHANNEL: sipClass = sipClass_HYDROData_Channel; break; - - case KIND_CALCULATION: - sipClass = sipClass_HYDROData_CalculationCase; - break; case KIND_OBSTACLE: sipClass = sipClass_HYDROData_Obstacle; break; - case KIND_POLYLINE: - sipClass = sipClass_HYDROData_Polyline3D; + case KIND_DIGUE: + sipClass = sipClass_HYDROData_Digue; break; case KIND_PROFILE: sipClass = sipClass_HYDROData_Profile; break; - case KIND_REGION: - sipClass = sipClass_HYDROData_Region; + case KIND_PROFILEUZ: + sipClass = sipClass_HYDROData_ProfileUZ; break; - case KIND_STREAM: - sipClass = sipClass_HYDROData_Stream; + case KIND_POLYLINEXY: + sipClass = sipClass_HYDROData_PolylineXY; + break; + + case KIND_CALCULATION: + sipClass = sipClass_HYDROData_CalculationCase; break; case KIND_ZONE: sipClass = sipClass_HYDROData_Zone; break; + case KIND_REGION: + sipClass = sipClass_HYDROData_Region; + break; + case KIND_SHAPES_GROUP: sipClass = sipClass_HYDROData_ShapesGroup; break; + + case KIND_SPLITTED_GROUP: + sipClass = sipClass_HYDROData_SplittedShapesGroup; + break; + + case KIND_STREAM_ALTITUDE: + sipClass = sipClass_HYDROData_StreamAltitude; + break; + + case KIND_OBSTACLE_ALTITUDE: + sipClass = sipClass_HYDROData_ObstacleAltitude; + break; case KIND_UNKNOWN: sipClass = sipClass_HYDROData_Entity; @@ -151,6 +170,11 @@ public: */ virtual void Update(); + /** + * Checks that object has 2D presentation. Base implementation returns false. + */ + virtual bool IsHas2dPrs() const; + /** * Returns data of object wrapped to QVariant. * Base implementation returns null value. @@ -227,6 +251,23 @@ public: */ virtual HYDROData_SequenceOfObjects GetAllReferenceObjects() const; + + /** + * Returns the z-level for object presentation, -1 if no z-level. + */ + virtual bool GetZLevel( int& theLevel ) const [Standard_Boolean ( Standard_Integer& )]; + + /** + * Set the z-level for object presentation. + */ + virtual void SetZLevel( const int& theLevel ) [void ( const Standard_Integer& )]; + + /** + * Remove the z-level of object presentation. + */ + virtual void RemoveZLevel(); + + protected: /**