mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0023931: Incorrect image export code in MFC sample: Added OCC_BaseDoc::ExportView() method to unify image export procedure in all MFC samples.
Compilation errors were corrected.
This commit is contained in:
@@ -120,7 +120,18 @@ BOOL CModelClippingDlg::OnInitDialog()
|
||||
if (m_ModelClippingONOFF)
|
||||
{
|
||||
// register and activate clipping plane
|
||||
if (!myView->GetClipPlanes().Contains (myClippingPlane))
|
||||
Standard_Boolean toAddPlane = Standard_True;
|
||||
Graphic3d_SequenceOfHClipPlane::Iterator aPlaneIt (myView->GetClipPlanes());
|
||||
for (; aPlaneIt.More(); aPlaneIt.Next())
|
||||
{
|
||||
if (aPlaneIt.Value() == myClippingPlane)
|
||||
{
|
||||
toAddPlane = Standard_False;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (toAddPlane)
|
||||
{
|
||||
myView->AddClipPlane (myClippingPlane);
|
||||
}
|
||||
@@ -188,7 +199,18 @@ void CModelClippingDlg::OnCheckModelclippingonoff()
|
||||
if (m_ModelClippingONOFF)
|
||||
{
|
||||
// register and activate clipping plane
|
||||
if (!myView->GetClipPlanes().Contains (myClippingPlane))
|
||||
Standard_Boolean toAddPlane = Standard_True;
|
||||
Graphic3d_SequenceOfHClipPlane::Iterator aPlaneIt (myView->GetClipPlanes());
|
||||
for (; aPlaneIt.More(); aPlaneIt.Next())
|
||||
{
|
||||
if (aPlaneIt.Value() == myClippingPlane)
|
||||
{
|
||||
toAddPlane = Standard_False;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (toAddPlane)
|
||||
{
|
||||
myView->AddClipPlane (myClippingPlane);
|
||||
}
|
||||
|
Reference in New Issue
Block a user