• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
lizhengjin
博客园    首页    新随笔    联系   管理    订阅  订阅
occ代码分析

临时变量就是local里面的变量
擦除变量就是把模型改成擦除标记

void SelectMgr_SelectionManager
::LoadMode (const Handle(SelectMgr_SelectableObject)& anObject,
const Standard_Integer amode)
{
if(amode==-1) return;
if(!anObject->HasSelection(amode))
{
Handle(SelectMgr_Selection) NewSel = new SelectMgr_Selection(amode);
anObject->AddSelection (NewSel,amode);
}
}
一个模式对应一个SelectMgr_Selection, 也对应一个过滤器模式

myCTX->SelectionManager()->Activate(anObject,itl.Value(),myMainVS,WithProj);

SelectionManager对应的管理类

void Ais_TanShape::ComputeSelection(const Handle(SelectMgr_Selection)& aSelection,
const Standard_Integer aMode)
在显示的时候,生成的是默认的模式,也可以随时打开生成
挑选模式包括原生的模式和随时打开的模式

void StdSelect_BRepSelectionTool
::ComputeSensitive (const TopoDS_Shape& theShape,
const Handle(StdSelect_BRepOwner)& theOwner,
const Handle(SelectMgr_Selection)& theSelection,
const Standard_Real theDeflection,
const Standard_Real theDeviationAngle,
const Standard_Integer theNbPOnEdge,
const Standard_Real theMaxParam,
const Standard_Boolean isAutoTriangulation)
动态加入一个拾取点

 

收取少量费用,可以提供三维引擎osg,ogre, vtk, opengl等图形库, occ, qt等还有三维框架的技术咨询服务,有意者请加我QQ 1578175270

posted on 2015-09-14 10:48  lizhengjin  阅读(1171)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3