// 创建3D接口定义图形驱动 _pOpenGLGraphicDriver = new OpenGl_GraphicDriver(_pAspectDisplayConnection); // 创建3D查看器对象,并指定图形驱动 _pV3dViewer = new V3d_Viewer(_pOpenGLGraphicDriver); // 创建交互上下文对象,关联到3D查看器 _pAisInteractiveContext = new AIS_InteractiveContext(_pV3dViewer); ...
…voidOccWidget::initControl(){// 初始化occ{// 显示到屏幕上setAttribute(Qt::WA_PaintOnScreen);// 创建连接显示设备_pAspectDisplayConnection=newAspect_DisplayConnection();// 创建3D接口定义图形驱动_pOpenGLGraphicDriver=newOpenGl_GraphicDriver(_pAspectDisplayConnection);// 创建3D查看器对象,并指定图形...
OCCWidget::OCCWidget(QWidget*parent):QWidget{parent}{// 直接绘制在屏幕上this->setAttribute(Qt::WA_PaintOnScreen);// 创建连接显示设备Handle(Aspect_DisplayConnection)m_Aspect_DisplayConnect=newAspect_DisplayConnection();// 创建3D接口定义图形驱动Handle(OpenGl_GraphicDriver)driver=newOpenGl_GraphicDriver...
OCC中显示过程如下: 获取OpenGl_GraphicDriverr图形驱动 基于图形驱动初始化一个V3d_Viewer 通过Viewer创建一个视图View,并设置显示窗口 通过Viewer初始化一个AIS_Context交互环境,并设置其显示方式(shaded或者wire) 将几何模型转换为拓扑类型 经拓扑模型转换为AIS类型(交互对象类型) 在con...
Shape(); // Initialize Open CASCADE visualization Handle(Graphic3d_GraphicDriver) aGraphicDriver = new OpenGl_GraphicDriver(); V3d_Viewer* aViewer = new V3d_Viewer(aGraphicDriver); aViewer->SetDefaultLights(); aViewer->SetLightOn(); // Create a window for visualization Handle(WNT_...
通过make menuconfig进入Target packages->Graphic libraries and applications(graphic/text)->QT5配置显示插件,以及默认插件: 编译完成后在Target Rootfs中每个插件以库的形式保存: /usr/lib/qt/plugins/platforms/ |--libqeglfs.so|--libqlinuxfb.so|--libqminimal.so|--libqminimalegl.so|--libqoffscreen.so...
(OpenGl_GraphicDriver)driver=newOpenGl_GraphicDriver(hAspect_DisplayConnect);//该类的方法允许编辑、询问连接该类的其他参数(如视图、光)viewer=newV3d_Viewer(driver);view=viewer->CreateView();WIdwin_handle=winId();//在已有的窗口上创建窗口window=newWNT_Window((Aspect_Handle)win_handle);view->Set...
Handle(OpenGl_GraphicDriver) driver = new OpenGl_GraphicDriver(hAspect_DisplayConnect); //该类的方法允许编辑、询问连接该类的其他参数(如视图、光) viewer = new V3d_Viewer(driver); view = viewer->CreateView(); WId win_handle = winId(); ...
opengl_graphicdriver_7.cxx line 391: OpenGl_GraphicDriver::View (...) --- ... Result = call_togl_view(&MyCView);--- opengl_togl_view.c line 44: int EXPORT call_togl_view(...) --- ... call_subr_open_ws(aview) returns false and we return.---...
system stability and safety while reducing costs and time to market. OpenGL was used for the graphic display and ICS was asked to develop a test plan to identify and isolate an OpenGL graphics anomaly. This 360-degree approach evaluated the entire software stack including Qt/QML and recommendatio...