0024720: Some standard samples are not compiled after latest integration to visualisation
[occt.git] / samples / mfc / standard / 10_Convert / src / WNT / OCCDemoView.cpp
index 7195257..3cd62d5 100755 (executable)
@@ -97,6 +97,8 @@ void COCCDemoView::OnInitialUpdate()
   CView::OnInitialUpdate();
   
   myView = GetDocument()->GetViewer()->CreateView();
+  myView->SetViewMappingDefault();
+  myView->SetViewOrientationDefault();
 
   Handle(WNT_Window) aWNTWindow = new WNT_Window(GetSafeHwnd ());
   myView->SetWindow(aWNTWindow);
@@ -543,14 +545,14 @@ void COCCDemoView::OnUpdateBUTTONHlrOn(CCmdUI* pCmdUI)
        pCmdUI->Enable   (myVisMode != VIS_HLR);        
 }
 
-void COCCDemoView::GetViewCenter(V3d_Coordinate& Xc, V3d_Coordinate& Yc)
+void COCCDemoView::GetViewAt (V3d_Coordinate& theX, V3d_Coordinate& theY, V3d_Coordinate& theZ) const
 {
-       myView->Center(Xc,Yc);
+  myView->At (theX, theY, theZ);
 }
 
-void COCCDemoView::SetViewCenter(V3d_Coordinate Xc, V3d_Coordinate Yc)
+void COCCDemoView::SetViewAt (const V3d_Coordinate theX, const V3d_Coordinate theY, const V3d_Coordinate theZ)
 {
-       myView->SetCenter(Xc,Yc);
+  myView->SetAt (theX, theY, theZ);
 }
 
 void COCCDemoView::GetViewEye(V3d_Coordinate& X, V3d_Coordinate& Y, V3d_Coordinate& Z)
@@ -572,3 +574,8 @@ void COCCDemoView::SetViewScale(Quantity_Factor Coef)
 {
        myView->SetScale(Coef);
 }
+
+void COCCDemoView::Translate (const Standard_Real theX, const Standard_Real theY)
+{
+  myView->Panning (theX, theY);
+}