Salome HOME
debug of DTM object
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Zone.cxx
index c1139e1e4e66153e03a82a6dddabb20245e7f8d7..0d0ab6bc3cc5ee1b2feb31b4c4d7251b50e30fa7 100644 (file)
@@ -21,7 +21,6 @@
 #include <HYDROData_Zone.h>
 #include <HYDROData_Object.h>
 #include <HYDROData_IAltitudeObject.h>
-#include <HYDROData_LandCover.h>
 
 #include <SUIT_DataObject.h>
 #include <QSet>
@@ -119,22 +118,6 @@ QString HYDROGUI_Zone::getObjectName() const
             }
           }
         }
-        else
-        {
-          Handle(HYDROData_LandCover) aRefLandCoverObj =
-            Handle(HYDROData_LandCover)::DownCast( anIter.Value() );
-          if ( !aRefLandCoverObj.IsNull() )
-          {
-            // Get name of land cover object
-            aName = aRefLandCoverObj->GetName();
-            if ( !isMergingNeed )
-            {
-              // Get the first land cover object's altitude name and go out
-              aRes = aName;
-              break;
-            }
-          }        
-        }
 
         if ( !aName.isEmpty() && !aNamesSet.contains( aName ) )
         {
@@ -281,8 +264,6 @@ void HYDROGUI_Zone::setMergeType( int theMergeType, QString theMergeObjectName )
         {
           // Get altitude object
           aMergeObject = aRefGeomObj->GetAltitudeObject();
-        } else {
-          aMergeObject = Handle(HYDROData_LandCover)::DownCast( anIter.Value() );
         }
 
         if ( !aMergeObject.IsNull() && theMergeObjectName == aMergeObject->GetName() )