huigezrx |分类标签:CATIA, CAA 2014-09-24

CAA开发中CAT3DBagRep和CAT3DCustomRep这两个类有什么区别?

Ctrl+Enter直接提交

回答(1)

huigezrx 19级 2014-09-24 21:20:13

CAT3DCustomRep继承自CAT3DRep,CAT3DCustomRep类用来管理拥有不同图形属性的图元集合,该类的典型方法是AddGp,该方法的原型及API说明如下:

public virtual void AddGP( CATGraphicPrimitive* iGraphicPrimitive, const CATGraphicAttributeSet& iGraphicAttribut)

Adds a graphic primitive to the list of managed   graphic primitives.

Parameters:

iGraphicPrimitive

  Do not delete this graphic primitive.

iGraphicAttribut

  The graphic attributes of iGraphicPrimitive.

CAT3DBagRep也继承自CAT3DRep,但是它用来创建展示对象(representations)的集合,可以将CAT3DCustomRep类的实例通过CAT3DBagRep类的成员方法AddCHild将其添加到CAT3DBagRep对应的实例中,AddChild方法的原型即API说明如下:

public virtual HRESULT     AddChild( CATRep& iRep)

Adds a child representation to the bag.

Parameters:

iRep

  Child   representation to be added.

相关知识

相关文章更多