implement the 3d view window in a dialog with opencascade
【preview】

【motivation】
in my application about simulation on the real structure elements in a construction, the calculation of some parameters is the mainly task which will be solved by the 3d graphic boolean method with opencascade sdk. however, the white-box test unit should be established before the main module.
first, i think that the visual tools like the a dialog or a window will be helpful to check the boolean arithmetic in my application. second, a window ocx or light-weight visual tool is mascara for the future.
【design item】
a window class “c3dwnd” is designed for disaplaying the simulated elements using in the main module. and a instance of the c3dwnd is aggregated in a dialog class. based the idea of the component, c3dwnd is nested in a dll module which can be encapsulated as an ocx. on the other hand the “dialog class” is nested in another module as an “exe file”.
【code background】
system: window xp,sp1;
compiler: visual c++ 6.0,sp6;
sdk: opencascade 5.1;
【detail】
1、c3dwnd class
// 3dwnd.h : header file