1、切换视图
1、1 增加视图切换按钮,并添加消息响应函数。
void COCCDemoView::OnButtonFrontview()
{m_View->SetProj(V3d_Yneg);m_View->FitAll();
}void COCCDemoView::OnButtonRearview()
{m_View->SetProj(V3d_Ypos);m_View->FitAll();
}void COCCDemoView::OnMenuLeftview()
{m_View->SetProj(V3d_Xneg);m_View->FitAll();
}void COCCDemoView::OnButtonRightview()
{m_View->SetProj(V3d_Xpos);m_View->FitAll();
}void COCCDemoView::OnMenuTopview()
{m_View->SetProj(V3d_Zpos);m_View->FitAll();
}void COCCDemoView::OnButtonUpview()
{m_View->SetProj(V3d_Zneg);m_View->FitAll();
}void COCCDemoView::OnMenuAxo()
{m_View->SetProj(V3d_XposYnegZpos);m_View->FitAll();
}void COCCDemoView::OnMenuFitall()
{m_View->FitAll();
}