AnyCAD Rapid API 2024
Help you to create a better world!
|
WPF 3D控件 更多...
Public 成员函数 | |||||||
RenderControl () | |||||||
构造函数 | |||||||
void | Dispose () | ||||||
手动关闭删除 | |||||||
void | ForceUpdate () | ||||||
强制更新首帧 | |||||||
void | EnableAnimation (bool bEnabled) | ||||||
开启动画 | |||||||
void | ZoomAll () | ||||||
缩放场景适应窗口大小 | |||||||
void | ZoomAll (float ratio) | ||||||
缩放视图适应窗口. | |||||||
void | SwitchProjectionType () | ||||||
切换相机类型:正交 – 透视 | |||||||
void | SetViewCube (EnumViewCoordinateType type) | ||||||
设置坐标轴样式 | |||||||
void | ShowCoordinateGrid (bool bShow) | ||||||
显示网格 | |||||||
void | SetStandardView (EnumStandardView view, bool annimation) | ||||||
设置标准视图 | |||||||
void | SetBackgroundColor (float r, float g, float b, float a) | ||||||
设置背景色 | |||||||
void | ClearPickFilters () | ||||||
清空选择过滤器 | |||||||
void | AddPickFilter (EnumShapeFilter filter) | ||||||
增加过滤条件 | |||||||
void | ResetDisplayFilters () | ||||||
重置显示过滤器 | |||||||
void | AddDisplayFilter (EnumShapeFilter filter) | ||||||
增加显示过滤条件 | |||||||
void | ClearDisplayFilter (EnumShapeFilter filter) | ||||||
情况显示过滤器 | |||||||
void | RequestDraw (EnumUpdateFlags flag=EnumUpdateFlags.Scene) | ||||||
请求绘制场景 | |||||||
void | ShowSceneNode (SceneNode node) | ||||||
增加显示对象,一个Node只能加一次。 | |||||||
MaterialInstance | GetMaterial (Vector3 color, float a) | ||||||
根据颜色获取材质 | |||||||
BrepSceneNode | ShowShape (TopoShape shape, Vector3 color) | ||||||
增加几何对象,并显示 | |||||||
BrepSceneNode | ShowShape (TopoShape shape, MaterialInstance faceMaterial, MaterialInstance edgeMaterial) | ||||||
显示几何对象
| |||||||
void | RemoveSceneNode (uint id) | ||||||
删除显示对象 | |||||||
void | ClearAll () | ||||||
清空场景 | |||||||
void | ClearScene () | ||||||
清空场景 | |||||||
void | ClearScene2D () | ||||||
清空二维场景 | |||||||
ScreenShot | CreateScreenShot () | ||||||
创建屏幕快照 | |||||||
void | SetAnimationCallback (ViewerListener.AnimationHandler callback) | ||||||
设置动画处理方法 | |||||||
void | SetBeforeSelectCallback (ViewerListener.BeforeSelectHandler callback) | ||||||
设置选择过滤器 | |||||||
void | SetSelectCallback (ViewerListener.AfterSelectHandler callback) | ||||||
设置选择回调函数 | |||||||
void | SetHilightingCallback (ViewerListener.BeforeSelectHandler callback) | ||||||
设置高亮回调函数 | |||||||
void | SetHilightFilterCallback (ViewerListener.HilightFilterHandler callback) | ||||||
设置高亮过滤回调函数 | |||||||
void | SetAfterRenderingCallback (ViewerListener.RenderingHandler callback) | ||||||
设置渲染回调函数 | |||||||
void | SetEditor (Editor editor) | ||||||
设置编辑器 | |||||||
bool | ExecuteCommand (string name, ParameterDict parameters) | ||||||
执行命令 | |||||||
void | ClearEditor () | ||||||
清空编辑器 | |||||||
void | SetCameraDriver (CameraDriver driver) | ||||||
设置相机驱动 | |||||||
PickedItem | Snap (double x, double y) | ||||||
根据窗口的坐标Snap场景中的对象
| |||||||
void | SetToolTip (string text) | ||||||
设置Tooltip | |||||||
Point | GetMousePosition (MouseEventArgs e) | ||||||
获得鼠标位置 | |||||||
属性 | |
Viewer | Viewer [get] |
获取视图 | |
bool | IsReady [get] |
ViewContext | ViewContext [get] |
场景上下文 | |
SceneManager | SceneManager [get] |
获取场景管理器 | |
SelectionManager | SelectionManager [get] |
获取选择管理器 | |
Scene | Scene [get] |
得到属性 | |
Scene | Scene2D [get] |
得到属性 | |
Camera | Camera [get] |
相机 | |
bool | IsToolTipEnabled [get, set] |
Tooltip是否启用 | |
bool | UseEngineCursor [get, set] |
使用引擎自绘制光标 | |
![]() |
事件 | |
Action | ViewerReady |
渲染引擎初始化完成事件 | |
WPF 3D控件
void AnyCAD.WPF.RenderControl.AddDisplayFilter | ( | EnumShapeFilter | filter | ) |
void AnyCAD.WPF.RenderControl.AddPickFilter | ( | EnumShapeFilter | filter | ) |
void AnyCAD.WPF.RenderControl.ClearAll | ( | ) |
清空场景
void AnyCAD.WPF.RenderControl.ClearDisplayFilter | ( | EnumShapeFilter | filter | ) |
void AnyCAD.WPF.RenderControl.ClearEditor | ( | ) |
清空编辑器
void AnyCAD.WPF.RenderControl.ClearPickFilters | ( | ) |
清空选择过滤器
void AnyCAD.WPF.RenderControl.ClearScene | ( | ) |
清空场景
void AnyCAD.WPF.RenderControl.ClearScene2D | ( | ) |
清空二维场景
ScreenShot AnyCAD.WPF.RenderControl.CreateScreenShot | ( | ) |
void AnyCAD.WPF.RenderControl.EnableAnimation | ( | bool | bEnabled | ) |
bool AnyCAD.WPF.RenderControl.ExecuteCommand | ( | string | name, |
ParameterDict | parameters ) |
void AnyCAD.WPF.RenderControl.ForceUpdate | ( | ) |
强制更新首帧
MaterialInstance AnyCAD.WPF.RenderControl.GetMaterial | ( | Vector3 | color, |
float | a ) |
根据颜色获取材质
color | 颜色 |
a | 透明度 |
Point AnyCAD.WPF.RenderControl.GetMousePosition | ( | MouseEventArgs | e | ) |
获得鼠标位置
e |
void AnyCAD.WPF.RenderControl.RemoveSceneNode | ( | uint | id | ) |
void AnyCAD.WPF.RenderControl.RequestDraw | ( | EnumUpdateFlags | flag = EnumUpdateFlags::Scene | ) |
void AnyCAD.WPF.RenderControl.ResetDisplayFilters | ( | ) |
重置显示过滤器
void AnyCAD.WPF.RenderControl.SetAfterRenderingCallback | ( | ViewerListener::RenderingHandler | callback | ) |
设置渲染回调函数
callback |
void AnyCAD.WPF.RenderControl.SetAnimationCallback | ( | ViewerListener::AnimationHandler | callback | ) |
void AnyCAD.WPF.RenderControl.SetBackgroundColor | ( | float | r, |
float | g, | ||
float | b, | ||
float | a ) |
void AnyCAD.WPF.RenderControl.SetBeforeSelectCallback | ( | ViewerListener::BeforeSelectHandler | callback | ) |
void AnyCAD.WPF.RenderControl.SetCameraDriver | ( | CameraDriver | driver | ) |
void AnyCAD.WPF.RenderControl.SetEditor | ( | Editor | editor | ) |
void AnyCAD.WPF.RenderControl.SetHilightFilterCallback | ( | ViewerListener::HilightFilterHandler | callback | ) |
void AnyCAD.WPF.RenderControl.SetHilightingCallback | ( | ViewerListener::BeforeSelectHandler | callback | ) |
void AnyCAD.WPF.RenderControl.SetSelectCallback | ( | ViewerListener::AfterSelectHandler | callback | ) |
void AnyCAD.WPF.RenderControl.SetStandardView | ( | EnumStandardView | view, |
bool | annimation ) |
void AnyCAD.WPF.RenderControl.SetToolTip | ( | string | text | ) |
void AnyCAD.WPF.RenderControl.SetViewCube | ( | EnumViewCoordinateType | type | ) |
void AnyCAD.WPF.RenderControl.ShowCoordinateGrid | ( | bool | bShow | ) |
void AnyCAD.WPF.RenderControl.ShowSceneNode | ( | SceneNode | node | ) |
BrepSceneNode AnyCAD.WPF.RenderControl.ShowShape | ( | TopoShape | shape, |
MaterialInstance | faceMaterial, | ||
MaterialInstance | edgeMaterial ) |
显示几何对象
shape | 几何对象 |
faceMaterial | 面的材质 |
edgeMaterial | 边的材质 |
BrepSceneNode AnyCAD.WPF.RenderControl.ShowShape | ( | TopoShape | shape, |
Vector3 | color ) |
PickedItem AnyCAD.WPF.RenderControl.Snap | ( | double | x, |
double | y ) |
void AnyCAD.WPF.RenderControl.SwitchProjectionType | ( | ) |
切换相机类型:正交 – 透视
void AnyCAD.WPF.RenderControl.ZoomAll | ( | float | ratio | ) |
|
get |
相机
|
get |
得到属性
|
get |
得到属性
|
get |
获取场景管理器
|
get |
获取选择管理器
|
getset |
使用引擎自绘制光标
|
get |
场景上下文
|
get |
获取视图