-{\r
- myView = myContext->CurrentViewer()->CreateView();\r
- int windowHandle = (int) winId();\r
- short hi, lo;\r
- lo = (short) windowHandle;\r
- hi = (short) ( windowHandle >> 16 );\r
-#ifdef WNT\r
- Handle(WNT_Window) hWnd = \r
- new WNT_Window( Handle(Graphic3d_WNTGraphicDevice)::\r
- DownCast( myContext->CurrentViewer()->Device() ) , (int) hi, (int) lo );\r
-#else\r
- Handle(Xw_Window) hWnd = \r
- new Xw_Window( Handle(Graphic3d_GraphicDevice)::\r
- DownCast( myContext->CurrentViewer()->Device() ),\r
- (int) hi, (int) lo, Xw_WQ_SAMEQUALITY, Quantity_NOC_BLACK );\r
-#endif // WNT\r
- myView->SetWindow( hWnd );\r
- if ( !hWnd->IsMapped() )\r
- hWnd->Map();\r
- myView->SetBackgroundColor(Quantity_NOC_GRAY40);\r
- myView->MustBeResized();\r
-\r
- Handle(Geom_Axis2Placement) anAxis = new Geom_Axis2Placement( gp::XOY() );\r
- myTrihedron = new AIS_Trihedron( anAxis );\r
- myContext->Display( myTrihedron );\r
-\r
- //myView->SetAntialiasingOn();\r
- myComputedModeIsOn = true;\r
- myView->SetScale(3.0316);\r
-\r
- // This is to update View properties dialog\r
- emit ViewInitialized();\r
-}\r
+{
+ myView = myContext->CurrentViewer()->CreateView();
+ int windowHandle = (int) winId();
+ short hi, lo;
+ lo = (short) windowHandle;
+ hi = (short) ( windowHandle >> 16 );
+#ifdef WNT
+ Handle(WNT_Window) hWnd =
+ new WNT_Window( Handle(Graphic3d_WNTGraphicDevice)::
+ DownCast( myContext->CurrentViewer()->Device() ) , (int) hi, (int) lo );
+#else
+ Handle(Xw_Window) hWnd =
+ new Xw_Window( Handle(Graphic3d_GraphicDevice)::
+ DownCast( myContext->CurrentViewer()->Device() ),
+ (int) hi, (int) lo, Xw_WQ_SAMEQUALITY, Quantity_NOC_BLACK );
+#endif // WNT
+ myView->SetWindow( hWnd );
+ if ( !hWnd->IsMapped() )
+ hWnd->Map();
+ myView->SetBackgroundColor(Quantity_NOC_GRAY40);
+ myView->MustBeResized();
+
+ Handle(Geom_Axis2Placement) anAxis = new Geom_Axis2Placement( gp::XOY() );
+ myTrihedron = new AIS_Trihedron( anAxis );
+ myContext->Display( myTrihedron );
+
+ //myView->SetAntialiasingOn();
+ myComputedModeIsOn = true;
+ myView->SetScale(3.0316);
+
+ // This is to update View properties dialog
+ emit ViewInitialized();
+}