mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
0031713: Draw Harness, IVtkDraw - add commands ivtksetcolor, ivtkaxo, ivtkclose, ivtksettransparency
Added missing NULL checks before accessing GetInteractor(). Errors are now reported using Message::SendFail(). Not found actor names are now reported as syntax error instead of silently skipping them. ivtkinit now accepts aguments -srgb and -msaa for overriding defaults. Default MSAA settings have been changed from 8 to 0 to match vinit behavior. Added command ivtkclose closing a Vtk view. Added commands ivtkaxo, ivtkfront, ivtkback, ivtkleft, ivtkright, ivtktop and ivtkbottom assigning view projection similar to sonamed commands in ViewerTest. Added commands ivtksetcolor and ivtksettransparency assigning color properties to shaded presentation.
This commit is contained in:
@@ -626,7 +626,7 @@ LRESULT CALLBACK WndProc (HWND theHWnd,UINT theUMsg,
|
||||
LRESULT aRes = 0;
|
||||
IVtkDraw_Interactor *anInteractor = 0;
|
||||
|
||||
anInteractor = (IVtkDraw_Interactor *)GetWindowLongPtr (theHWnd, GWLP_USERDATA);
|
||||
anInteractor = (IVtkDraw_Interactor *)GetWindowLongPtrW (theHWnd, GWLP_USERDATA);
|
||||
|
||||
if (anInteractor && anInteractor->GetReferenceCount() > 0)
|
||||
{
|
||||
@@ -715,7 +715,7 @@ LRESULT CALLBACK ViewerWindowProc (HWND theHWnd,
|
||||
theInteractor->OnTimer (theHWnd, (UINT)theWParam);
|
||||
break;
|
||||
}
|
||||
return DefWindowProc(theHWnd, theMsg, theWParam, theLParam);
|
||||
return DefWindowProcW (theHWnd, theMsg, theWParam, theLParam);
|
||||
}
|
||||
|
||||
#else
|
||||
|
Reference in New Issue
Block a user