1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0021981: Additional callback before redraw procedure

This commit is contained in:
APL
2011-09-22 15:08:38 +00:00
committed by bugmaster
parent 4071d9e637
commit b299a91c4d
4 changed files with 24 additions and 6 deletions

View File

@@ -262,8 +262,16 @@ void NIS_View::GetBndBox( Standard_Integer& theXMin, Standard_Integer& theXMax,
int NIS_View::MyCallback (Aspect_Drawable /* Window ID */,
void* ptrData,
Aspect_GraphicCallbackStruct* /* call data */)
Aspect_GraphicCallbackStruct* callData /* call data */)
{
// Avoid multiple rendering of the scene ( accordingly with update of
// callback mechanism, that invokes additional callbacks before
// underlay and overlay redrawing with OCC_PRE_REDRAW and OCC_PRE_OVERLAY
// bits added to the "reason" value of the callback data structure;
// see comments to OCC_REDRAW_ADDITIONAL_CALLBACKS definition )
if (callData->reason & OCC_REDRAW_ADDITIONAL_CALLBACKS)
return 0;
const Handle(NIS_View) thisView (static_cast<NIS_View *> (ptrData));
NCollection_List<NIS_InteractiveContext *>::Iterator anIter;
#ifdef CLIP