]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Merge remote-tracking branch 'origin/BR_LAND_COVER' into BR_v14_rc
authorasl <asl@opencascade.com>
Mon, 22 Jun 2015 05:16:15 +0000 (08:16 +0300)
committerasl <asl@opencascade.com>
Mon, 22 Jun 2015 05:16:15 +0000 (08:16 +0300)
Conflicts:
src/HYDROGUI/HYDROGUI_CalculationOp.cxx
src/HYDROGUI/HYDROGUI_CalculationOp.h

1  2 
src/HYDROData/HYDROData_CalculationCase.cxx
src/HYDROData/HYDROData_CalculationCase.h
src/HYDROGUI/HYDROGUI_CalculationOp.cxx
src/HYDROGUI/HYDROGUI_CalculationOp.h
src/HYDROGUI/HYDROGUI_DataModel.cxx
src/HYDROGUI/HYDROGUI_DataModel.h
src/HYDROGUI/resources/HYDROGUI_msg_en.ts

index a54800f13544cbadbfe469cfdfa3d46cf2c9108a,9d84b3d4f596dba35ba27a92fd6d4b4c4f4048bd..70e925e73d4d048f9522d74fff262eb951a3cb3f
@@@ -407,11 -434,27 +434,13 @@@ private
                 const TopTools_ListOfShape&                   theFaces,
                 const HYDROData_ShapesGroup::SeqOfGroupsDefs& theGroupsDefs,
                 QString& theGeomObjEntry ) const;
 -
 -  /**
 -   * Publish the given shape in GEOM as a GEOM object.
 -   * \param theGeomEngine GEOM module engine
 -   * \param theStudy SALOMEDS study, used for publishing of the shape
 -   * \param theShape the shape to publish as a GEOM object
 -   * \param theName the name of the published object
 -   * \return the published GEOM object
 -   */
 -  GEOM::GEOM_Object_ptr publishShapeInGEOM( GEOM::GEOM_Gen_var  theGeomEngine,
 -                                            SALOMEDS::Study_ptr theStudy,
 -                                            const TopoDS_Shape& theShape, 
 -                                            const QString&      theName,
 -                                            QString& theGeomObjEntry ) const;
 -
 +  
    void CreateRegionsDef( const Handle(HYDROData_Document)& theDoc,
-                          const HYDROData_SplitToZonesTool::SplitDataList& theZones );
+                          const HYDROData_SplitToZonesTool::SplitDataList& theZones,
+                          const bool theLandCover );
    void CreateRegionsAuto( const Handle(HYDROData_Document)& theDoc,
-                           const HYDROData_SplitToZonesTool::SplitDataList& theZones );
+                           const HYDROData_SplitToZonesTool::SplitDataList& theZones,
+                           const bool theLandCover );
  
    void CreateEdgeGroupsDef( const Handle(HYDROData_Document)& theDoc,
                              const HYDROData_SplitToZonesTool::SplitDataList& theEdges );
index 2c84a4fb295e1bf626005bcbf37198d14fe346ce,82a21857c12505f3c47ecfe19f151277d1d9f98c..ede72aa4168026bf4a7fe77c9f7c20b5732cb9ad
@@@ -1093,21 -1169,9 +1173,20 @@@ void HYDROGUI_CalculationOp::setZonesVi
    }
  }
  
- void HYDROGUI_CalculationOp::setGeomObjectsVisible( bool theIsVisible )
+ void HYDROGUI_CalculationOp::AssignDefaultZonesColors( const bool theLandCover )
 +{
 +  myShowGeomObjects = theIsVisible;
 +
 +  HYDROData_SequenceOfObjects aSeq = myEditedObject->GetGeometryObjects();
 +
 +  HYDROData_SequenceOfObjects::Iterator anIter( aSeq );
 +  for ( ; anIter.More(); anIter.Next() ) {
 +    setObjectVisibility( anIter.Value(), theIsVisible );
 +  }
 +}
 +
- void HYDROGUI_CalculationOp::AssignDefaultZonesColors()
  {
-   HYDROData_SequenceOfObjects aRegions = myEditedObject->GetRegions();
+   HYDROData_SequenceOfObjects aRegions = myEditedObject->GetRegions( theLandCover );
    HYDROData_SequenceOfObjects::Iterator aRegionsIter( aRegions );
    HYDROData_SequenceOfObjects aZones;
    Handle(HYDROData_Region) aRegion;
@@@ -1213,11 -1302,10 +1317,11 @@@ void HYDROGUI_CalculationOp::createPrev
  {
    LightApp_Application* anApp = module()->getApp();
    HYDROData_SequenceOfObjects aSeq;
-   if ( myShowGeomObjects )
-   {
-     HYDROData_SequenceOfObjects aGeomObj = myEditedObject->GetGeometryObjects();
-     aSeq.Append( aGeomObj );
+   if ( theLandCover )
+     aSeq = myEditedObject->GetLandCovers();
+   else
+     aSeq = myEditedObject->GetGeometryObjects();
 +  }
    Handle(HYDROData_Entity) anEntity;
  
    if ( myShowZones )
index b4961a357602834508caf5b5bc35d7c9de151037,17134b7eb2513200510bfd4332ab1ce6917bec2d..3c1c9a542da40475b48b0426a3da2feecab31cee
@@@ -118,9 -127,9 +127,9 @@@ protected slots
     */
    void                            onClickedInZonesBrowser( SUIT_DataObject* theItem );
    /**
 -   * Hide zones in the viewer.
 +   * Slot called on back button click.
     */
-   void                            onBack( const int );
+   void                            onHideZones( const int );
    /** 
     * Geometry object is selected in the list on the first wizard page
     */
    void onOrderLandCoverChanged( bool& isConfirmed );
  
  private:
-   void                            createPreview();
-   void                            closePreview();
+   void                            createPreview( const bool theLandCover);
+   void                            closePreview( bool theRemoveViewManager = true );
    void                            setObjectVisibility( Handle(HYDROData_Entity) theEntity, const bool theIsVisible );
-   void                            setZonesVisible( bool theIsVisible );
+   void                            setZonesVisible( bool theIsVisible, const bool theLandCover );
 +  void                            setGeomObjectsVisible( bool theIsVisible );
    void                            getNamesAndEntries( const HYDROData_SequenceOfObjects& theSeq, 
                                                        QStringList& theNames, QStringList& theEntries ) const;
  
Simple merge
Simple merge