Salome HOME
Python API for HYDROData_Polyline. Plus some minor changes.
[modules/hydro.git] / src / HYDROPy / HYDROData_Object.sip
index 59a7a4a168f083589d3aed8cf1f6479cf0d1dc50..ba45f00f2ddde692c2d10d10b6954814c45de272 100644 (file)
@@ -37,6 +37,14 @@ class HYDROData_Object
     // HYDROData_Object sub-classes provide a unique kind ID.
     switch ( sipCpp->GetKind() )
     {
+      case KIND_IMAGE:
+        sipClass = sipClass_HYDROData_Image;
+        break;
+
+      case KIND_POLYLINE:
+        sipClass = sipClass_HYDROData_Polyline;
+        break;
+
       case KIND_BATHYMETRY:
         sipClass = sipClass_HYDROData_Bathymetry;
         break;
@@ -51,22 +59,6 @@ class HYDROData_Object
     }
 %End
 
-public:
-  /**
-   * Visual state data.
-   */
-  struct VisualState
-  {
-    bool Visibility;
-    double Transparency;
-    double ZValue;
-
-    VisualState();
-  };
-  
-  typedef QMap        < int, HYDROData_Object::VisualState > ViewId2VisualStateMap;
-  typedef QMapIterator< int, HYDROData_Object::VisualState > ViewId2VisualStateMapIterator;
-
 public:
 
   /**
@@ -84,21 +76,6 @@ public:
    */
   void SetName(const QString& theName);
 
-  /**
-   * Returns the object visibility state for the view with specified id.
-   * \param theViewId view id
-   * \returns visibility state
-   */
-  bool IsVisible( const int theViewId ) const;
-
-  /**
-   * Sets the object visibility state for the view with specified id.
-   * \param theViewId view id
-   * \param theVal visibility state
-   */
-  void SetVisible( const int theViewId,
-                   const bool theVal );
-
   /**
    * Checks is object exists in the data structure.
    * \returns true is object is not exists in the data model