Commit dea79320 authored by tomasz.wlostowski@cern.ch's avatar tomasz.wlostowski@cern.ch
Browse files

VIEW: added GetTopLayer() method

parent 23298886
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -452,6 +452,14 @@ void VIEW::ChangeLayerDepth( int aLayer, int aDepth )
    m_layers[aLayer].items->Query( r, visitor );
}

int VIEW::GetTopLayer( ) const
{
    if( m_topLayers.size() == 0 )
        return 0;

    return *m_topLayers.begin();
}


void VIEW::SetTopLayer( int aLayer, bool aEnabled )
{
+2 −0
Original line number Diff line number Diff line
@@ -362,6 +362,8 @@ public:
     */
    void    EnableTopLayer( bool aEnable );

    int     GetTopLayer() const;

    /**
     * Function ClearTopLayers()
     * Removes all layers from the on-the-top set (they are no longer displayed over the rest of