#include <PrsMgr_PresentableObject.hxx>
#include <PrsMgr_Presentations.hxx>
#include <TColStd_SequenceOfInteger.hxx>
+#include <Graphic3d_ZLayerId.hxx>
void SetZLayerForPrs( const Handle(PrsMgr_Presentation)& thePrs, int theLayerId );
int CreateTopZLayer( const Handle(V3d_Viewer)& theViewer3d )
{
- int aTopZLayer = -1;
+ int aTopZLayer = Graphic3d_ZLayerId_Top;
if ( theViewer3d && !theViewer3d->AddZLayer( aTopZLayer ) ) {
- aTopZLayer = -1;
+ aTopZLayer = Graphic3d_ZLayerId_Top;
}
return aTopZLayer;
HYDROGUI_ZLayersIterator::HYDROGUI_ZLayersIterator( const Handle(V3d_Viewer)& theViewer )
- : myIndex( 0 ), myNewZLayer( -1 ), myViewer( theViewer )
+ : myIndex( 0 ), myNewZLayer( Graphic3d_ZLayerId_Top ), myViewer( theViewer )
{
Init( theViewer );
}
int HYDROGUI_ZLayersIterator::TopLayer() const
{
- int aTopLayer = -1;
+ int aTopLayer = Graphic3d_ZLayerId_Top;
if ( myNewZLayer >= 0 ) {
aTopLayer = myNewZLayer;