#include "CurveCreator_Displayer.h"
-CurveCreator_Displayer::CurveCreator_Displayer( Handle_AIS_InteractiveContext theContext ) :
- myContext( theContext )
+CurveCreator_Displayer::CurveCreator_Displayer( Handle_AIS_InteractiveContext theContext,
+ const int theZLayer ) :
+ myContext( theContext ), myZLayer( theZLayer )
{
myObjects.clear();
}
myObjects.push_back( theObject );
myContext->Display( theObject, Standard_False );
+ if ( myZLayer >= 0 )
+ myContext->SetZLayer( theObject, myZLayer );
+
if( isUpdate )
myContext->UpdateCurrentViewer();
}
typedef std::vector<Handle_AIS_InteractiveObject> AISObjectsList;
public:
- CurveCreator_Displayer(Handle_AIS_InteractiveContext theContext );
+ CurveCreator_Displayer( Handle_AIS_InteractiveContext theContext,
+ const int theZLayer = -1 );
~CurveCreator_Displayer(void);
void display( const Handle_AIS_InteractiveObject& theObject, bool isUpdate );
private:
Handle_AIS_InteractiveContext myContext;
AISObjectsList myObjects;
+ int myZLayer;
};
#endif