AnyCAD Rapid API 2024
Help you to create a better world!
载入中...
搜索中...
未找到
SceneManager类 参考

Public 成员函数

 SceneManager (long width, long height)
 
Camera GetCamera ()
 
Camera GetCropCamera ()
 
SelectionManager GetSelectionManager ()
 
AABox GetWorldBBox ()
 
AABox GetSceneBBox ()
 
CoordinateGridWidget GetCoordinateGrid ()
 
void SetCoordinateGrid (CoordinateGridWidget val)
 
Background GetBackground ()
 
void SetBackground (Background val)
 
EnumViewCoordinateType GetViewCoordinateType ()
 
void SetViewCoordinateType (EnumViewCoordinateType val)
 
long GetDisplayFilter ()
 
void SetDisplayFilter (long val)
 
boolean SetMaterial (EnumShapeFilter type, MaterialInstance material)
 
MaterialInstance GetMaterial (EnumShapeFilter type)
 
boolean SetPreviewMaterial (EnumShapeFilter type, MaterialInstance material)
 
MaterialInstance GetPreviewMaterial (EnumShapeFilter type)
 
long AddScene (Scene scene)
 
boolean RemoveScene (long sceneId)
 
Scene FindScene (long sceneId)
 
Scene GetScene ()
 
Scene GetTempScene ()
 
Scene GetScene2D ()
 
void ResetDisplayFilters ()
 
void AddDisplayFilter (EnumShapeFilter filter)
 
void ClearDisplayFilter (EnumShapeFilter filter)
 
void ClearSelection (boolean bNotify)
 
void ClearOverride ()
 
boolean Select (SceneNode pNode)
 
boolean SelectByNode (SceneNode pNode)
 
boolean Select (long nodeId)
 
boolean SelectByNodeId (long nodeId)
 
boolean Select (ObjectId id)
 
boolean SelectByObjectId (ObjectId id)
 
boolean SelectSubShape (long nodeId, EnumShapeFilter type, long shapeIndex, IntersectPoint pPoint)
 
boolean SelectSubShape (long nodeId, EnumShapeFilter type, long shapeIndex)
 
boolean SelectSubShapeByNodeId (long nodeId, EnumShapeFilter type, long shapeIndex, IntersectPoint pPoint)
 
boolean SelectSubShape (ObjectId id, EnumShapeFilter type, long shapeIndex, IntersectPoint pPoint)
 
boolean SelectSubShape (ObjectId id, EnumShapeFilter type, long shapeIndex)
 
boolean SelectSubShapeByObjectId (ObjectId id, EnumShapeFilter type, long shapeIndex, IntersectPoint pPoint)
 
boolean SelectSubTopo (long nodeId, EnumShapeFilter type, long topoIdx, IntersectPoint pPoint)
 
boolean SelectSubTopo (long nodeId, EnumShapeFilter type, long topoIdx)
 
boolean SelectSubTopoByNodeId (long nodeId, EnumShapeFilter type, long topoIdx, IntersectPoint pPoint)
 
boolean SelectSubTopo (ObjectId id, EnumShapeFilter type, long topoIdx, IntersectPoint pPoint)
 
boolean SelectSubTopo (ObjectId id, EnumShapeFilter type, long topoIdx)
 
boolean SelectSubTopoByObjectId (ObjectId id, EnumShapeFilter type, long topoIdx, IntersectPoint pPoint)
 
boolean SelectSubTopo (PickedId id, EnumShapeFilter type, long topoIdx, IntersectPoint pPoint)
 
boolean SelectSubTopo (PickedId id, EnumShapeFilter type, long topoIdx)
 
boolean SelectSubTopoById (PickedId id, EnumShapeFilter type, long topoIdx, IntersectPoint pPoint)
 
boolean OverrideSubTopo (PickedId id, EnumShapeFilter type, long topoIdx)
 
boolean OverrideSubTopoById (PickedId id, EnumShapeFilter type, long topoIdx)
 
void RemoveOverride (PickedId id, EnumShapeFilter type, long topoIdx)
 
boolean OverrideSubTopo (PickedItem item)
 
boolean OverrideSubTopoByPicker (PickedItem item)
 
AABox GetSelectionBBox ()
 
void UpdateWorld (boolean forced)
 
boolean UpdateFixedSizeWorld ()
 
boolean HitCropBox (int x, int y)
 
int HitCropBoxGrip (int x, int y)
 
Vector3 WindowPointToCropWorldPoint (int x, int y)
 
void Clear ()
 

详细描述

<>
场景管理器.

成员函数说明

◆ AddDisplayFilter()

void SceneManager.AddDisplayFilter ( EnumShapeFilter filter)

添加显示过滤器

参数
filter过滤条件

◆ AddScene()

long SceneManager.AddScene ( Scene scene)

添加场景

参数
scene场景对象
返回
返回ID

◆ ClearDisplayFilter()

void SceneManager.ClearDisplayFilter ( EnumShapeFilter filter)

清空选择过滤器

参数
filter过滤条件

◆ ClearOverride()

void SceneManager.ClearOverride ( )

清除覆盖色

◆ ClearSelection()

void SceneManager.ClearSelection ( boolean bNotify)

清空选择集

参数
bNotify是否通知

◆ FindScene()

Scene SceneManager.FindScene ( long sceneId)

查找场景

参数
sceneIdID
返回
是否成功

◆ GetScene()

Scene SceneManager.GetScene ( )

获取默认的场景

返回
场景

◆ GetScene2D()

Scene SceneManager.GetScene2D ( )

获取二维场景

返回
场景

◆ GetSelectionBBox()

AABox SceneManager.GetSelectionBBox ( )

获取选择对象的包围盒

返回
包围盒

◆ GetTempScene()

Scene SceneManager.GetTempScene ( )

获取临时对象的场景

返回
场景

◆ OverrideSubTopo() [1/2]

boolean SceneManager.OverrideSubTopo ( PickedId id,
EnumShapeFilter type,
long topoIdx )

设置指定的拓扑元素为重写颜色

参数
id对象ID
type类型
topoIdx索引
返回
是否成功

◆ OverrideSubTopo() [2/2]

boolean SceneManager.OverrideSubTopo ( PickedItem item)

设置指定的拓扑元素为重写颜色

参数
item拓扑元素
返回
是否成功

◆ RemoveScene()

boolean SceneManager.RemoveScene ( long sceneId)

移除场景

参数
sceneId场景ID
返回
是否成功

◆ ResetDisplayFilters()

void SceneManager.ResetDisplayFilters ( )

重置显示过滤器

◆ Select() [1/3]

boolean SceneManager.Select ( long nodeId)

根据NodeID选择

参数
nodeIdNode UUID
返回
是否成功

◆ Select() [2/3]

boolean SceneManager.Select ( ObjectId id)

根据对象ID选择

参数
id对象ID
返回
是否成功

◆ Select() [3/3]

boolean SceneManager.Select ( SceneNode pNode)

根据Node来选择

参数
pNodeNode对象
返回
是否成功

◆ SelectSubShape() [1/4]

boolean SceneManager.SelectSubShape ( long nodeId,
EnumShapeFilter type,
long shapeIndex )

根据NodeID选择其子元素

参数
nodeIdthe Node UUID
type子类型
shapeIndex索引
返回
true if picked successfully.

◆ SelectSubShape() [2/4]

boolean SceneManager.SelectSubShape ( long nodeId,
EnumShapeFilter type,
long shapeIndex,
IntersectPoint pPoint )

根据NodeID选择其子元素

参数
nodeIdthe Node UUID
type子类型
shapeIndex索引
返回
true if picked successfully.

◆ SelectSubShape() [3/4]

boolean SceneManager.SelectSubShape ( ObjectId id,
EnumShapeFilter type,
long shapeIndex )

根据对ID选择其子元素

参数
id对象ID
type子类型
shapeIndex类型索引
返回
true if picked successfully .

◆ SelectSubShape() [4/4]

boolean SceneManager.SelectSubShape ( ObjectId id,
EnumShapeFilter type,
long shapeIndex,
IntersectPoint pPoint )

根据对ID选择其子元素

参数
id对象ID
type子类型
shapeIndex类型索引
返回
true if picked successfully .

◆ SelectSubTopo() [1/4]

boolean SceneManager.SelectSubTopo ( long nodeId,
EnumShapeFilter type,
long topoIdx )

根据拓扑ID选择子元素

参数
nodeIdNode Uuid
type类型
topoIdx拓扑索引
返回
是否成功

◆ SelectSubTopo() [2/4]

boolean SceneManager.SelectSubTopo ( long nodeId,
EnumShapeFilter type,
long topoIdx,
IntersectPoint pPoint )

根据拓扑ID选择子元素

参数
nodeIdNode Uuid
type类型
topoIdx拓扑索引
返回
是否成功

◆ SelectSubTopo() [3/4]

boolean SceneManager.SelectSubTopo ( ObjectId id,
EnumShapeFilter type,
long topoIdx )

根据拓扑ID选择子图元

参数
id对象ID
type类型
topoIdx拓扑索引
返回

◆ SelectSubTopo() [4/4]

boolean SceneManager.SelectSubTopo ( ObjectId id,
EnumShapeFilter type,
long topoIdx,
IntersectPoint pPoint )

根据拓扑ID选择子图元

参数
id对象ID
type类型
topoIdx拓扑索引
返回