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

内部使用的渲染引擎. 更多...

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

Public 成员函数

 RenderingEngine (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 

静态 Public 成员函数

static void SetUseRendering (bool enabled)
 
static bool Initialize (bool standalone)
 初始化
 
static bool Initialize ()
 初始化
 
static void Destroy ()
 释放资源
 
static string GetProgramPath ()
 获取程序根路径
 
static bool SetRenderPipeline (string name)
 设置渲染管线。
 
static Viewer CreateView (long hwndHost, uint width, uint height)
 基于已有的窗口控件上创建三维显示视图
 
static Viewer CreateWindow3D (string title, uint width, uint height, bool visible)
 创建一个独立的三维窗口
 
static long CreateChildWindow (long parent, int width, int height)
 
static void DestoryChildWindow (long child)
 
static Vector2 GetDpiScale ()
 获取当前屏幕缩放系数
 
static void SetDpiScaling (float ratio)
 自定义屏幕缩放系数
 
static void Log (EnumLoggingLevel level, string msg)
 
static bool RegisterSdk (string a, string b, string d, string e, string f)
 
static Cursor CreateCursor (Image pImage, int hotX, int hotY)
 创建光标
 
static void SetRecord (bool enabled)
 内部方法,调试使用
 
static void SetLang (string lang)
 设置语言
 

详细描述

内部使用的渲染引擎.

Group: Rendering

成员函数说明

◆ CreateCursor()

static Cursor AnyCAD.Foundation.RenderingEngine.CreateCursor ( Image pImage,
int hotX,
int hotY )
static

创建光标

参数
pImage图片,宽度和高度必须是8的倍数
hotX热点X
hotY热点Y
返回
Cursor对象

◆ CreateView()

static Viewer AnyCAD.Foundation.RenderingEngine.CreateView ( long hwndHost,
uint width,
uint height )
static

基于已有的窗口控件上创建三维显示视图

参数
hwndHost宿主窗口的句柄
width视图宽度
height视图高度
返回
创建的视图对象

◆ CreateWindow3D()

static Viewer AnyCAD.Foundation.RenderingEngine.CreateWindow3D ( string title,
uint width,
uint height,
bool visible )
static

创建一个独立的三维窗口

参数
title窗口标题
width窗口宽度
height窗口高度
visible是否可见
返回
创建的视图(窗口)对象

◆ GetDpiScale()

static Vector2 AnyCAD.Foundation.RenderingEngine.GetDpiScale ( )
static

获取当前屏幕缩放系数

返回
比例

◆ GetProgramPath()

static string AnyCAD.Foundation.RenderingEngine.GetProgramPath ( )
static

获取程序根路径

返回
目录

◆ Initialize() [1/2]

static bool AnyCAD.Foundation.RenderingEngine.Initialize ( )
static

初始化

返回
是否成功

◆ Initialize() [2/2]

static bool AnyCAD.Foundation.RenderingEngine.Initialize ( bool standalone)
static

初始化

参数
standalone独立窗口模式
返回
是否成功

◆ SetDpiScaling()

static void AnyCAD.Foundation.RenderingEngine.SetDpiScaling ( float ratio)
static

自定义屏幕缩放系数

参数
ratio比例

◆ SetLang()

static void AnyCAD.Foundation.RenderingEngine.SetLang ( string lang)
static

设置语言

参数
langenu、chs

◆ SetRecord()

static void AnyCAD.Foundation.RenderingEngine.SetRecord ( bool enabled)
static

内部方法,调试使用

参数
enabled开关

◆ SetRenderPipeline()

static bool AnyCAD.Foundation.RenderingEngine.SetRenderPipeline ( string name)
static

设置渲染管线。

参数
name设置"Basic"为性能模式。
返回
是否成功