Salome HOME
SIP: HYDROData_SplittedShapesGroup is included.
authorrkv <rkv@opencascade.com>
Fri, 10 Jan 2014 12:54:18 +0000 (12:54 +0000)
committerrkv <rkv@opencascade.com>
Fri, 10 Jan 2014 12:54:18 +0000 (12:54 +0000)
CMake/UsePyQt4EXT.cmake
src/HYDROPy/CMakeLists.txt
src/HYDROPy/HYDROData.sip
src/HYDROPy/HYDROData_Entity.sip
src/HYDROPy/HYDROData_ShapesGroup.sip
src/HYDROPy/HYDROData_SplittedShapesGroup.sip [new file with mode: 0644]

index 0b32c3565c548a7bcbc34465f967a48c844bfa12..0ee8b06f98fd398e489ab93e1c4c9883307a0125 100644 (file)
@@ -69,7 +69,7 @@ MACRO(PYQT4_WRAP_SIP_EXT outfiles)
 
     LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_AltitudeObject.cc)
     SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_AltitudeObject.cc)
-
+    
     LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_ObstacleAltitude.cc)
     SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_ObstacleAltitude.cc)
 
@@ -139,6 +139,9 @@ MACRO(PYQT4_WRAP_SIP_EXT outfiles)
     LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_ShapesGroup.cc)
     SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_ShapesGroup.cc)
 
+    LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_SplittedShapesGroup.cc)
+    SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_SplittedShapesGroup.cc)
+    
     LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyTCollection_AsciiString.cc)
     SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyTCollection_AsciiString.cc)
 
index 8158f757464b723d24162d04c279fd9138f88739..ffd4c21007b1b43905ac180265adb66a8e43e11e 100644 (file)
@@ -61,6 +61,7 @@ SET(_sip_files2
   HYDROData_SequenceOfObjects.sip
   HYDROData_Entity.sip
   HYDROData_ShapesGroup.sip
+  HYDROData_SplittedShapesGroup.sip
   HYDROData_IPolyline.sip
   HYDROData_IAltitudeObject.sip
   HYDROData_AltitudeObject.sip
index ad42417f3a9396091dddcc239206b0a2a4271d44..3305269122e45e03fc30a96342b8e5fc1bea7fa7 100644 (file)
@@ -58,6 +58,7 @@ See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 %Include HYDROData_SequenceOfObjects.sip
 %Include HYDROData_Entity.sip
 %Include HYDROData_ShapesGroup.sip
+%Include HYDROData_SplittedShapesGroup.sip
 %Include HYDROData_IPolyline.sip
 %Include HYDROData_IAltitudeObject.sip
 %Include HYDROData_AltitudeObject.sip
index c94c694769cfb11dedb99cc9aa2097c1522c5bb8..2d2ae58e21dd23e12c845ca995c891ad5ce5ae30 100644 (file)
@@ -122,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;
index ca2ccdeec3ac7ee19c620c49d7d534cb2f44c38b..62389c788aa6577f5777999ba1f86cca3508701e 100644 (file)
@@ -31,6 +31,24 @@ class HYDROData_ShapesGroup : public HYDROData_Entity
 #include <HYDROData_ShapesGroup.h>
 %End
 
+%ConvertToSubClassCode
+    // HYDROData_Entity sub-classes provide a unique kind ID.
+    switch ( sipCpp->GetKind() )
+    {
+      case KIND_SPLITTED_GROUP:
+        sipClass = sipClass_HYDROData_SplittedShapesGroup;
+        break;
+        
+      case KIND_UNKNOWN:
+        sipClass = sipClass_HYDROData_Entity;
+        break;
+
+      default:
+        // We don't recognise the type.
+        sipClass = NULL;
+    }
+%End
+
 public:
   // Public methods to work with reference Shapes
 
diff --git a/src/HYDROPy/HYDROData_SplittedShapesGroup.sip b/src/HYDROPy/HYDROData_SplittedShapesGroup.sip
new file mode 100644 (file)
index 0000000..dec91bf
--- /dev/null
@@ -0,0 +1,46 @@
+// 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
+//
+// 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.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
+
+%ExportedHeaderCode
+#include <HYDROData_SplittedShapesGroup.h>
+%End
+
+class HYDROData_SplittedShapesGroup : public HYDROData_ShapesGroup
+{
+
+%TypeHeaderCode
+#include <HYDROData_SplittedShapesGroup.h>
+%End
+
+protected:
+
+  /**
+   * Creates new object in the internal data structure. Use higher level objects 
+   * to create objects with real content.
+   */
+  HYDROData_SplittedShapesGroup();
+
+  /**
+   * Destructs properties of the object and object itself, removes it from the document.
+   */
+  virtual ~HYDROData_SplittedShapesGroup();
+};