[wxVTK] [Fwd: wxVTK: MSW compilation vs. resizing problem]
Brought to you by:
malat
From: <mma...@ny...> - 2005-04-20 13:43:53
|
=5BForwarding to wxVTK users=5D John could you comment on your patch =3F Which wx did you used =3F I have= also laying around patch from Alexis H=2E Rivera-Rios which apparently changed the function OnSize to something like=3A void wxVTKRenderWindowInteractor=3A=3AOnSize(wxSizeEvent =26event) =7B GetClientSize(=26a=2C=26b)=3B int *size3=3B size3 =3D RenderWindow-=3EGetSize()=3B = if (size3=5B0=5D=3D=3D0 =26=26 size3=5B1=5D=3D=3D0) //// =3C-- new cod= e =7B UpdateSize(a=2Cb)=3B =7D else =7B UpdateSize(size3=5B0=5D=2C size3=5B1=5D)=3B =7D if (!Enabled) = =7B return=3B =7D =23if (VTK=5FMAJOR=5FVERSION =3D=3D 4 =26=26 VTK=5FMINOR=5FVERSION =3E 0)= InvokeEvent(vtkCommand=3A=3AConfigureEvent=2C NULL)=3B =23endif //this will check for Handle Render()=3B =7D It seems wxNO=5FFULL=5FREPAINT=5FON=5FRESIZE only affect windows (not my = primary plateform)=2E I was also looking at solution like vtkFlRenderWindow and there seems to be some tricks to consider to properly set the size of the renderwindow=2E I=27ll have to investigate before applying another patch=2E sorry for the troubles=2C Mathieu -------- Original Message -------- Subject=3A wxVTK=3A MSW compilation vs=2E resizing problem Date=3A Wed=2C 20 Apr 2005 15=3A19=3A55 +0100 From=3A Reinhold F=FCreder =3CR=2EFureder=40exeter=2Eac=2Euk=3E To=3A =3Cmathieu=2Emalaterre=40creatis=2Einsa-lyon=2Efr=3E Dear Mathieu=2C When updating to your latest version (0=2E8) of wxVtk (from 0=2E7) I am experiencing a compilation problem (and still the resizing problem)=2E During compilation MSVC++ 6 (Windows 2k) using wxWidgets version from August 2003 (in between 2=2E4=2E2 and 2=2E5=2E0) and VTK from end of Febr= uary this year it reports the following error message =22=2E=2E=2E=5CwxVTK=5CwxVTKRenderWindowInteractor=2Ecpp(327) =3A error C= 2039=3A =27OnSize=27 =3A is not a member of =27wxWindow=27 D=3A=5CCVS=5CwxWindows=5Cinclude=5Cwx/msw/window=2Eh(53) =3A see = declaration of =27wxWindow=27=22 This is HERE=3A ---- void wxVTKRenderWindowInteractor=3A=3AOnSize(wxSizeEvent =26event) =7B //this is also necessary to update the context on MSW = =23ifdef =5F=5FWXMSW=5F=5F wxWindow=3A=3AOnSize(event)=3B //wxNO=5FFULL=5FREPAINT=5FON=5FRESIZE =3F= =3F =3C=3C=3C=3C HERE !!! =23endif =2E=2E=2E ---- If I comment it out the patch provided by John Norris concerning the resizing problems under wxMSW does not work (consequently=3F)=2E Do I miss something=3F I am still using the old CMake files as for versio= n 0=2E7=2E And also in the CVS head of wxWidgets I cannot find a wxWindow=3A=3AOnSize() method on the first view=2E Should the resizing ev= ent be reproduced/recreated in a different way to solve the resizing problem=3F Or is this not linked=3F Thanks for your time=2C Reinhold -------------------- Reinhold F=FCreder MPhil Student School of Eng=2E=2C CS and Maths University of Exeter=2C UK = |