]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
patch for correct calculation
authorasl <asl@opencascade.com>
Mon, 22 Jun 2015 05:40:39 +0000 (08:40 +0300)
committerasl <asl@opencascade.com>
Mon, 22 Jun 2015 05:40:39 +0000 (08:40 +0300)
src/HYDROGUI/HYDROGUI_CalculationOp.cxx
src/HYDROGUI/HYDROGUI_CalculationOp.h

index ede72aa4168026bf4a7fe77c9f7c20b5732cb9ad..ecb496c2191693508f8164b24adea23b82a7192d 100644 (file)
@@ -56,7 +56,6 @@ HYDROGUI_CalculationOp::HYDROGUI_CalculationOp( HYDROGUI_Module* theModule, bool
   myIsEdit( theIsEdit ),
   myActiveViewManager( NULL ),
   myPreviewViewManager( NULL ),
-  myShowGeomObjects( true ),
   myShowZones( false )
 {
   setName( myIsEdit ? tr( "EDIT_CALCULATION" ) : tr( "CREATE_CALCULATION" ) );
@@ -957,8 +956,6 @@ void HYDROGUI_CalculationOp::onNext( const int theIndex )
 
     QApplication::setOverrideCursor( Qt::WaitCursor );
 
-    setGeomObjectsVisible( false );
-  
     QString aNewCaseName = aPanel->getObjectName();
     QString anOldCaseName = myEditedObject->GetName();
     bool isNameChanged = anOldCaseName != aNewCaseName;
@@ -1174,17 +1171,6 @@ void HYDROGUI_CalculationOp::setZonesVisible( bool theIsVisible, const bool theL
 }
 
 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 );
-  }
-}
-
 {
   HYDROData_SequenceOfObjects aRegions = myEditedObject->GetRegions( theLandCover );
   HYDROData_SequenceOfObjects::Iterator aRegionsIter( aRegions );
@@ -1321,7 +1307,7 @@ void HYDROGUI_CalculationOp::createPreview( const bool theLandCover )
     aSeq = myEditedObject->GetLandCovers();
   else
     aSeq = myEditedObject->GetGeometryObjects();
-  }
+
   Handle(HYDROData_Entity) anEntity;
 
   if ( myShowZones )
index 3c1c9a542da40475b48b0426a3da2feecab31cee..e40a21a23b3a17bc0a9c999f1dc7ba283109a2fc 100644 (file)
@@ -155,7 +155,6 @@ private:
   void                            closePreview( bool theRemoveViewManager = true );
   void                            setObjectVisibility( Handle(HYDROData_Entity) theEntity, const bool theIsVisible );
   void                            setZonesVisible( bool theIsVisible, const bool theLandCover );
-  void                            setGeomObjectsVisible( bool theIsVisible );
   void                            getNamesAndEntries( const HYDROData_SequenceOfObjects& theSeq, 
                                                       QStringList& theNames, QStringList& theEntries ) const;
 
@@ -195,7 +194,6 @@ private:
 private:
   bool                            myIsEdit;
   bool                            myShowZones;
-  bool                            myShowGeomObjects;
   Handle(HYDROData_CalculationCase) myEditedObject;
 
   SUIT_ViewManager*               myActiveViewManager;