ParaView中实现远程渲染与前台显示的对接
实现 远程 显示 渲染 对接 前台
2023-09-11 14:19:51 时间
pqViewFrame *pqMultiViewWidget::newFrame(vtkSMProxy *view) { pqViewFrame *frame = new pqViewFrame(); QObject::connect(frame, SIGNAL(buttonPressed(int)), this, SLOT(standardButtonPressed(int))); QObject::connect(frame, SIGNAL(swapPositions(const QString &)), this, SLOT(swapPositions(const QString &)), Qt::QueuedConnection); // 从服务管理器中查找可用的pqView pqServerManagerModel *smmodel = pqApplicationCore::instance()->getServerManagerModel(); pqView *pqview = smmodel->findItem<pqView *>(view); // 将 pqView 与 显示的pqViewFrame进行联接 // it's possible that pqview is nullptr, if the view proxy hasn't been registered // yet. This happens often when initialization state is being loaded in // collaborative sessions. ConnectFrameToView(frame, pqview); // Search for view frame actions plugins and allow them to decide // whether to add their actions to this view type's frame or not. pqInterfaceTracker *tracker = pqApplicationCore::instance()->interfaceTracker(); Q_FOREACH (pqViewFrameActionsInterface *vfai, tracker->interfaces<pqViewFrameActionsInterface *>()) { vfai->frameConnected(frame, pqview); } return frame; } void ConnectFrameToView(pqViewFrame *frame, pqView *pqview) { assert(frame); // if pqview == nullptr, then the frame is either being assigned to a empty // view, or pqview for a view-proxy just isn't present yet. // it's possible that pqview is nullptr, if the view proxy hasn't been registered // yet. This happens often when initialization state is being loaded in // collaborative sessions. if (pqview != nullptr) { // 把 pqView 中的 widget 放入 pqViewFrame 的容器中 QWidget *viewWidget = pqview->widget(); frame->setCentralWidget(viewWidget, pqview); } }
相关文章
- 安卓手机语音备忘录怎么转文字?手机语音转文字用便签快速实现
- 基于Hadoop SLA认证机制实现权限控制
- Java实现 LeetCode 741 摘樱桃(DFS || 递推 || 传纸条)
- Java实现 LeetCode 224 基本计算器
- java实现第六届蓝桥杯三羊献瑞
- python fabric实现远程操作和部署示例
- 移动前端调试方案(Android + Chrome 实现远程调试)
- 深入Jetty源码之DescriptorProcessor实现
- 基于live555实现的跨平台高性能RTSPServer流媒体服务器EasyIPCamera
- mysql 实现远程访问,phpmyadmin实现远程连接mysql
- 「技术直播」分布式数据库订阅功能的原理及实现
- Atitit.ui控件---下拉菜单选择控件的实现select html
- Futter基础第15篇: 实现类似闲鱼App底部导航凸起按钮
- Py之matplotlib-seaborn :核密度估计(KDE)分析/奇异点分析/相关性分析简、绘图的高级进阶之高级图可视化(直方图-箱线图-密度图-小提琴图等)简介、代码实现之详细攻略
- 远程终端服务的简单实现
- 【项目实战】如何基于蓝凌OA实现调用SQL语句写入数据库
- 【项目实战】Springboot整合SCP,实现远程文件拷贝与传输功能
- Java 远程控制全实现:高效解决远程控制场景,附代码示例
- spring源码阅读--@Transactional实现原理
- Android 智能问答机器人的实现
- python fabric实现远程操作和部署
- 【项目实战】SpringBoot整合Protobuf,实现基于RestTemplate的模拟客户端与服务端的远程调用
- 【项目实战】Gitlab与IDEA组合,实现基于Master环境,克隆分支进行代码更新?
- 改进的粒子滤波算法及其应用研究(Matlab代码实现)
- Python开发学习之Python实现用手机监控远程控制电脑