Salome HOME
Minor change - public keyword added.
[modules/hydro.git] / src / HYDROPy / HYDROData_Object.sip
index a8af933e3241ed983c47f4f006547fadbdf52cc5..6077443ee6802e7f8ee470cf7244f8964927debe 100644 (file)
@@ -24,7 +24,7 @@
 #include <HYDROData_Object.h>
 %End
 
-class HYDROData_Object : HYDROData_Entity /Abstract/
+class HYDROData_Object : public HYDROData_Entity /Abstract/
 {
 %TypeHeaderCode
 #include <HYDROData_Object.h>
@@ -38,10 +38,22 @@ class HYDROData_Object : HYDROData_Entity /Abstract/
       sipClass = sipClass_HYDROData_Obstacle;
       break;
 
+    case KIND_CONFLUENCE:
+      sipClass = sipClass_HYDROData_Confluence;
+      break;
+      
     case KIND_IMMERSIBLE_ZONE:
       sipClass = sipClass_HYDROData_ImmersibleZone;
       break;
 
+    case KIND_DIGUE:
+      sipClass = sipClass_HYDROData_Digue;
+      break;
+
+    case KIND_CHANNEL:
+      sipClass = sipClass_HYDROData_Channel;
+      break;
+      
     case KIND_POLYLINE:
       sipClass = sipClass_HYDROData_Polyline3D;
       break;
@@ -50,6 +62,10 @@ class HYDROData_Object : HYDROData_Entity /Abstract/
       sipClass = sipClass_HYDROData_Profile;
       break;
 
+    case KIND_STREAM:
+      sipClass = sipClass_HYDROData_Stream;
+      break;
+
     case KIND_UNKNOWN:
       sipClass = sipClass_HYDROData_Entity;
       break;
@@ -102,6 +118,68 @@ public:
    */
   void RemoveAltitudeObject();
 
+  /**
+   * Sets filling color for zone.
+   */
+  virtual void SetFillingColor( const QColor& theColor );
+
+  /**
+   * Returns filling color of zone.
+   */
+  virtual QColor GetFillingColor() const;
+
+  /**
+   * Sets border color for zone.
+   */
+  virtual void SetBorderColor( const QColor& theColor );
+
+  /**
+   * Returns border color of zone.
+   */
+  virtual QColor GetBorderColor() const;
+
+
+  /**
+   * Returns sequence of object groups.
+   */
+  HYDROData_SequenceOfObjects GetGroups() const;
+
+  /**
+   * Returns group data model object by it id.
+   */
+  HYDROData_ShapesGroup GetGroup( const int theGroupId ) const [Handle_HYDROData_ShapesGroup ()];
+  %MethodCode
+
+    Handle(HYDROData_ShapesGroup) aRefGroup;
+    
+    Py_BEGIN_ALLOW_THREADS
+    aRefGroup = sipSelfWasArg ? sipCpp->HYDROData_Object::GetGroup( a0 ) : 
+                                sipCpp->GetGroup( a0 );
+    Py_END_ALLOW_THREADS
+    
+    sipRes = (HYDROData_ShapesGroup*)createPointer( aRefGroup );
+  
+  %End
+
+  /**
+   * Returns group id by data model object.
+   */
+  int GetGroupId( HYDROData_ShapesGroup theGroup ) const [int (const Handle_HYDROData_ShapesGroup&)];
+  %MethodCode
+
+    Handle(HYDROData_ShapesGroup) aRefGroup =
+      Handle(HYDROData_ShapesGroup)::DownCast( createHandle( a0 ) );
+    if ( !aRefGroup.IsNull() )
+    {
+      Py_BEGIN_ALLOW_THREADS
+      sipRes = sipSelfWasArg ? sipCpp->HYDROData_Object::GetGroupId( aRefGroup ) : 
+                               sipCpp->GetGroupId( aRefGroup );
+      Py_END_ALLOW_THREADS
+    }
+
+  %End
+
+
 protected:
 
   /**