void COpenGL::RButtonUp (POINT point) { //## begin COpenGL::RButtonUp%4175DD45024E.body preserve=yes if(g_CGlobals.m_pDlgTab00->m_bAccelerated) { g_CGlobals.m_pCOpenGL3DEx->m_bAcceleratingOn=FALSE; switch (m_ModeType0) { case SURFACE : SetFaceMode (); break; case GRID : SetWireFrameMode (); break; case PTS : SetVertexMode(); break; default: break; } } m_rMouseDownPoint = CPoint(0,0); //## end COpenGL::RButtonUp%4175DD45024E.body }
void COpenGL::MButtonUp (POINT point) { //## begin COpenGL::MButtonUp%4175E1380266.body preserve=yes // void COpenGL::MButtonUp(POINT point) if(g_CGlobals.m_pDlgTab00->m_bAccelerated) { g_CGlobals.m_pCOpenGL3DEx->m_bAcceleratingOn=FALSE; switch (m_ModeType0) { case SURFACE : SetFaceMode (); break; case GRID : SetWireFrameMode (); break; case PTS : SetVertexMode(); break; default: break; } } { m_mMouseDownPoint = CPoint(0,0); // release mouse capture } //## end COpenGL::MButtonUp%4175E1380266.body }
void COpenGL::LButtonUp (POINT point) { //## begin COpenGL::LButtonUp%40E265430337.body preserve=yes // void LButtonUp(POINT point) if(g_CGlobals.m_pDlgTab00->m_bAccelerated) { g_CGlobals.m_pCOpenGL3DEx->m_bAcceleratingOn=FALSE; switch (m_ModeType0) { case SURFACE : SetFaceMode (); break; case GRID : SetWireFrameMode (); break; case PTS : SetVertexMode(); break; default: break; } } { m_bLButtonDown = false; } //## end COpenGL::LButtonUp%40E265430337.body }
MainFrame::MainFrame(void):QMainWindow(0) { setupUi(this); displayMode = AIS_DisplayMode::AIS_WireFrame; this->setWindowIconText("AsmPlan"); myViewer = new Viewer(this); myViewer->setFocus(); setCentralWidget(myViewer); connect(actionEXIT, SIGNAL(triggered()),this,SLOT(Exit())); connect(actionSTEP, SIGNAL(triggered()),this,SLOT(ImportStep())); connect(actionABOUT, SIGNAL(triggered()),this,SLOT(about())); connect(actionSTEPBack, SIGNAL(triggered()),this,SLOT(StepBack())); connect(actionPlayBack, SIGNAL(triggered()),this,SLOT(PlayBack())); connect(actionStop, SIGNAL(triggered()),this,SLOT(Stop())); connect(actionNextStep, SIGNAL(triggered()),this,SLOT(NextStep())); connect(actionPlayFoward, SIGNAL(triggered()),this,SLOT(PlayFoward())); connect(actionFoto, SIGNAL(triggered()),this,SLOT(ExportPhoto())); connect(actionDBGShow, SIGNAL(triggered()),this,SLOT(DBGShow())); connect(myViewer, SIGNAL(contextMenuSignal(const QPoint &)), this, SLOT(contextMenu(const QPoint &))); connect(actionViewMode, SIGNAL(triggered()), this, SLOT(ViewModeChanged())); connect(action_AssemlyInfoRequest, SIGNAL(triggered()), this, SLOT(ShowAssemblyInfo())); connect(action_SetFrameDisplayMode, SIGNAL(triggered()), this, SLOT(SetWireFrameMode())); connect(action_SetShadedDisplayMode, SIGNAL(triggered()), this, SLOT(SetShadedMode())); connect(action_ShowFullProduct, SIGNAL(triggered()), this, SLOT(ShowFullProduct())); connect(action_HideDisassembled, SIGNAL(triggered()), this, SLOT(HideDisaasembledPart())); //Test panel functions connect(action_ContactTest, SIGNAL(triggered()), this, SLOT(TestContactSpotVerbose())); connect(action_PointOnFace, SIGNAL(triggered()), this, SLOT(TestPointOnPart())); connect(action_FaceTrait, SIGNAL(triggered()), this, SLOT(TestSpartialDesc())); connect(action_PartIso, SIGNAL(triggered()), this, SLOT(TestIsoFaceForPart())); connect(action_DBGTime, SIGNAL(triggered()), this, SLOT(TestDBGTime())); connect(actionPartGraph, SIGNAL(triggered()), this, SLOT(PartGraph())); connect(actionBodyDescriptor, SIGNAL(triggered()), this, SLOT(TestBodyDescriptor())); connect(action_VoxelGeneration, SIGNAL(triggered()), this, SLOT(TestVoxelGeneration())); }