Uncompatibility of TriedronDisplay and SetWindow of V3d_view.

I am working with OCCupy.3.0 and VC++ 6.0 ,Windows Xp.
I have patched fixing35 and fixed20 from
I find TriedronDisplay and SetWindow of V3d_view are not compatible some times.
To implement gradient background I call SetWindow of V3d_view like this:
myView->SetWindow(aWNTWindow, 0, (&COCCView::CallBack), this);
This is callback method for gradient background.To display a static Trihedron then TriedronDisplay of v3d_view if call like this:
myView->TriedronDisplay(Aspect_TOTP_LEFT_LOWER, Quantity_NOC_BLUE1, 0.2, V3d_ZBUFFER);
The gradient background and the static trihedron are both displayed.But when I want to disply other things such a sphere.The gradient background disappeared ,a default flat gray background took the place.Only static trihedron is still there.
When I changed the TriedronDisplay parameter like this:
myView->TriedronDisplay(Aspect_TOTP_LEFT_LOWER, Quantity_NOC_BLUE1, 0.2, V3d_ZBUFFER);
It works fine.
So my conclusion is that Triedrondisplay with V3d_ZBUFFER parameter is not compatible with callback SetWindow in v3d_View.

fietiger's picture

Sorry!I realy want to say at the begining is:
I am working with OCC6.3.0 and VC++ 6.0 ,Windows Xp.
I have patched fixing235 and fixed200 for OCC6.3.0 from http://sourceforge.net/projects/opencascade/files/