From: rkv Date: Fri, 10 Jan 2014 12:54:18 +0000 (+0000) Subject: SIP: HYDROData_SplittedShapesGroup is included. X-Git-Tag: BR_hydro_v_1_0~113 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a4d799258d85afe105c29c1c25ac2789b61fe84;p=modules%2Fhydro.git SIP: HYDROData_SplittedShapesGroup is included. --- diff --git a/CMake/UsePyQt4EXT.cmake b/CMake/UsePyQt4EXT.cmake index 0b32c356..0ee8b06f 100644 --- a/CMake/UsePyQt4EXT.cmake +++ b/CMake/UsePyQt4EXT.cmake @@ -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) diff --git a/src/HYDROPy/CMakeLists.txt b/src/HYDROPy/CMakeLists.txt index 8158f757..ffd4c210 100644 --- a/src/HYDROPy/CMakeLists.txt +++ b/src/HYDROPy/CMakeLists.txt @@ -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 diff --git a/src/HYDROPy/HYDROData.sip b/src/HYDROPy/HYDROData.sip index ad42417f..33052691 100644 --- a/src/HYDROPy/HYDROData.sip +++ b/src/HYDROPy/HYDROData.sip @@ -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 diff --git a/src/HYDROPy/HYDROData_Entity.sip b/src/HYDROPy/HYDROData_Entity.sip index c94c6947..2d2ae58e 100644 --- a/src/HYDROPy/HYDROData_Entity.sip +++ b/src/HYDROPy/HYDROData_Entity.sip @@ -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; diff --git a/src/HYDROPy/HYDROData_ShapesGroup.sip b/src/HYDROPy/HYDROData_ShapesGroup.sip index ca2ccdee..62389c78 100644 --- a/src/HYDROPy/HYDROData_ShapesGroup.sip +++ b/src/HYDROPy/HYDROData_ShapesGroup.sip @@ -31,6 +31,24 @@ class HYDROData_ShapesGroup : public HYDROData_Entity #include %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 index 00000000..dec91bf4 --- /dev/null +++ b/src/HYDROPy/HYDROData_SplittedShapesGroup.sip @@ -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 +%End + +class HYDROData_SplittedShapesGroup : public HYDROData_ShapesGroup +{ + +%TypeHeaderCode +#include +%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(); +};