]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
global misprinting in the word "splitted" is replaced by "split"
authorasl <asl@opencascade.com>
Wed, 18 Nov 2015 09:29:18 +0000 (12:29 +0300)
committerasl <asl@opencascade.com>
Wed, 18 Nov 2015 09:33:02 +0000 (12:33 +0300)
38 files changed:
CMake/UsePyQt4EXT.cmake
src/HYDROData/CMakeLists.txt
src/HYDROData/HYDROData_CalculationCase.cxx
src/HYDROData/HYDROData_CalculationCase.h
src/HYDROData/HYDROData_Entity.cxx
src/HYDROData/HYDROData_Entity.h
src/HYDROData/HYDROData_Image.cxx
src/HYDROData/HYDROData_Image.h
src/HYDROData/HYDROData_Iterator.cxx
src/HYDROData/HYDROData_PolylineOperator.cxx
src/HYDROData/HYDROData_SplitShapesGroup.cxx [new file with mode: 0644]
src/HYDROData/HYDROData_SplitShapesGroup.h [new file with mode: 0644]
src/HYDROData/HYDROData_SplittedShapesGroup.cxx [deleted file]
src/HYDROData/HYDROData_SplittedShapesGroup.h [deleted file]
src/HYDROData/HYDROData_TopoCurve.h
src/HYDROGUI/HYDROGUI_CalculationOp.h
src/HYDROGUI/HYDROGUI_DataModel.cxx
src/HYDROGUI/HYDROGUI_LandCoverMapOp.cxx
src/HYDROGUI/HYDROGUI_Module.cxx
src/HYDROGUI/HYDROGUI_Operations.cxx
src/HYDROGUI/HYDROGUI_Operations.h
src/HYDROGUI/HYDROGUI_Tool2.cxx
src/HYDROGUI/HYDROGUI_TwoImagesOp.cxx
src/HYDROGUI/resources/HYDROGUI_images.ts
src/HYDROGUI/resources/HYDROGUI_msg_en.ts
src/HYDROGUI/resources/icon_edit_split_image.png [new file with mode: 0644]
src/HYDROGUI/resources/icon_edit_splitted_image.png [deleted file]
src/HYDROPy/CMakeLists.txt
src/HYDROPy/HYDROData.sip
src/HYDROPy/HYDROData_CalculationCase.sip
src/HYDROPy/HYDROData_Document.sip
src/HYDROPy/HYDROData_Entity.sip
src/HYDROPy/HYDROData_Image.sip
src/HYDROPy/HYDROData_ShapesGroup.sip
src/HYDROPy/HYDROData_SplitShapesGroup.sip [new file with mode: 0644]
src/HYDROPy/HYDROData_SplittedShapesGroup.sip [deleted file]
src/HYDRO_tests/ExternalFiles.cmake
src/HYDRO_tests/test_HYDROGUI_LandCoverMapDlg.cxx

index bd1875f6aa869e3977df2fc18838d15a1f02c767..b6b0f5a50c2b7dfea15de5c651797a4715438756 100644 (file)
@@ -145,8 +145,8 @@ 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}/sipHYDROPyHYDROData_SplitShapesGroup.cc)
+    SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyHYDROData_SplitShapesGroup.cc)
     
     LIST(APPEND _output ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyTCollection_AsciiString.cc)
     SET(${outfiles} ${${outfiles}} ${CMAKE_CURRENT_BINARY_DIR}/sipHYDROPyTCollection_AsciiString.cc)
index f1868fb7d8d22e2c8b9d78a595a768f3446e6e1c..707e669443f77fa6613b415ce1f71e6b6066dece 100644 (file)
@@ -37,7 +37,7 @@ set(PROJECT_HEADERS
     HYDROData_River.h
     HYDROData_ShapesGroup.h
     HYDROData_ShapesTool.h
-    HYDROData_SplittedShapesGroup.h
+    HYDROData_SplitShapesGroup.h
     HYDROData_SplitToZonesTool.h
     HYDROData_Stream.h
     HYDROData_StreamAltitude.h
@@ -93,7 +93,7 @@ set(PROJECT_SOURCES
     HYDROData_River.cxx
     HYDROData_ShapesGroup.cxx
     HYDROData_ShapesTool.cxx
-    HYDROData_SplittedShapesGroup.cxx
+    HYDROData_SplitShapesGroup.cxx
     HYDROData_SplitToZonesTool.cxx
     HYDROData_Stream.cxx
     HYDROData_StreamAltitude.cxx
index d0927c2bcdfc4fea9aa7771da9c7f973c51cfd34..3919019f0adcfac78e69d3c05c67502bdba55647 100644 (file)
@@ -26,7 +26,7 @@
 #include "HYDROData_PolylineXY.h"
 #include "HYDROData_StricklerTable.h"
 #include "HYDROData_LandCoverMap.h"
-#include "HYDROData_SplittedShapesGroup.h"
+#include "HYDROData_SplitShapesGroup.h"
 #include "HYDROData_Region.h"
 #include "HYDROData_Tool.h"
 #include "HYDROData_GeomTool.h"
@@ -97,14 +97,14 @@ void HYDROData_CalculationCase::SetName( const QString& theName )
     // Update names of regions and its zones
     UpdateRegionsNames( GetRegions(), anOldCaseName, theName );
 
-    HYDROData_SequenceOfObjects aGroups = GetSplittedGroups();
+    HYDROData_SequenceOfObjects aGroups = GetSplitGroups();
 
     HYDROData_SequenceOfObjects::Iterator anIter;
     anIter.Init( aGroups );
     for ( ; anIter.More(); anIter.Next() )
     {
-      Handle(HYDROData_SplittedShapesGroup) aGroup =
-        Handle(HYDROData_SplittedShapesGroup)::DownCast( anIter.Value() );
+      Handle(HYDROData_SplitShapesGroup) aGroup =
+        Handle(HYDROData_SplitShapesGroup)::DownCast( anIter.Value() );
       if ( aGroup.IsNull() )
         continue;
 
@@ -263,7 +263,7 @@ void HYDROData_CalculationCase::Update()
 
   // At first we remove previously created objects
   RemoveRegions();
-  RemoveSplittedGroups();
+  RemoveSplitGroups();
 
   Handle(HYDROData_Document) aDocument = HYDROData_Document::Document( myLab );
   if ( aDocument.IsNull() )
@@ -409,7 +409,7 @@ void HYDROData_CalculationCase::CreateRegionsAuto( const Handle(HYDROData_Docume
 void HYDROData_CalculationCase::CreateEdgeGroupsDef( const Handle(HYDROData_Document)& theDoc,
                                                      const HYDROData_SplitToZonesTool::SplitDataList& theEdges )
 {
-  QMap<QString,Handle(HYDROData_SplittedShapesGroup)> aSplittedEdgesGroupsMap;
+  QMap<QString,Handle(HYDROData_SplitShapesGroup)> aSplitEdgesGroupsMap;
 
   HYDROData_SplitToZonesTool::SplitDataListIterator anIter( theEdges );
   while( anIter.hasNext() )
@@ -426,20 +426,20 @@ void HYDROData_CalculationCase::CreateEdgeGroupsDef( const Handle(HYDROData_Docu
     QString aStr = aSplitData.ObjectNames.join(" "); 
          cout << " CCase: Names = "<<aStr.toStdString() << " size = " <<aSplitData.ObjectNames.size() <<endl; 
 #endif
-    Handle(HYDROData_SplittedShapesGroup) aSplittedGroup;
-    if ( !aSplittedEdgesGroupsMap.contains( anObjName ) )
+    Handle(HYDROData_SplitShapesGroup) aSplitGroup;
+    if ( !aSplitEdgesGroupsMap.contains( anObjName ) )
     {
-      aSplittedGroup = addNewSplittedGroup( CALCULATION_GROUPS_PREF + anObjName );
-      aSplittedEdgesGroupsMap.insert( anObjName, aSplittedGroup );
+      aSplitGroup = addNewSplitGroup( CALCULATION_GROUPS_PREF + anObjName );
+      aSplitEdgesGroupsMap.insert( anObjName, aSplitGroup );
     }
     else
     {
-      aSplittedGroup = aSplittedEdgesGroupsMap[ anObjName ];
+      aSplitGroup = aSplitEdgesGroupsMap[ anObjName ];
     }
-    if ( aSplittedGroup.IsNull() )
+    if ( aSplitGroup.IsNull() )
       continue;
 
-    aSplittedGroup->AddShape( aSplitData.Shape );
+    aSplitGroup->AddShape( aSplitData.Shape );
   }
 }
 
@@ -694,14 +694,14 @@ void HYDROData_CalculationCase::RemoveRegions()
   myLab.FindChild( DataTag_ChildRegion ).ForgetAllAttributes();
 }
 
-HYDROData_SequenceOfObjects HYDROData_CalculationCase::GetSplittedGroups() const
+HYDROData_SequenceOfObjects HYDROData_CalculationCase::GetSplitGroups() const
 {
-  return GetReferenceObjects( DataTag_SplittedGroups );
+  return GetReferenceObjects( DataTag_SplitGroups );
 }
 
-void HYDROData_CalculationCase::RemoveSplittedGroups()
+void HYDROData_CalculationCase::RemoveSplitGroups()
 {
-  myLab.FindChild( DataTag_SplittedGroups ).ForgetAllAttributes();
+  myLab.FindChild( DataTag_SplitGroups ).ForgetAllAttributes();
 }
 
 double HYDROData_CalculationCase::GetAltitudeForPoint( const gp_XY& thePoint ) const
@@ -951,14 +951,14 @@ Handle(HYDROData_Region) HYDROData_CalculationCase::addNewRegion( const Handle(H
   return aNewRegion;
 }
 
-Handle(HYDROData_SplittedShapesGroup) HYDROData_CalculationCase::addNewSplittedGroup( const QString& theName )
+Handle(HYDROData_SplitShapesGroup) HYDROData_CalculationCase::addNewSplitGroup( const QString& theName )
 {
-  TDF_Label aNewLab = myLab.FindChild( DataTag_SplittedGroups ).NewChild();
+  TDF_Label aNewLab = myLab.FindChild( DataTag_SplitGroups ).NewChild();
 
-  Handle(HYDROData_SplittedShapesGroup) aNewGroup =
-    Handle(HYDROData_SplittedShapesGroup)::DownCast( 
-      HYDROData_Iterator::CreateObject( aNewLab, KIND_SPLITTED_GROUP ) );
-  AddReferenceObject( aNewGroup, DataTag_SplittedGroups );
+  Handle(HYDROData_SplitShapesGroup) aNewGroup =
+    Handle(HYDROData_SplitShapesGroup)::DownCast( 
+      HYDROData_Iterator::CreateObject( aNewLab, KIND_SPLIT_GROUP ) );
+  AddReferenceObject( aNewGroup, DataTag_SplitGroups );
 
   aNewGroup->SetName( theName );
 
@@ -988,9 +988,9 @@ bool HYDROData_CalculationCase::Export( GEOM::GEOM_Gen_var  theGeomEngine,
   HYDROData_ShapesGroup::SeqOfGroupsDefs aSeqOfGroupsDefs;
 
   // Get groups definitions
-  HYDROData_SequenceOfObjects aSplittedGroups = GetSplittedGroups();
+  HYDROData_SequenceOfObjects aSplitGroups = GetSplitGroups();
 
-  HYDROData_SequenceOfObjects::Iterator anIter( aSplittedGroups );
+  HYDROData_SequenceOfObjects::Iterator anIter( aSplitGroups );
   for ( ; anIter.More(); anIter.Next() )
   {
     // Get shapes group
index 7db0d86bfcb91b9e6b5d7895984ad58968818b18..88f2c901abb59b7245b4ecd5f824ed30c6ef8308 100644 (file)
@@ -50,7 +50,7 @@ class Handle(HYDROData_Region);
 class Handle(HYDROData_Zone);
 class Handle(HYDROData_PolylineXY);
 class Handle(HYDROData_ShapesGroup);
-class Handle(HYDROData_SplittedShapesGroup);
+class Handle(HYDROData_SplitShapesGroup);
 class Handle(HYDROData_Document);
 class Handle(HYDROData_StricklerTable);
 class Handle(HYDROData_LandCoverMap);
@@ -92,7 +92,7 @@ public:
     DataTag_Region,                    ///< reference regions
     DataTag_Polyline,                  ///< reference boundary polyline
     DataTag_GeometryGroup,             ///< reference geometry groups
-    DataTag_SplittedGroups,            ///< reference splitted groups
+    DataTag_SplitGroups,               ///< reference split groups
     DataTag_CustomRules,               ///< custom rules
     DataTag_AssignmentMode,            ///< assignment mode
     DataTag_StricklerTable,            ///< reference Strickler table
@@ -117,7 +117,7 @@ public:
 
   /**
    * Updates the name of this object.
-   * Reimplemented to update the names of regions, zones and splitted groups.
+   * Reimplemented to update the names of regions, zones and split groups.
    */
   HYDRODATA_EXPORT virtual void SetName( const QString& theName );  
 
@@ -267,12 +267,12 @@ public:
   /**
    * Returns all reference geometry groups of calculation case.
    */
-  HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetSplittedGroups() const;
+  HYDRODATA_EXPORT virtual HYDROData_SequenceOfObjects GetSplitGroups() const;
 
   /**
    * Removes all reference geometry groups from calculation case.
    */
-  HYDRODATA_EXPORT virtual void RemoveSplittedGroups();
+  HYDRODATA_EXPORT virtual void RemoveSplitGroups();
 
   /**
    * Exports the calculation case data (shell and groups) to GEOM module.
@@ -409,16 +409,16 @@ private:
                                          bool isPrefix = true );
 
   /**
-   * Add new one splitted edges group for calculation case.
+   * Add new one split edges group for calculation case.
    */
-  Handle(HYDROData_SplittedShapesGroup) addNewSplittedGroup( const QString& theName );
+  Handle(HYDROData_SplitShapesGroup) addNewSplitGroup( const QString& theName );
 
   /**
    * Exports the given faces as shell and the given groups to GEOM module.
    * \param theGeomEngine GEOM module engine
    * \param theStudy SALOMEDS study, is used for publishing of GEOM objects
    * \param theFaces the list of faces to make shell 
-   * \param theSplittedGroups the list of groups
+   * \param theSplitGroups the list of groups
    * \return true in case of success
    */
 #ifndef LIGHT_MODE
index 7857cbc7f10141e5be65fb8a30e687ea69d0444d..d10c3b09eb00b4f5608d239c401749a1922ed6a9 100644 (file)
@@ -645,7 +645,7 @@ QString HYDROData_Entity::getPyTypeID() const
     case KIND_NATURAL_OBJECT:    return "KIND_NATURAL_OBJECT";
     case KIND_DUMMY_3D:          return "KIND_DUMMY_3D";
     case KIND_SHAPES_GROUP:      return "KIND_SHAPES_GROUP";
-    case KIND_SPLITTED_GROUP:    return "KIND_SPLITTED_GROUP";
+    case KIND_SPLIT_GROUP:       return "KIND_SPLIT_GROUP";
     case KIND_STREAM_ALTITUDE:   return "KIND_STREAM_ALTITUDE";
     case KIND_OBSTACLE_ALTITUDE: return "KIND_OBSTACLE_ALTITUDE";
     case KIND_STRICKLER_TABLE:   return "KIND_STRICKLER_TABLE";
index 7e22bf794db5940372b09211648ac912ab4c0e2a..44c34dfd81efe9ab1f9f58a324906c749d6da571 100644 (file)
@@ -58,7 +58,7 @@ const ObjectKind KIND_ARTIFICIAL_OBJECT   = 19;
 const ObjectKind KIND_NATURAL_OBJECT      = 20;
 const ObjectKind KIND_DUMMY_3D            = 21;
 const ObjectKind KIND_SHAPES_GROUP        = 22;
-const ObjectKind KIND_SPLITTED_GROUP      = 23;
+const ObjectKind KIND_SPLIT_GROUP         = 23;
 const ObjectKind KIND_STREAM_ALTITUDE     = 24;
 const ObjectKind KIND_OBSTACLE_ALTITUDE   = 25;
 const ObjectKind KIND_STRICKLER_TABLE     = 26;
index 0874417f028bbf0601f19c6cea68655c29b81bd7..d6d187b601c6a1cdf8f32835c4215f3195f88da0 100644 (file)
@@ -46,7 +46,7 @@
 
 #include <boost/math/special_functions/fpclassify.hpp>
 
-static const Standard_GUID GUID_SELF_SPLITTED("997995aa-5c19-40bf-9a60-ab4b70ad04d8");
+static const Standard_GUID GUID_SELF_SPLIT("997995aa-5c19-40bf-9a60-ab4b70ad04d8");
 static const Standard_GUID GUID_HAS_LOCAL_POINTS("FD8841AA-FC44-42fa-B6A7-0F682CCC6F27");
 static const Standard_GUID GUID_HAS_GLOBAL_POINTS("330D0E81-742D-4ea3-92D4-484877CFA7C1");
 
@@ -508,7 +508,7 @@ void HYDROData_Image::RemoveAllReferences()
     ClearReferences();
     SetOperatorName( "" );
     SetArgs( "" );
-    SetIsSelfSplitted( false );
+    SetIsSelfSplit( false );
   }
 
   bool anIsByTwoPoints = IsByTwoPoints();
@@ -875,19 +875,19 @@ QByteArray HYDROData_Image::Args() const
   return QByteArray(aData, aLen);
 }
 
-void HYDROData_Image::SetIsSelfSplitted(bool theFlag)
+void HYDROData_Image::SetIsSelfSplit(bool theFlag)
 {
   if (theFlag) {
-    TDataStd_UAttribute::Set(myLab, GUID_SELF_SPLITTED);
+    TDataStd_UAttribute::Set(myLab, GUID_SELF_SPLIT);
   } else {
-    myLab.ForgetAttribute(GUID_SELF_SPLITTED);
+    myLab.ForgetAttribute(GUID_SELF_SPLIT);
   }
   Changed( Geom_2d );
 }
 
-bool HYDROData_Image::IsSelfSplitted() const
+bool HYDROData_Image::IsSelfSplit() const
 {
-  return myLab.IsAttribute(GUID_SELF_SPLITTED);
+  return myLab.IsAttribute(GUID_SELF_SPLIT);
 }
 
 QPointF HYDROData_Image::generateThirdPoint( const QPointF& thePointA,
index 255e0575a34e80a2a190cca1f9bd68806427f50e..5a25af9ee633a20ce5e2f760476b7bd1aa2aa770 100644 (file)
@@ -363,16 +363,16 @@ public:
   
 
   /**
-   * Marks the image as self-splitted.
-   * \param theFlag is true for self-splitted image
+   * Marks the image as self-split.
+   * \param theFlag is true for self-plit image
    */
-  HYDRODATA_EXPORT void SetIsSelfSplitted(bool theFlag);
+  HYDRODATA_EXPORT void SetIsSelfSplit(bool theFlag);
 
   /**
-   * Checks that the image is self-splitted.
-   * \returns true if image is self-splitted
+   * Checks that the image is self-split.
+   * \returns true if image is self-split
    */
-  HYDRODATA_EXPORT bool IsSelfSplitted() const;
+  HYDRODATA_EXPORT bool IsSelfSplit() const;
 
 private:
 
index 8b4caf928b9910e6dbcfcd0d6ac6a93908edf3ce..615454a9b8dcab5d2934a85defc60e0d8305a412 100644 (file)
@@ -37,7 +37,7 @@
 #include "HYDROData_Region.h"
 #include "HYDROData_River.h"
 #include "HYDROData_ShapesGroup.h"
-#include "HYDROData_SplittedShapesGroup.h"
+#include "HYDROData_SplitShapesGroup.h"
 #include "HYDROData_Stream.h"
 #include "HYDROData_StreamAltitude.h"
 #include "HYDROData_VisualState.h"
@@ -148,7 +148,7 @@ Handle(HYDROData_Entity) HYDROData_Iterator::Object( const TDF_Label& theLabel )
     case KIND_VISUAL_STATE:       aResult = new HYDROData_VisualState();          break;
     case KIND_DUMMY_3D:           aResult = new HYDROData_DummyObject3D();        break;
     case KIND_SHAPES_GROUP:       aResult = new HYDROData_ShapesGroup();          break;
-    case KIND_SPLITTED_GROUP:     aResult = new HYDROData_SplittedShapesGroup();  break;
+    case KIND_SPLIT_GROUP:        aResult = new HYDROData_SplitShapesGroup();     break;
     case KIND_STREAM_ALTITUDE:    aResult = new HYDROData_StreamAltitude();       break;
     case KIND_OBSTACLE_ALTITUDE:  aResult = new HYDROData_ObstacleAltitude();     break;
     case KIND_STRICKLER_TABLE:    aResult = new HYDROData_StricklerTable();       break;
index 03e6d6005301e00cc805b613f6e31bfcc585dfbf..6dbbd74562279b6c59b9958cf67c250f233b92e2 100644 (file)
@@ -222,12 +222,12 @@ bool HYDROData_PolylineOperator::split( const Handle( HYDROData_Document )& theD
       aCurve.Intersect(aToolCurves[aTSI], aParams);
     }
 
-    std::deque<HYDROData_TopoCurve> aSplittedCurves;
-    theIsIntersected |= aCurve.Cut(aParams, aSplittedCurves);
+    std::deque<HYDROData_TopoCurve> aSplitCurves;
+    theIsIntersected |= aCurve.Cut(aParams, aSplitCurves);
     std::deque<HYDROData_TopoCurve>::const_iterator aCIt =
-      aSplittedCurves.begin();
+      aSplitCurves.begin();
     std::deque<HYDROData_TopoCurve>::const_iterator aLastCIt =
-      aSplittedCurves.end();
+      aSplitCurves.end();
     for (; aCIt != aLastCIt; ++aCIt)
     {
       aResult.push_back(aCIt->Wire());
diff --git a/src/HYDROData/HYDROData_SplitShapesGroup.cxx b/src/HYDROData/HYDROData_SplitShapesGroup.cxx
new file mode 100644 (file)
index 0000000..dd50bc4
--- /dev/null
@@ -0,0 +1,33 @@
+// Copyright (C) 2014-2015  EDF-R&D
+// 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, or (at your option) any later version.
+//
+// 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
+//
+
+#include "HYDROData_SplitShapesGroup.h"
+
+IMPLEMENT_STANDARD_HANDLE(HYDROData_SplitShapesGroup,HYDROData_ShapesGroup)
+IMPLEMENT_STANDARD_RTTIEXT(HYDROData_SplitShapesGroup,HYDROData_ShapesGroup)
+
+HYDROData_SplitShapesGroup::HYDROData_SplitShapesGroup()
+: HYDROData_ShapesGroup()
+{
+}
+
+HYDROData_SplitShapesGroup::~HYDROData_SplitShapesGroup()
+{
+}
+
+
diff --git a/src/HYDROData/HYDROData_SplitShapesGroup.h b/src/HYDROData/HYDROData_SplitShapesGroup.h
new file mode 100644 (file)
index 0000000..81e04de
--- /dev/null
@@ -0,0 +1,65 @@
+// Copyright (C) 2014-2015  EDF-R&D
+// 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, or (at your option) any later version.
+//
+// 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
+//
+
+#ifndef HYDROData_SplitShapesGroup_HeaderFile
+#define HYDROData_SplitShapesGroup_HeaderFile
+
+#include <HYDROData_ShapesGroup.h>
+
+DEFINE_STANDARD_HANDLE(HYDROData_SplitShapesGroup, HYDROData_ShapesGroup)
+
+
+/**\class HYDROData_SplitShapesGroup
+ * \brief Class that stores/retreives the sequence of split shapes.
+ */
+class HYDROData_SplitShapesGroup : public HYDROData_ShapesGroup
+{
+protected:
+  /**
+   * Enumeration of tags corresponding to the persistent object parameters.
+   */
+  enum DataTag
+  {
+    DataTag_First = HYDROData_ShapesGroup::DataTag_First + 100 ///< first tag, to reserve
+  };
+
+public:
+  DEFINE_STANDARD_RTTI(HYDROData_SplitShapesGroup);
+
+  /**
+   * Returns the kind of this object. Must be redefined in all objects of known type.
+   */
+  HYDRODATA_EXPORT virtual const ObjectKind GetKind() const { return KIND_SPLIT_GROUP; }
+
+protected:
+
+  friend class HYDROData_Iterator;
+
+  /**
+   * Creates new object in the internal data structure. Use higher level objects 
+   * to create objects with real content.
+   */
+  HYDRODATA_EXPORT HYDROData_SplitShapesGroup();
+
+  /**
+   * Destructs properties of the object and object itself, removes it from the document.
+   */
+  virtual HYDRODATA_EXPORT ~HYDROData_SplitShapesGroup();
+};
+
+#endif
diff --git a/src/HYDROData/HYDROData_SplittedShapesGroup.cxx b/src/HYDROData/HYDROData_SplittedShapesGroup.cxx
deleted file mode 100644 (file)
index 4c18300..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright (C) 2014-2015  EDF-R&D
-// 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, or (at your option) any later version.
-//
-// 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
-//
-
-#include "HYDROData_SplittedShapesGroup.h"
-
-IMPLEMENT_STANDARD_HANDLE(HYDROData_SplittedShapesGroup,HYDROData_ShapesGroup)
-IMPLEMENT_STANDARD_RTTIEXT(HYDROData_SplittedShapesGroup,HYDROData_ShapesGroup)
-
-HYDROData_SplittedShapesGroup::HYDROData_SplittedShapesGroup()
-: HYDROData_ShapesGroup()
-{
-}
-
-HYDROData_SplittedShapesGroup::~HYDROData_SplittedShapesGroup()
-{
-}
-
-
diff --git a/src/HYDROData/HYDROData_SplittedShapesGroup.h b/src/HYDROData/HYDROData_SplittedShapesGroup.h
deleted file mode 100644 (file)
index 2aa64ae..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (C) 2014-2015  EDF-R&D
-// 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, or (at your option) any later version.
-//
-// 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
-//
-
-#ifndef HYDROData_SplittedShapesGroup_HeaderFile
-#define HYDROData_SplittedShapesGroup_HeaderFile
-
-#include <HYDROData_ShapesGroup.h>
-
-DEFINE_STANDARD_HANDLE(HYDROData_SplittedShapesGroup, HYDROData_ShapesGroup)
-
-
-/**\class HYDROData_SplittedShapesGroup
- * \brief Class that stores/retreives the sequence of splitted shapes.
- */
-class HYDROData_SplittedShapesGroup : public HYDROData_ShapesGroup
-{
-protected:
-  /**
-   * Enumeration of tags corresponding to the persistent object parameters.
-   */
-  enum DataTag
-  {
-    DataTag_First = HYDROData_ShapesGroup::DataTag_First + 100 ///< first tag, to reserve
-  };
-
-public:
-  DEFINE_STANDARD_RTTI(HYDROData_SplittedShapesGroup);
-
-  /**
-   * Returns the kind of this object. Must be redefined in all objects of known type.
-   */
-  HYDRODATA_EXPORT virtual const ObjectKind GetKind() const { return KIND_SPLITTED_GROUP; }
-
-protected:
-
-  friend class HYDROData_Iterator;
-
-  /**
-   * Creates new object in the internal data structure. Use higher level objects 
-   * to create objects with real content.
-   */
-  HYDRODATA_EXPORT HYDROData_SplittedShapesGroup();
-
-  /**
-   * Destructs properties of the object and object itself, removes it from the document.
-   */
-  virtual HYDRODATA_EXPORT ~HYDROData_SplittedShapesGroup();
-};
-
-#endif
index 484e20214521a92e4aff63a19dfc0f0467179ac0..1f1025d962d18ed73b574800265e116c4614285a 100644 (file)
@@ -68,7 +68,7 @@ public:
   //! Cuts the curve in the given parameter of the given edge and
   //! fills the cut part.
   //! Returns 'true' if:
-  //! -  the curve is open and was splitted into two parts or
+  //! -  the curve is open and was split into two parts or
   //! -  the curve is closed and was cut into an open curve.
   HYDRODATA_EXPORT bool Cut(
     const std::list<TopoDS_Edge>::iterator& theEdgePosition,
index a74d7b0648400955661c3ab34b5efec43c96a06a..42599f59614c65804b3b47dca438998bd22a12d1 100644 (file)
@@ -94,7 +94,7 @@ protected slots:
    */
   void                            onCreateRegion( const QList<SUIT_DataObject*>& theZonesList );
   /**
-   * Case objects must be splitted to zones if the case has been modified or new.
+   * Case objects must be split to zones if the case has been modified or new.
    */
   void                            onNext( const int );
   void                            onLastViewClosed( SUIT_ViewManager* );
index 7f4db43868ace0ba2d2af20b364780e025b2c308..129384322c050ed4b7e82cbc83a746f381318dc8 100644 (file)
@@ -639,7 +639,7 @@ bool HYDROGUI_DataModel::canCopy()
       bool isChildObject = aKind == KIND_DUMMY_3D || 
                            aKind == KIND_ZONE ||
                            aKind == KIND_SHAPES_GROUP || 
-                           aKind == KIND_SPLITTED_GROUP;
+                           aKind == KIND_SPLIT_GROUP;
       if ( isUnrecognized || isChildObject ) {
         isCanCopy = false;
         break;
@@ -732,7 +732,7 @@ LightApp_DataObject* HYDROGUI_DataModel::createObject( SUIT_DataObject*
 
   const ObjectKind aKind = theModelObject->GetKind();
   bool visibility = aKind == KIND_IMAGE || aKind == KIND_POLYLINEXY || aKind == KIND_POLYLINE ||
-                    aKind == KIND_SHAPES_GROUP || aKind == KIND_SPLITTED_GROUP || aKind == KIND_ZONE ||
+                    aKind == KIND_SHAPES_GROUP || aKind == KIND_SPLIT_GROUP || aKind == KIND_ZONE ||
                     aKind == KIND_IMMERSIBLE_ZONE || aKind == KIND_REGION || aKind == KIND_BATHYMETRY ||
                     aKind == KIND_OBSTACLE || aKind == KIND_STREAM || aKind == KIND_CHANNEL ||
                     aKind == KIND_DIGUE || aKind == KIND_DUMMY_3D || aKind == KIND_LAND_COVER_MAP;
@@ -1015,8 +1015,8 @@ void HYDROGUI_DataModel::buildObjectTree( SUIT_DataObject* theParent,
     HYDROData_SequenceOfObjects aCalcGroups = aCaseObj->GetGeometryGroups();
     buildObjectPartition( aGuiObj, aCalcGroups, tr( "OBJECT_GROUPS" ), false );
 
-    HYDROData_SequenceOfObjects aCalcSplitGroups = aCaseObj->GetSplittedGroups();
-    buildObjectPartition( aGuiObj, aCalcSplitGroups, tr( "CASE_SPLITTED_GROUPS" ), false );
+    HYDROData_SequenceOfObjects aCalcSplitGroups = aCaseObj->GetSplitGroups();
+    buildObjectPartition( aGuiObj, aCalcSplitGroups, tr( "CASE_SPLIT_GROUPS" ), false );
 #endif
 
   }
index 5db4f16b8af1e875975c2313f9b4d39240d3c2f2..1c83e787b722bba04fee5debae9ddd3b5126775e 100644 (file)
@@ -285,9 +285,9 @@ bool HYDROGUI_LandCoverMapOp::processApply( int& theUpdateFlags,
   // Split land cover(s) inside edited land cover map
   if ( myOperationId == SplitLandCoverId )
   {
-    bool aLandCoverSplitted = false;
+    bool aLandCoverSplit = false;
     if ( !aPolyline.IsNull() )
-      aLandCoverSplitted = aLandCoverMapObj->Split( aPolyline );
+      aLandCoverSplit = aLandCoverMapObj->Split( aPolyline );
     else if ( !aFace.IsNull() )
     {
       // Get the complete boundary of the object face as the splitting polyline
@@ -302,12 +302,12 @@ bool HYDROGUI_LandCoverMapOp::processApply( int& theUpdateFlags,
           continue;
 
         bool aSplitResult = aLandCoverMapObj->Split( aShape );
-        aLandCoverSplitted = ( i==0 ? aSplitResult : aLandCoverSplitted && aSplitResult );
+        aLandCoverSplit = ( i==0 ? aSplitResult : aLandCoverSplit && aSplitResult );
       }
     }
-    if ( !aLandCoverSplitted )
+    if ( !aLandCoverSplit )
     {
-      theErrorMsg = tr( "LAND_COVER_NOT_SPLITTED" );
+      theErrorMsg = tr( "LAND_COVER_NOT_SPLIT" );
       return false;
     }
   }
index e46d12a97ff3050162fdd72071f8bed64741c44f..9b1d8f3d5334eead598b93f2ca9c9249ea2b0296 100644 (file)
@@ -324,7 +324,7 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
   bool anIsImageHasRefs = false;
   bool anIsFusedImage = false;
   bool anIsCutImage = false;
-  bool anIsSplittedImage = false;
+  bool anIsSplitImage = false;
   bool anIsMustObjectBeUpdated = false;
   bool anIsPolyline = false;
   bool anIsPolyline3D = false;
@@ -424,7 +424,7 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
               else if( anOperatorName == ImageComposer_CutOperator::Type() )
                 anIsCutImage = true;
               else if( anOperatorName == ImageComposer_CropOperator::Type() )
-                anIsSplittedImage = true;
+                anIsSplitImage = true;
             }
           }
         }
@@ -476,7 +476,7 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
         anIsDigue = true;
       else if( anObjectKind == KIND_DUMMY_3D )
         anIsDummyObject3D = true;
-      else if( anObjectKind == KIND_SHAPES_GROUP || anObjectKind == KIND_SPLITTED_GROUP )
+      else if( anObjectKind == KIND_SHAPES_GROUP || anObjectKind == KIND_SPLIT_GROUP )
         anIsGroup = true;
     }
 
@@ -571,8 +571,8 @@ void HYDROGUI_Module::contextMenuPopup( const QString& theClient,
             theMenu->addAction( action( EditFusedImageId ) );
           else if( anIsCutImage )
             theMenu->addAction( action( EditCutImageId ) );
-          else if( anIsSplittedImage )
-            theMenu->addAction( action( EditSplittedImageId ) );
+          else if( anIsSplitImage )
+            theMenu->addAction( action( EditSplitImageId ) );
         }
 
         //RKV: BUG#98: theMenu->addAction( action( ObserveImageId ) );
index 04aa55f71da27ed5b94dcc0f1603ca4581f4fa65..8371e64d1dbe85ea64a6e5e8dee481e4aaab7d7a 100644 (file)
@@ -197,7 +197,7 @@ void HYDROGUI_Module::createActions()
   createAction( EditCutImageId, "EDIT_CUT_IMAGE", "EDIT_CUT_IMAGE_ICO" );
 
   createAction( SplitImageId, "SPLIT_IMAGE", "SPLIT_IMAGE_ICO" );
-  createAction( EditSplittedImageId, "EDIT_SPLITTED_IMAGE", "EDIT_SPLITTED_IMAGE_ICO" );
+  createAction( EditSplitImageId, "EDIT_SPLIT_IMAGE", "EDIT_SPLIT_IMAGE_ICO" );
 
   createAction( RecognizeContoursId, "RECOGNIZE_CONTOURS", "RECOGNIZE_CONTOURS_ICO" );
 
@@ -613,8 +613,8 @@ LightApp_Operation* HYDROGUI_Module::createOperation( const int theId ) const
     anOp = new HYDROGUI_TwoImagesOp( aModule, HYDROGUI_TwoImagesOp::Cut, theId == EditCutImageId );
     break;
   case SplitImageId:
-  case EditSplittedImageId:
-    anOp = new HYDROGUI_TwoImagesOp( aModule, HYDROGUI_TwoImagesOp::Split, theId == EditSplittedImageId );
+  case EditSplitImageId:
+    anOp = new HYDROGUI_TwoImagesOp( aModule, HYDROGUI_TwoImagesOp::Split, theId == EditSplitImageId );
     break;
   case ImportObstacleFromFileId:
     anOp = new HYDROGUI_ImportObstacleFromFileOp( aModule );
index 22ce77dcb91d2626ca28f331048bfa2ad520ac26..45f95161fc61af151f9cea9a9241233b7d78cd7d 100644 (file)
@@ -80,7 +80,7 @@ enum OperationId
   EditCutImageId,
 
   SplitImageId,
-  EditSplittedImageId,
+  EditSplitImageId,
 
   ImportObstacleFromFileId,
   ImportGeomObjectAsObstacleId,
index edcfd8688268be19ee89b679fba11f375fd20d2d..c87743e04fb7e78f46a76669b74a744d364c7aad 100644 (file)
@@ -92,7 +92,7 @@ bool HYDROGUI_Tool::IsObjectHasPresentation( const Handle(HYDROData_Entity)& the
          anObjectKind == KIND_LAND_COVER_MAP
 #ifdef DEB_GROUPS
          || anObjectKind == KIND_SHAPES_GROUP ||
-         anObjectKind == KIND_SPLITTED_GROUP
+         anObjectKind == KIND_SPLIT_GROUP
 #endif
          )
     {
index 7376c5b391e41d07844b613988bd81d670d0925d..8ebdf0259ed9788dabdf1cc4ed41c499e7fb87a1 100644 (file)
@@ -50,7 +50,7 @@ HYDROGUI_TwoImagesOp::HYDROGUI_TwoImagesOp( HYDROGUI_Module* theModule,
   {
     case Fuse: aName = theIsEdit ? tr( "EDIT_FUSED_IMAGE" ) : tr( "FUSE_IMAGES" ); break;
     case Cut: aName = theIsEdit ? tr( "EDIT_CUT_IMAGE" ) : tr( "CUT_IMAGES" ); break;
-    case Split: aName = theIsEdit ? tr( "EDIT_SPLITTED_IMAGE" ) : tr( "SPLIT_IMAGE" ); break;
+    case Split: aName = theIsEdit ? tr( "EDIT_SPLIT_IMAGE" ) : tr( "SPLIT_IMAGE" ); break;
     default: break;
   }
   setName( aName );
@@ -229,7 +229,7 @@ bool HYDROGUI_TwoImagesOp::processApply( int& theUpdateFlags,
     Handle(HYDROData_Image) aSelectedImage = Handle(HYDROData_Image)::DownCast( anObject1 );
     if( !aSelectedImage.IsNull() )
     {
-      aSelectedImage->SetIsSelfSplitted( true );
+      aSelectedImage->SetIsSelfSplit( true );
       aSelectedImage->SetImage( aResult->Image() );
       aSelectedImage->SetTrsf( aResult->Trsf() );
       aResult->Remove();
index 207f77794191cadb59dc2b9643fb913f34891648..f0b4b7dddba1a76964ede92930710620d5d3e3b8 100644 (file)
       <translation>icon_split_image.png</translation>
     </message>
     <message>
-      <source>EDIT_SPLITTED_IMAGE_ICO</source>
-      <translation>icon_edit_splitted_image.png</translation>
+      <source>EDIT_SPLIT_IMAGE_ICO</source>
+      <translation>icon_edit_split_image.png</translation>
     </message>
 
     <message>
index 616c8d6b422fd3dd17f66dfcdd9ac95820d64114..31619c9c843ad5555fe9eca3021d391c095f8914 100644 (file)
       <translation>LAND COVER MAP</translation>
     </message>
     <message>
-      <source>CASE_SPLITTED_GROUPS</source>
+      <source>CASE_SPLIT_GROUPS</source>
       <translation>Split groups</translation>
     </message>
     <message>
@@ -913,7 +913,7 @@ Would you like to remove all references from the image?</translation>
       <translation>Edit polyline 3D</translation>
     </message>
     <message>
-      <source>DSK_EDIT_SPLITTED_IMAGE</source>
+      <source>DSK_EDIT_SPLIT_IMAGE</source>
       <translation>Edit split image</translation>
     </message>
     <message>
@@ -1258,7 +1258,7 @@ Would you like to remove all references from the image?</translation>
       <translation>Edit profile</translation>
     </message>
     <message>
-      <source>MEN_EDIT_SPLITTED_IMAGE</source>
+      <source>MEN_EDIT_SPLIT_IMAGE</source>
       <translation>Edit split image</translation>
     </message>
     <message>
@@ -1567,7 +1567,7 @@ Would you like to remove all references from the image?</translation>
       <translation>Edit polyline 3D</translation>
     </message>
     <message>
-      <source>STB_EDIT_SPLITTED_IMAGE</source>
+      <source>STB_EDIT_SPLIT_IMAGE</source>
       <translation>Edit split image</translation>
     </message>
     <message>
@@ -2042,7 +2042,7 @@ Would you like to remove all references from the image?</translation>
       <translation>Edit fused image</translation>
     </message>
     <message>
-      <source>EDIT_SPLITTED_IMAGE</source>
+      <source>EDIT_SPLIT_IMAGE</source>
       <translation>Edit split image</translation>
     </message>
     <message>
@@ -2966,8 +2966,8 @@ Polyline should consist from one not closed curve.</translation>
       <translation>Land cover can not be removed.</translation>
     </message>
     <message>
-      <source>LAND_COVER_NOT_SPLITTED</source>
-      <translation>Land cover can not be splitted.</translation>
+      <source>LAND_COVER_NOT_SPLIT</source>
+      <translation>Land cover can not be split.</translation>
     </message>
     <message>
       <source>LAND_COVER_NOT_MERGED</source>
@@ -3252,7 +3252,7 @@ Polyline should consist from one not closed curve.</translation>
     </message>
     <message>
       <source>SPLIT_POLYLINE_BY_TOOL_WARNING_MSG</source>
-      <translation>The splitted polyline is not intersected by the tool.</translation>
+      <translation>The split polyline is not intersected by the tool.</translation>
     </message>
   </context>
 
diff --git a/src/HYDROGUI/resources/icon_edit_split_image.png b/src/HYDROGUI/resources/icon_edit_split_image.png
new file mode 100644 (file)
index 0000000..e8b8d51
Binary files /dev/null and b/src/HYDROGUI/resources/icon_edit_split_image.png differ
diff --git a/src/HYDROGUI/resources/icon_edit_splitted_image.png b/src/HYDROGUI/resources/icon_edit_splitted_image.png
deleted file mode 100644 (file)
index e8b8d51..0000000
Binary files a/src/HYDROGUI/resources/icon_edit_splitted_image.png and /dev/null differ
index 013a4a9e06a4c0dfc4b87bef82c36ae6a0ffa083..4d00303eee09d31563601c2771343d21fa303faf 100644 (file)
@@ -63,7 +63,7 @@ SET(_sip_files2
   HYDROData_IInterpolator.sip
   HYDROData_Entity.sip
   HYDROData_ShapesGroup.sip
-  HYDROData_SplittedShapesGroup.sip
+  HYDROData_SplitShapesGroup.sip
   HYDROData_IPolyline.sip
   HYDROData_IAltitudeObject.sip
   HYDROData_AltitudeObject.sip
index 84f94621aea2babc40e26865dbe255c6c23ca5d7..3b52af7bbcdcdcc6f86f2a48be4694a8bf3ec4c1 100644 (file)
@@ -77,7 +77,7 @@
 %Include HYDROData_River.sip
 %Include HYDROData_SequenceOfObjects.sip
 %Include HYDROData_ShapesGroup.sip
-%Include HYDROData_SplittedShapesGroup.sip
+%Include HYDROData_SplitShapesGroup.sip
 %Include HYDROData_Stream.sip
 %Include HYDROData_StreamAltitude.sip
 %Include HYDROData_StricklerTable.sip
index 9ed401988486480b14b05c1d982e02a555b70fb9..d7cd159392c1c0d9cb9ab3325414ff1d236c78c0 100644 (file)
@@ -72,7 +72,7 @@ public:
     DataTag_Region,                    ///< reference regions
     DataTag_Polyline,                  ///< reference boundary polyline
     DataTag_GeometryGroup,             ///< reference geometry groups
-    DataTag_SplittedGroups,            ///< reference splitted groups
+    DataTag_SplitGroups,               ///< reference split groups
     DataTag_CustomRules,               ///< custom rules
     DataTag_AssignmentMode,            ///< assignment mode
     DataTag_StricklerTable,            ///< reference Strickler table
@@ -295,12 +295,12 @@ public:
   /**
    * Returns all reference geometry groups of calculation case.
    */
-  HYDROData_SequenceOfObjects GetSplittedGroups() const;
+  HYDROData_SequenceOfObjects GetSplitGroups() const;
 
   /**
    * Removes all reference geometry groups from calculation case.
    */
-  void RemoveSplittedGroups();
+  void RemoveSplitGroups();
 
 
   /**
index 2ff3c60440c71c01291430cfcb90659cc0168fb8..4ebd3353f9aa4bf1be58f3b308dfd59a94236e13 100644 (file)
@@ -148,9 +148,9 @@ class HYDROData_Document
         aRes = new HYDROData_ShapesGroup( *dynamic_cast<HYDROData_ShapesGroup*>( theObject ) );
         break;
       }
-      case KIND_SPLITTED_GROUP:
+      case KIND_SPLIT_GROUP:
       {
-        aRes = new HYDROData_SplittedShapesGroup( *dynamic_cast<HYDROData_SplittedShapesGroup*>( theObject ) );
+        aRes = new HYDROData_SplitShapesGroup( *dynamic_cast<HYDROData_SplitShapesGroup*>( theObject ) );
         break;
       }
       case KIND_OBSTACLE_ALTITUDE:
index 52a846352836c1bcaa9ee64b21aad016bb71049d..fda3ec35f600f2b261d308cce52eb00da927b7ba 100644 (file)
@@ -41,7 +41,7 @@ const ObjectKind KIND_CALCULATION;
 const ObjectKind KIND_ZONE;
 const ObjectKind KIND_REGION;
 const ObjectKind KIND_SHAPES_GROUP;
-const ObjectKind KIND_SPLITTED_GROUP;
+const ObjectKind KIND_SPLIT_GROUP;
 const ObjectKind KIND_OBSTACLE_ALTITUDE;
 const ObjectKind KIND_STRICKLER_TABLE;
 const ObjectKind KIND_LAND_COVER_MAP;
@@ -128,8 +128,8 @@ class HYDROData_Entity
         sipClass = sipClass_HYDROData_ShapesGroup;
         break;
         
-      case KIND_SPLITTED_GROUP:
-        sipClass = sipClass_HYDROData_SplittedShapesGroup;
+      case KIND_SPLIT_GROUP:
+        sipClass = sipClass_HYDROData_SplitShapesGroup;
         break;
 
       case KIND_STREAM_ALTITUDE:
index 1ad52b97f88992994850e574a097a0c831d6f8b3..00e70250e7978f3ab0c48efad7ab9a8013ab6b6d 100644 (file)
@@ -385,16 +385,16 @@ public:
   
 
   /**
-   * Marks the image as self-splitted.
-   * \param theFlag is true for self-splitted image
+   * Marks the image as self-split.
+   * \param theFlag is true for self-split image
    */
-  void SetIsSelfSplitted(bool theFlag);
+  void SetIsSelfSplit(bool theFlag);
 
   /**
-   * Checks that the image is self-splitted.
-   * \returns true if image is self-splitted
+   * Checks that the image is self-split.
+   * \returns true if image is self-split
    */
-  bool IsSelfSplitted() const;
+  bool IsSelfSplit() const;
 
 protected:
 
index 667106297a0853c3f135a900160778af34460b18..51bcf69c673d939a61ccd8ea6ea5ca61f5969989 100644 (file)
@@ -31,8 +31,8 @@ class HYDROData_ShapesGroup : public HYDROData_Entity
     // HYDROData_Entity sub-classes provide a unique kind ID.
     switch ( sipCpp->GetKind() )
     {
-      case KIND_SPLITTED_GROUP:
-        sipClass = sipClass_HYDROData_SplittedShapesGroup;
+      case KIND_SPLIT_GROUP:
+        sipClass = sipClass_HYDROData_SplitShapesGroup;
         break;
         
       case KIND_UNKNOWN:
diff --git a/src/HYDROPy/HYDROData_SplitShapesGroup.sip b/src/HYDROPy/HYDROData_SplitShapesGroup.sip
new file mode 100644 (file)
index 0000000..cdb9309
--- /dev/null
@@ -0,0 +1,42 @@
+// Copyright (C) 2014-2015  EDF-R&D
+// 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, or (at your option) any later version.
+//
+// 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_SplitShapesGroup.h>
+%End
+
+class HYDROData_SplitShapesGroup : public HYDROData_ShapesGroup
+{
+
+%TypeHeaderCode
+#include <HYDROData_SplitShapesGroup.h>
+%End
+
+protected:
+
+  /**
+   * Creates new object in the internal data structure. Use higher level objects 
+   * to create objects with real content.
+   */
+  HYDROData_SplitShapesGroup();
+
+  /**
+   * Destructs properties of the object and object itself, removes it from the document.
+   */
+  virtual ~HYDROData_SplitShapesGroup();
+};
diff --git a/src/HYDROPy/HYDROData_SplittedShapesGroup.sip b/src/HYDROPy/HYDROData_SplittedShapesGroup.sip
deleted file mode 100644 (file)
index c686d1e..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright (C) 2014-2015  EDF-R&D
-// 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, or (at your option) any later version.
-//
-// 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();
-};
index da960034b446de8c01e63e325f0259e4a1962073..df610ea5e60fc1914e2ae4dcc3ea981073e5981a 100644 (file)
@@ -37,7 +37,7 @@ set( EXTERNAL_FILES
   ../HYDROData/HYDROData_River.cxx
   ../HYDROData/HYDROData_ShapesGroup.cxx
   ../HYDROData/HYDROData_ShapesTool.cxx
-  ../HYDROData/HYDROData_SplittedShapesGroup.cxx
+  ../HYDROData/HYDROData_SplitShapesGroup.cxx
   ../HYDROData/HYDROData_SplitToZonesTool.cxx
   ../HYDROData/HYDROData_Stream.cxx
   ../HYDROData/HYDROData_StreamAltitude.cxx
index 20ef14811d1b269625025e5dc34f52ab28ee6262..a9ac1dc0cde1af86480a7c8d66e2f629a614d76d 100644 (file)
@@ -60,7 +60,7 @@ void test_HYDROGUI_LandCoverMapDlg::test_objects_filtering_refs_707()
   CPPUNIT_ASSERT_EQUAL( false, isOK( f, aDoc, KIND_NATURAL_OBJECT ) );
   CPPUNIT_ASSERT_EQUAL( false, isOK( f, aDoc, KIND_DUMMY_3D ) );
   CPPUNIT_ASSERT_EQUAL( false, isOK( f, aDoc, KIND_SHAPES_GROUP ) );
-  CPPUNIT_ASSERT_EQUAL( false, isOK( f, aDoc, KIND_SPLITTED_GROUP ) );
+  CPPUNIT_ASSERT_EQUAL( false, isOK( f, aDoc, KIND_SPLIT_GROUP ) );
   CPPUNIT_ASSERT_EQUAL( false, isOK( f, aDoc, KIND_STREAM_ALTITUDE ) );
   CPPUNIT_ASSERT_EQUAL( false, isOK( f, aDoc, KIND_OBSTACLE_ALTITUDE ) );
   CPPUNIT_ASSERT_EQUAL( false, isOK( f, aDoc, KIND_STRICKLER_TABLE ) );