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

场景管理器. 更多...

类 AnyCAD.Foundation.SceneManager 继承关系图:

Public 成员函数

 SceneManager (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
 SceneManager (uint viewId, uint width, uint height)
 
Camera GetCamera ()
 
SelectionManager GetSelectionManager ()
 
AABox GetWorldBBox ()
 
AABox GetSceneBBox ()
 
CoordinateGridWidget GetCoordinateGrid ()
 
void SetCoordinateGrid (CoordinateGridWidget val)
 
Background GetBackground ()
 
void SetBackground (Background val)
 
EnumViewCoordinateType GetViewCoordinateType ()
 
void SetViewCoordinateType (EnumViewCoordinateType val)
 
bool GetHilightVisibleOnly ()
 
void SetHilightVisibleOnly (bool val)
 
uint GetViewId ()
 
double GetViewScale ()
 
void SetViewScale (double val)
 
EnumShapeFilter GetDisplayFilter ()
 
void SetDisplayFilter (EnumShapeFilter val)
 
bool SetMaterial (EnumShapeFilter type, MaterialInstance material)
 
MaterialInstance GetMaterial (EnumShapeFilter type)
 
bool SetPreviewMaterial (EnumShapeFilter type, MaterialInstance material)
 
MaterialInstance GetPreviewMaterial (EnumShapeFilter type)
 
uint AddScene (Scene scene)
 添加场景
 
bool RemoveScene (uint sceneId)
 移除场景
 
Scene FindScene (uint sceneId)
 查找场景
 
Scene GetScene ()
 获取默认的场景
 
Scene GetTempScene ()
 获取临时对象的场景
 
Scene GetScene2D ()
 获取二维场景
 
void ResetDisplayFilters ()
 重置显示过滤器
 
void AddDisplayFilter (EnumShapeFilter filter)
 添加显示过滤器
 
void ClearDisplayFilter (EnumShapeFilter filter)
 清空选择过滤器
 
void ClearSelection (bool bNotify)
 清空选择集
 
void ClearOverride ()
 清除覆盖色
 
bool Select (SceneNode pNode)
 根据Node来选择
 
bool SelectByNode (SceneNode pNode)
 
bool Select (uint nodeId)
 根据NodeID选择
 
bool SelectByNodeId (uint nodeId)
 
bool Select (ObjectId id)
 根据对象ID选择
 
bool SelectByObjectId (ObjectId id)
 
bool SelectSubShape (uint nodeId, EnumShapeFilter type, uint shapeIndex, IntersectPoint pPoint)
 根据NodeID选择其子元素
 
bool SelectSubShape (uint nodeId, EnumShapeFilter type, uint shapeIndex)
 根据NodeID选择其子元素
 
bool SelectSubShapeByNodeId (uint nodeId, EnumShapeFilter type, uint shapeIndex, IntersectPoint pPoint)
 
bool SelectSubShape (ObjectId id, EnumShapeFilter type, uint shapeIndex, IntersectPoint pPoint)
 根据对ID选择其子元素
 
bool SelectSubShape (ObjectId id, EnumShapeFilter type, uint shapeIndex)
 根据对ID选择其子元素
 
bool SelectSubShapeByObjectId (ObjectId id, EnumShapeFilter type, uint shapeIndex, IntersectPoint pPoint)
 
bool SelectSubTopo (uint nodeId, EnumTopoShapeType type, uint topoIdx, IntersectPoint pPoint)
 根据拓扑ID选择子元素
 
bool SelectSubTopo (uint nodeId, EnumTopoShapeType type, uint topoIdx)
 根据拓扑ID选择子元素
 
bool SelectSubTopoByNodeId (uint nodeId, EnumTopoShapeType type, uint topoIdx, IntersectPoint pPoint)
 
bool SelectSubTopo (ObjectId id, EnumTopoShapeType type, uint topoIdx, IntersectPoint pPoint)
 根据拓扑ID选择子图元
 
bool SelectSubTopo (ObjectId id, EnumTopoShapeType type, uint topoIdx)
 根据拓扑ID选择子图元
 
bool SelectSubTopoByObjectId (ObjectId id, EnumTopoShapeType type, uint topoIdx, IntersectPoint pPoint)
 
bool SelectSubTopo (PickedId id, IntersectPoint pPoint)
 
bool SelectSubTopo (PickedId id)
 
bool SelectSubTopoById (PickedId id, IntersectPoint pPoint)
 
bool OverrideSubTopo (PickedId id)
 设置指定的拓扑元素为重写颜色
 
bool OverrideSubTopoById (PickedId id)
 
void RemoveOverride (PickedId id)
 
bool OverrideSubTopo (PickedItem item)
 设置指定的拓扑元素为重写颜色
 
bool OverrideSubTopoByPicker (PickedItem item)
 
AABox GetSelectionBBox ()
 获取选择对象的包围盒
 
void UpdateWorld (bool forced)
 
bool UpdateFixedSizeWorld ()
 
void Clear ()
 

详细描述

场景管理器.

Group: Rendering

成员函数说明

◆ AddDisplayFilter()

void AnyCAD.Foundation.SceneManager.AddDisplayFilter ( EnumShapeFilter filter)

添加显示过滤器

参数
filter过滤条件

◆ AddScene()

uint AnyCAD.Foundation.SceneManager.AddScene ( Scene scene)

添加场景

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

◆ ClearDisplayFilter()

void AnyCAD.Foundation.SceneManager.ClearDisplayFilter ( EnumShapeFilter filter)

清空选择过滤器

参数
filter过滤条件

◆ ClearSelection()

void AnyCAD.Foundation.SceneManager.ClearSelection ( bool bNotify)

清空选择集

参数
bNotify是否通知

◆ FindScene()

Scene AnyCAD.Foundation.SceneManager.FindScene ( uint sceneId)

查找场景

参数
sceneIdID
返回
是否成功

◆ GetScene()

Scene AnyCAD.Foundation.SceneManager.GetScene ( )

获取默认的场景

返回
场景

◆ GetScene2D()

Scene AnyCAD.Foundation.SceneManager.GetScene2D ( )

获取二维场景

返回
场景

◆ GetSelectionBBox()

AABox AnyCAD.Foundation.SceneManager.GetSelectionBBox ( )

获取选择对象的包围盒

返回
包围盒

◆ GetTempScene()

Scene AnyCAD.Foundation.SceneManager.GetTempScene ( )

获取临时对象的场景

返回
场景

◆ OverrideSubTopo() [1/2]

bool AnyCAD.Foundation.SceneManager.OverrideSubTopo ( PickedId id)

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

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

◆ OverrideSubTopo() [2/2]

bool AnyCAD.Foundation.SceneManager.OverrideSubTopo ( PickedItem item)

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

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

◆ RemoveScene()

bool AnyCAD.Foundation.SceneManager.RemoveScene ( uint sceneId)

移除场景

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

◆ Select() [1/3]

bool AnyCAD.Foundation.SceneManager.Select ( ObjectId id)

根据对象ID选择

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

◆ Select() [2/3]

bool AnyCAD.Foundation.SceneManager.Select ( SceneNode pNode)

根据Node来选择

参数
pNodeNode对象
返回
是否成功

◆ Select() [3/3]

bool AnyCAD.Foundation.SceneManager.Select ( uint nodeId)

根据NodeID选择

参数
nodeIdNode UUID
返回
是否成功

◆ SelectSubShape() [1/4]

bool AnyCAD.Foundation.SceneManager.SelectSubShape ( ObjectId id,
EnumShapeFilter type,
uint shapeIndex )

根据对ID选择其子元素

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

◆ SelectSubShape() [2/4]

bool AnyCAD.Foundation.SceneManager.SelectSubShape ( ObjectId id,
EnumShapeFilter type,
uint shapeIndex,
IntersectPoint pPoint )

根据对ID选择其子元素

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

◆ SelectSubShape() [3/4]

bool AnyCAD.Foundation.SceneManager.SelectSubShape ( uint nodeId,
EnumShapeFilter type,
uint shapeIndex )

根据NodeID选择其子元素

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

◆ SelectSubShape() [4/4]

bool AnyCAD.Foundation.SceneManager.SelectSubShape ( uint nodeId,
EnumShapeFilter type,
uint shapeIndex,
IntersectPoint pPoint )

根据NodeID选择其子元素

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

◆ SelectSubTopo() [1/4]

bool AnyCAD.Foundation.SceneManager.SelectSubTopo ( ObjectId id,
EnumTopoShapeType type,
uint topoIdx )

根据拓扑ID选择子图元

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

◆ SelectSubTopo() [2/4]

bool AnyCAD.Foundation.SceneManager.SelectSubTopo ( ObjectId id,
EnumTopoShapeType type,
uint topoIdx,
IntersectPoint pPoint )

根据拓扑ID选择子图元

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

◆ SelectSubTopo() [3/4]

bool AnyCAD.Foundation.SceneManager.SelectSubTopo ( uint nodeId,
EnumTopoShapeType type,
uint topoIdx )

根据拓扑ID选择子元素

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

◆ SelectSubTopo() [4/4]

bool AnyCAD.Foundation.SceneManager.SelectSubTopo ( uint nodeId,
EnumTopoShapeType type,
uint topoIdx,
IntersectPoint pPoint )

根据拓扑ID选择子元素

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