X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROPy%2FHYDROData_Entity.sip;h=2d2ae58e21dd23e12c845ca995c891ad5ce5ae30;hb=7a4d799258d85afe105c29c1c25ac2789b61fe84;hp=04074c37954ec52cb915eea8c50c6c2280df3ffd;hpb=623f27e44b58b10a571def46700b447f6bf350cd;p=modules%2Fhydro.git diff --git a/src/HYDROPy/HYDROData_Entity.sip b/src/HYDROPy/HYDROData_Entity.sip index 04074c37..2d2ae58e 100644 --- a/src/HYDROPy/HYDROData_Entity.sip +++ b/src/HYDROPy/HYDROData_Entity.sip @@ -55,6 +55,10 @@ class HYDROData_Entity // HYDROData_Entity sub-classes provide a unique kind ID. switch ( sipCpp->GetKind() ) { + case KIND_ALTITUDE: + sipClass = sipClass_HYDROData_AltitudeObject; + break; + case KIND_IMAGE: sipClass = sipClass_HYDROData_Image; break; @@ -63,6 +67,10 @@ class HYDROData_Entity sipClass = sipClass_HYDROData_PolylineXY; break; + case KIND_PROFILEUZ: + sipClass = sipClass_HYDROData_ProfileUZ; + break; + case KIND_BATHYMETRY: sipClass = sipClass_HYDROData_Bathymetry; break; @@ -75,6 +83,14 @@ class HYDROData_Entity sipClass = sipClass_HYDROData_ImmersibleZone; break; + case KIND_DIGUE: + sipClass = sipClass_HYDROData_Digue; + break; + + case KIND_CHANNEL: + sipClass = sipClass_HYDROData_Channel; + break; + case KIND_CALCULATION: sipClass = sipClass_HYDROData_CalculationCase; break; @@ -83,10 +99,22 @@ class HYDROData_Entity sipClass = sipClass_HYDROData_Obstacle; break; + case KIND_POLYLINE: + sipClass = sipClass_HYDROData_Polyline3D; + break; + + case KIND_PROFILE: + sipClass = sipClass_HYDROData_Profile; + break; + case KIND_REGION: sipClass = sipClass_HYDROData_Region; break; + case KIND_STREAM: + sipClass = sipClass_HYDROData_Stream; + break; + case KIND_ZONE: sipClass = sipClass_HYDROData_Zone; break; @@ -94,6 +122,10 @@ class HYDROData_Entity case KIND_SHAPES_GROUP: sipClass = sipClass_HYDROData_ShapesGroup; break; + + case KIND_SPLITTED_GROUP: + sipClass = sipClass_HYDROData_SplittedShapesGroup; + break; case KIND_UNKNOWN: sipClass = sipClass_HYDROData_Entity; @@ -127,6 +159,31 @@ public: */ virtual void Update(); + /** + * Returns data of object wrapped to QVariant. + * Base implementation returns null value. + */ + virtual QVariant GetDataVariant(); + + + /** + * Sets the "MustBeUpdated" flag: if object is depended on updated features. + * \param theFlag is true for objects that must be updated, false for up-to-date + */ + virtual void SetToUpdate( bool theFlag ); + + /** + * Returns the "MustBeUpdated" flag: is object data must be updated or not + * \returns false if object is up to date + */ + virtual bool IsMustBeUpdated() const; + + /** + * Returns flag indicating that object is updateble or not. + */ + virtual bool CanBeUpdated() const; + + /** * Checks is object exists in the data structure. * \returns true is object is not exists in the data model @@ -136,21 +193,41 @@ public: /** * Removes object from the data structure. */ - void Remove(); + virtual void Remove(); - /** - * Returns unique integer identifier of the object (may be used for ordering of objects) - */ - int ID() const; /** * Copies all properties of this to the destinated object. * Objects must be the same type. * \param theDestination initialized object (from any document) - target of copying */ - /* - void CopyTo( HYDROData_Entity theDestination ) const; - */ + void CopyTo( HYDROData_Entity theDestination ) const [void ( const Handle_HYDROData_Entity& )]; + %MethodCode + Handle(HYDROData_Entity) aCopyTo = createHandle( a0 ); + if ( !aCopyTo.IsNull() ) + { + Py_BEGIN_ALLOW_THREADS + sipSelfWasArg ? sipCpp->HYDROData_Entity::CopyTo( aCopyTo ): + sipCpp->CopyTo( aCopyTo ); + Py_END_ALLOW_THREADS + } + %End + + /** + * Returns father object. For object created under root document label + * this method always return NULL object. + */ + HYDROData_Entity GetFatherObject() const [Handle_HYDROData_Entity ()]; + %MethodCode + Handle(HYDROData_Entity) aFather; + + Py_BEGIN_ALLOW_THREADS + aFather = sipSelfWasArg ? sipCpp->HYDROData_Entity::GetFatherObject() : + sipCpp->GetFatherObject(); + Py_END_ALLOW_THREADS + + sipRes = createPointer( aFather ); + %End /** * Returns the list of all reference objects of this object.