]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Get rid of old display order map.
authormzn <mzn@opencascade.com>
Mon, 24 Mar 2014 14:03:39 +0000 (14:03 +0000)
committermzn <mzn@opencascade.com>
Mon, 24 Mar 2014 14:03:39 +0000 (14:03 +0000)
src/HYDROGUI/HYDROGUI_Module.cxx
src/HYDROGUI/HYDROGUI_Module.h

index 26ee9fd732ee99901d5ef286a185ac94b61ab225..5e03c1293bc9f618117c01a2533da0bd0b0c711c 100644 (file)
@@ -186,7 +186,6 @@ bool HYDROGUI_Module::activateModule( SUIT_Study* theStudy )
   foreach ( const int anId, anObsoleteIds ) {
     myViewManagerMap.remove( anId );
     myObjectStateMap.remove( anId );
-    myObjectDisplayOrderMap.remove( anId );
     myShapesMap.remove( anId );
     myVTKPrsMap.remove( anId );
   }
@@ -883,13 +882,6 @@ void HYDROGUI_Module::setObjectVisible( const int theViewId,
 
     ObjectState& anObjectState = aEntry2ObjectStateMap[ anEntry ];
     anObjectState.Visibility = theState;
-
-    // Remember the display order ( needed for Z layers assignment only )
-    QStringList& anObjectEntries = myObjectDisplayOrderMap[ theViewId ];
-    anObjectEntries.removeAll( anEntry );
-    if ( theState ) {
-      anObjectEntries.append( anEntry );
-    }
   }
 }
 
@@ -1513,21 +1505,6 @@ void HYDROGUI_Module::onMouseMove( SUIT_ViewWindow* theViewWindow, QMouseEvent*
   }
 }
 
-/**
- * Get the object display order. Needed for Z layers assignment only.
- */
-int HYDROGUI_Module::getObjectDisplayOrder( 
-  const int theViewId, const Handle(HYDROData_Entity)& theObject) const
-{
-  if( theObject.IsNull() )
-    return -1;
-
-  QString anEntry = HYDROGUI_DataObject::dataObjectEntry( theObject );
-  QStringList anObjectEntries = myObjectDisplayOrderMap.value( theViewId );
-
-  return anObjectEntries.indexOf( anEntry );
-}
-
 /**
  * Returns stack of active operations;
  */
index 97ae84b036615735a3d9934dc3182fde1e3981af..e2dee3ee51dfc18f657a5f7f5bd2be705df80c3b 100644 (file)
@@ -173,9 +173,6 @@ public:
    */
   virtual bool                    renameObject( const QString& theEntry, const QString& theName );
 
-  int                             getObjectDisplayOrder( const int theViewId,
-                                                         const Handle(HYDROData_Entity)& theObject ) const;
-
   QStack<HYDROGUI_Operation*>&    getActiveOperations();
   HYDROGUI_Operation*             activeOperation();
 
@@ -246,7 +243,6 @@ private:
   ViewManagerMap                  myViewManagerMap;
   ViewId2Entry2ObjectStateMap     myObjectStateMap;
 
-  QMap<int, QStringList>          myObjectDisplayOrderMap;
   QStack<HYDROGUI_Operation*>     myActiveOperationMap;
 
   ViewId2ListOfShapes             myShapesMap;