1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0012042: Problem with standard Qt-based Import/Export sample application

Front and right views in OCCT CSharp/mfc/qt samples were swapped.
This commit is contained in:
apn 2016-02-09 14:30:52 +03:00 committed by abv
parent cd718a73c7
commit 32757c6e15
8 changed files with 40 additions and 40 deletions

View File

@ -340,7 +340,7 @@ public:
{
if (!myView().IsNull())
{
myView()->SetProj(V3d_Xpos);
myView()->SetProj(V3d_Yneg);
}
}
@ -362,7 +362,7 @@ public:
{
if (!myView().IsNull())
{
myView()->SetProj(V3d_Ypos);
myView()->SetProj(V3d_Xneg);
}
}
@ -373,7 +373,7 @@ public:
{
if (!myView().IsNull())
{
myView()->SetProj(V3d_Xneg);
myView()->SetProj(V3d_Ypos);
}
}
@ -384,7 +384,7 @@ public:
{
if (!myView().IsNull())
{
myView()->SetProj(V3d_Yneg);
myView()->SetProj(V3d_Xpos);
}
}

View File

@ -353,7 +353,7 @@ public:
{
if (!myView().IsNull())
{
myView()->SetProj (V3d_Xpos);
myView()->SetProj (V3d_Yneg);
}
}
@ -375,7 +375,7 @@ public:
{
if (!myView().IsNull())
{
myView()->SetProj (V3d_Ypos);
myView()->SetProj (V3d_Xneg);
}
}
@ -386,7 +386,7 @@ public:
{
if (!myView().IsNull())
{
myView()->SetProj (V3d_Xneg);
myView()->SetProj (V3d_Ypos);
}
}
@ -397,7 +397,7 @@ public:
{
if (!myView().IsNull())
{
myView()->SetProj (V3d_Yneg);
myView()->SetProj (V3d_Xpos);
}
}

View File

@ -1009,19 +1009,19 @@ namespace IE_WinForms
curForm.View.FrontView();
break;
case 6:
curForm.View.TopView();
break;
case 7:
curForm.View.LeftView();
break;
case 8:
curForm.View.BackView();
break;
case 7:
curForm.View.TopView();
break;
case 8:
curForm.View.BottomView();
break;
case 9:
curForm.View.RightView();
curForm.View.LeftView();
break;
case 10:
curForm.View.BottomView();
curForm.View.RightView();
break;
case 11:
curForm.View.AxoView();

View File

@ -236,10 +236,10 @@ void CViewer3dView::OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/)
void CViewer3dView::OnBUTTONBack()
{
myView->SetProj(V3d_Xneg);
myView->SetProj(V3d_Ypos);
TCollection_AsciiString Message("\
myView->SetProj(V3d_Xneg);\n\
myView->SetProj(V3d_Ypos);\n\
");
// Update The Result Message Dialog
@ -247,10 +247,10 @@ GetDocument()->UpdateResultMessageDlg("SetProj",Message);
} // See the back View
void CViewer3dView::OnBUTTONFront()
{
myView->SetProj(V3d_Xpos);
myView->SetProj(V3d_Yneg);
TCollection_AsciiString Message("\
myView->SetProj(V3d_Xpos);\n\
myView->SetProj(V3d_Yneg);\n\
");
// Update The Result Message Dialog
@ -282,10 +282,10 @@ GetDocument()->UpdateResultMessageDlg("SetProj",Message);
void CViewer3dView::OnBUTTONLeft()
{
myView->SetProj(V3d_Ypos);
myView->SetProj(V3d_Xneg);
TCollection_AsciiString Message("\
myView->SetProj(V3d_Ypos);\n\
myView->SetProj(V3d_Xneg);\n\
");
// Update The Result Message Dialog
@ -293,10 +293,10 @@ GetDocument()->UpdateResultMessageDlg("SetProj",Message);
} // See the left View
void CViewer3dView::OnBUTTONRight()
{
myView->SetProj(V3d_Yneg);
myView->SetProj(V3d_Xpos);
TCollection_AsciiString Message("\
myView->SetProj(V3d_Yneg);\n\
myView->SetProj(V3d_Xpos);\n\
");
// Update The Result Message Dialog

View File

@ -400,25 +400,25 @@ void CSelectionDialog::OnBottomView()
void CSelectionDialog::OnLeftView()
{
myActiveView->SetProj(V3d_Ypos);
myActiveView->SetProj(V3d_Xneg);
OnDisplay(true);
}
void CSelectionDialog::OnRightView()
{
myActiveView->SetProj(V3d_Yneg);
myActiveView->SetProj(V3d_Xpos);
OnDisplay(true);
}
void CSelectionDialog::OnFrontView()
{
myActiveView->SetProj(V3d_Xpos);
myActiveView->SetProj(V3d_Yneg);
OnDisplay(true);
}
void CSelectionDialog::OnBackView()
{
myActiveView->SetProj(V3d_Xneg);
myActiveView->SetProj(V3d_Ypos);
OnDisplay(true);
}

View File

@ -236,9 +236,9 @@ void CAnimationView3D::OnSize(UINT /*nType*/, int cx, int cy)
}
void CAnimationView3D::OnBUTTONBack()
{ myView->SetProj(V3d_Xneg); } // See the back View
{ myView->SetProj(V3d_Ypos); } // See the back View
void CAnimationView3D::OnBUTTONFront()
{ myView->SetProj(V3d_Xpos); } // See the front View
{ myView->SetProj(V3d_Yneg); } // See the front View
void CAnimationView3D::OnBUTTONBottom()
{ myView->SetProj(V3d_Zneg); } // See the bottom View
@ -246,9 +246,9 @@ void CAnimationView3D::OnBUTTONTop()
{ myView->SetProj(V3d_Zpos); } // See the top View
void CAnimationView3D::OnBUTTONLeft()
{ myView->SetProj(V3d_Ypos); } // See the left View
{ myView->SetProj(V3d_Xneg); } // See the left View
void CAnimationView3D::OnBUTTONRight()
{ myView->SetProj(V3d_Yneg); } // See the right View
{ myView->SetProj(V3d_Xpos); } // See the right View
void CAnimationView3D::OnBUTTONAxo()
{ myView->SetProj(V3d_XposYnegZpos); } // See the axonometric View

View File

@ -171,13 +171,13 @@ void OCC_3dView::OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/)
// See the back View
void OCC_3dView::OnBUTTONBack()
{
myView->SetProj(V3d_Xneg);
myView->SetProj(V3d_Ypos);
}
// See the front View
void OCC_3dView::OnBUTTONFront()
{
myView->SetProj(V3d_Xpos);
myView->SetProj(V3d_Yneg);
}
// See the bottom View
@ -195,13 +195,13 @@ void OCC_3dView::OnBUTTONTop()
// See the left View
void OCC_3dView::OnBUTTONLeft()
{
myView->SetProj(V3d_Ypos);
myView->SetProj(V3d_Xneg);
}
// See the right View
void OCC_3dView::OnBUTTONRight()
{
myView->SetProj(V3d_Yneg);
myView->SetProj(V3d_Xpos);
}
// See the axonometric View

View File

@ -154,12 +154,12 @@ void View::globalPan()
void View::front()
{
myView->SetProj( V3d_Xpos );
myView->SetProj( V3d_Yneg );
}
void View::back()
{
myView->SetProj( V3d_Xneg );
myView->SetProj( V3d_Ypos );
}
void View::top()
@ -174,12 +174,12 @@ void View::bottom()
void View::left()
{
myView->SetProj( V3d_Ypos );
myView->SetProj( V3d_Xneg );
}
void View::right()
{
myView->SetProj( V3d_Yneg );
myView->SetProj( V3d_Xpos );
}
void View::axo()