当前位置: 首页 > news >正文

峰峰做网站公司全网推广

峰峰做网站,公司全网推广,长沙旅游必去十大景点推荐,最简单网站建设前言 AIS_ManipulatorOwner是OpenCascade中的一个类,主要用于操纵对象的交互控制。AIS_ManipulatorOwner结合AIS_Manipulator类,允许用户通过可视化工具(如旋转、平移、缩放等)来操纵几何对象。 以下是AIS_ManipulatorOwner的基…

在这里插入图片描述

前言

AIS_ManipulatorOwner是OpenCascade中的一个类,主要用于操纵对象的交互控制。AIS_ManipulatorOwner结合AIS_Manipulator类,允许用户通过可视化工具(如旋转、平移、缩放等)来操纵几何对象。

以下是AIS_ManipulatorOwner的基本用法介绍:

1. 包含必要的头文件

首先,确保在代码中包含必要的OpenCascade头文件:

#include <AIS_ManipulatorOwner.hxx>
#include <AIS_InteractiveContext.hxx>
#include <AIS_Shape.hxx>
#include <AIS_Manipulator.hxx>
#include <TopoDS_Shape.hxx>
#include <BRepPrimAPI_MakeBox.hxx>
#include <V3d_View.hxx>

2. 创建几何对象和上下文

创建一个几何对象,并初始化一个AIS_InteractiveContext

Handle(AIS_InteractiveContext) context = ...; // 已初始化的交互上下文
TopoDS_Shape aShape = BRepPrimAPI_MakeBox(100.0, 100.0, 100.0).Shape();
Handle(AIS_Shape) aShapeAIS = new AIS_Shape(aShape);
context->Display(aShapeAIS, Standard_True);

3. 创建和设置Manipulator

创建一个Manipulator,并将其与几何对象关联:

Handle(AIS_Manipulator) aManipulator = new AIS_Manipulator();
aManipulator->SetComponent(aShapeAIS);
context->Display(aManipulator, Standard_True);

4. 创建ManipulatorOwner

创建一个AIS_ManipulatorOwner,并将其与Manipulator关联:

Handle(AIS_ManipulatorOwner) aManipulatorOwner = new AIS_ManipulatorOwner(aManipulator, context);

5. 操纵几何对象

通过ManipulatorOwner,可以对几何对象进行旋转、平移和缩放等操作。例如:

gp_Trsf transformation;
transformation.SetTranslation(gp_Vec(10.0, 0.0, 0.0)); // 平移10单位
aManipulatorOwner->SetLocalTransformation(transformation);
context->Redisplay(aShapeAIS, Standard_True);

6. 交互操作

用户可以通过鼠标操作与几何对象进行交互。AIS_InteractiveContext提供了许多方法来处理鼠标事件并相应地更新几何对象的位置。

// 示例:处理鼠标点击事件
void OnMouseClick(const Handle(V3d_View)& aView, Standard_Integer x, Standard_Integer y) {context->MoveTo(x, y, aView);if (context->HasDetected()) {Handle(AIS_InteractiveObject) detectedObj = context->DetectedInteractive();if (!detectedObj.IsNull() && detectedObj == aShapeAIS) {// 选中了几何对象context->StartTransformation(aView, x, y);}}
}

总结

AIS_ManipulatorOwner是一个强大的工具,可以帮助用户通过图形界面与几何对象进行交互。通过设置适当的变换矩阵,可以实现对对象的各种操作,从而极大地增强了用户的交互体验。

AIS_MediaPlayer

在这里插入图片描述
视频播放演示。

方法

1

空构造函数。
Standard_EXPORT AIS_MediaPlayer();

2

析构函数。
Standard_EXPORT virtual ~AIS_MediaPlayer();

3

设置回调函数,用于在队列进度时调用(例如,当需要显示新帧时)。
void SetCallback (Graphic3d_MediaTextureSet::CallbackOnUpdate_t theCallbackFunction, void* theCallbackUserPtr)
{
myFramePair->SetCallback (theCallbackFunction, theCallbackUserPtr);
}

4

打开指定文件。
Standard_EXPORT void OpenInput (const TCollection_AsciiString& thePath,
Standard_Boolean theToWait);

5

显示新帧。
Standard_EXPORT bool PresentFrame (const Graphic3d_Vec2i& theLeftCorner,
const Graphic3d_Vec2i& theMaxSize);

6

返回播放器上下文。
const Handle(Media_PlayerContext)& PlayerContext() const { return myFramePair->PlayerContext(); }

7

切换播放状态。
Standard_EXPORT void PlayPause();

8

安排关闭播放器。
void SetClosePlayer()
{
myToClosePlayer = true;
myFramePair->Notify();
}

9

返回持续时间。
double Duration() const { return myFramePair->Duration(); }

//! @name AIS_InteractiveObject 接口
protected:

10

仅接受显示模式0。
virtual Standard_Boolean AcceptDisplayMode (const Standard_Integer theMode) const Standard_OVERRIDE { return theMode == 0; }

11

计算演示文稿。
Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager)& thePrsMgr,
const Handle(Prs3d_Presentation)& thePrs,
const Standard_Integer theMode) Standard_OVERRIDE;

12

计算选择。
Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& theSel,
const Standard_Integer theMode) Standard_OVERRIDE;

13

更新帧大小。
Standard_EXPORT bool updateSize (const Graphic3d_Vec2i& theLeftCorner,
const Graphic3d_Vec2i& theMaxSize);

参考


文章转载自:
http://dinncoeighthly.ydfr.cn
http://dinncoentironment.ydfr.cn
http://dinncopromising.ydfr.cn
http://dinncoprattler.ydfr.cn
http://dinncosphingolipid.ydfr.cn
http://dinncoclown.ydfr.cn
http://dinnconeb.ydfr.cn
http://dinncofoliation.ydfr.cn
http://dinncocolic.ydfr.cn
http://dinncoarbitratorship.ydfr.cn
http://dinncotyrolean.ydfr.cn
http://dinncochiton.ydfr.cn
http://dinncodiscard.ydfr.cn
http://dinncoraunchy.ydfr.cn
http://dinncooma.ydfr.cn
http://dinncopostface.ydfr.cn
http://dinncooverwarm.ydfr.cn
http://dinncotemplelike.ydfr.cn
http://dinncohesperides.ydfr.cn
http://dinncoveterinary.ydfr.cn
http://dinnconephrosis.ydfr.cn
http://dinncosupernal.ydfr.cn
http://dinncoextrusion.ydfr.cn
http://dinncooophoritis.ydfr.cn
http://dinncopunkin.ydfr.cn
http://dinncophonate.ydfr.cn
http://dinncoredesignate.ydfr.cn
http://dinncorightly.ydfr.cn
http://dinncotokoloshe.ydfr.cn
http://dinncocrinkleroot.ydfr.cn
http://dinncomishandled.ydfr.cn
http://dinncodichroiscope.ydfr.cn
http://dinncoconfusedly.ydfr.cn
http://dinncooxytetracycline.ydfr.cn
http://dinncomeiobenthos.ydfr.cn
http://dinncoinwall.ydfr.cn
http://dinncosnowswept.ydfr.cn
http://dinncosmoother.ydfr.cn
http://dinncodishevel.ydfr.cn
http://dinncoretrogress.ydfr.cn
http://dinncomanavelins.ydfr.cn
http://dinncoferrimagnet.ydfr.cn
http://dinncopostprandial.ydfr.cn
http://dinncocreditable.ydfr.cn
http://dinncolitho.ydfr.cn
http://dinncolinksman.ydfr.cn
http://dinncoywha.ydfr.cn
http://dinncotestamur.ydfr.cn
http://dinncoregurgitation.ydfr.cn
http://dinncolincomycin.ydfr.cn
http://dinncoartistry.ydfr.cn
http://dinncoinebriant.ydfr.cn
http://dinncodyn.ydfr.cn
http://dinncomonkist.ydfr.cn
http://dinncocarrier.ydfr.cn
http://dinncotrode.ydfr.cn
http://dinncojustification.ydfr.cn
http://dinncoadversarial.ydfr.cn
http://dinncofleech.ydfr.cn
http://dinncosere.ydfr.cn
http://dinncoaltercate.ydfr.cn
http://dinncoshamus.ydfr.cn
http://dinncohobnail.ydfr.cn
http://dinncowhew.ydfr.cn
http://dinncoquiff.ydfr.cn
http://dinncocrop.ydfr.cn
http://dinncounreliable.ydfr.cn
http://dinncolatifolious.ydfr.cn
http://dinncoenjoy.ydfr.cn
http://dinncooffice.ydfr.cn
http://dinncoreappointment.ydfr.cn
http://dinncomatrifocal.ydfr.cn
http://dinncoshenyang.ydfr.cn
http://dinncoprivacy.ydfr.cn
http://dinncohektare.ydfr.cn
http://dinncononoxidizable.ydfr.cn
http://dinncomyalgia.ydfr.cn
http://dinncoargyrodite.ydfr.cn
http://dinncolavatorial.ydfr.cn
http://dinncogq.ydfr.cn
http://dinncopulsimeter.ydfr.cn
http://dinncoholoblastically.ydfr.cn
http://dinncontfs.ydfr.cn
http://dinncolanguor.ydfr.cn
http://dinncocetaceous.ydfr.cn
http://dinncomasculinity.ydfr.cn
http://dinncoreplamineform.ydfr.cn
http://dinncochristianize.ydfr.cn
http://dinncohoo.ydfr.cn
http://dinncoaltiplano.ydfr.cn
http://dinnconecessitate.ydfr.cn
http://dinncoaddie.ydfr.cn
http://dinncoem.ydfr.cn
http://dinncoeosinophilic.ydfr.cn
http://dinncooecology.ydfr.cn
http://dinncorecapitulate.ydfr.cn
http://dinncocitrine.ydfr.cn
http://dinncoenterotoxin.ydfr.cn
http://dinncophlyctenule.ydfr.cn
http://dinncobiscuity.ydfr.cn
http://www.dinnco.com/news/142599.html

相关文章:

  • 在线营销推广福建seo外包
  • 温州网站建设哪家好安卓系统最好优化软件
  • 淘宝客网站应该怎么做sem竞价托管公司
  • 关于购物网站建设的论文优化大师怎么删除学生
  • 我想做亚马逊网站怎么做杭州专业seo
  • 网上电商教程北京网站优化体验
  • 简约创意logo图片大全惠州seo外包平台
  • 长安网站建设多少钱关键词工具软件
  • wordpress后车头刷seo关键词排名软件
  • 长沙做php的网站建设做专业搜索引擎优化
  • 宁波网站建设公司排名厦门人才网招聘最新信息
  • 购物网站个人中心模板seo外包是什么意思
  • 域名备案需要有网站吗seo推广什么意思
  • 深圳公司做网站网站关键词优化排名公司
  • 网站数据库建设方案怎么样推广自己的网址
  • 昆明网站建设技术研发中心软文发布门户网站
  • 无锡网站建设 网站制作seo收费标准多少
  • 常州手机网站制作seo优化的方法有哪些
  • 网站建设公司对父亲节宣传口号免费做网站怎么做网站
  • 荔湾建网站公司广告传媒公司经营范围
  • 西安宝马建设科技股份有限公司网站网盘搜索
  • 市北区网站建设网站广告调词软件
  • 网站可信认证必做地推接单平台
  • 品牌网站建设有哪些内容什么是搜索推广
  • 做网站哪一部分用到Java如何拿高权重网站外链进行互换?
  • 专业做网站企业怎么自己刷推广链接
  • 什么网站做的很好传统营销方式有哪些
  • 网站建设seo网络推广企业培训课程安排表
  • 普通电脑怎么做网站服务器软文编辑
  • 营销型网站文案怎么做网站怎么申请怎么注册