-// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
-//
-// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
+// Copyright (C) 2014-2015 EDF-R&D
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
#include <vector>
#include <V3d_Viewer.hxx>
-class Handle_PrsMgr_PresentableObject;
-class Handle_AIS_InteractiveContext;
+class PrsMgr_PresentableObject;
+class AIS_InteractiveContext;
class HYDROGUI_ZLayersIterator
{
public:
- HYDROGUI_ZLayersIterator( const Handle_V3d_Viewer& );
+ HYDROGUI_ZLayersIterator( const Handle(V3d_Viewer)& );
~HYDROGUI_ZLayersIterator();
- void Init( const Handle_V3d_Viewer& );
+ void Init( const Handle(V3d_Viewer)& );
bool More() const;
void Next();
int LayerId() const;
- int MaxLayer() const;
+ int TopLayer() const;
private:
std::vector<int> myZLayers;
int myIndex;
int myNewZLayer;
- Handle_V3d_Viewer myViewer;
+ Handle(V3d_Viewer) myViewer;
};
-void SetPrsZLayer( const Handle_PrsMgr_PresentableObject& thePresentableObject,
+void SetPrsZLayer( const Handle(PrsMgr_PresentableObject)& thePresentableObject,
const int theMode, const int theLayerId );
-void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle_AIS_InteractiveContext&, int theLayer );
+void UpdateZLayersOfHilightPresentationsOfDisplayedObjects( const Handle(AIS_InteractiveContext)&, int theLayer );
+void SetZLayerSettings( const Handle(V3d_Viewer)&, int theLayerId, bool theIsOrdered );
+int CreateTopZLayer( const Handle(V3d_Viewer)& );
#endif