AnyCAD SDK PRO
2020
The Professional Graphics SDK for .Net and C++ Developers
|
渲染器。 更多...
渲染器。
与窗口绑定的渲染器。
void AnyCAD::Platform::Renderer::AddWidgetNode | ( | SceneNode^ | node | ) |
增加部件对象。
node | the widget node. |
void AnyCAD::Platform::Renderer::ClearHighlight | ( | ) |
清除预选高亮的模型。
void AnyCAD::Platform::Renderer::ClearSelection | ( | ) |
清楚选择集.
Ray ^ AnyCAD::Platform::Renderer::ComputeScreenRay | ( | int | cx, |
int | cy | ||
) |
void AnyCAD::Platform::Renderer::Destroy | ( | ) |
销毁渲染器.
void AnyCAD::Platform::Renderer::FitAll | ( | float | scale | ) |
显示模型适用窗口,都能显示在窗口可见的区域。
scale | the scale. |
void AnyCAD::Platform::Renderer::FitBBox | ( | AABox^ | bbox, |
float | scale | ||
) |
使得指定的包围盒区域适应窗口。
bbox | the bound box to fit. |
scale | the scale. |
CameraOperator ^ AnyCAD::Platform::Renderer::GetCameraOperator | ( | ) |
获取相机操作器。
int AnyCAD::Platform::Renderer::GetDisplayMode | ( | ) |
获取显示模式。
SceneEnvironment ^ AnyCAD::Platform::Renderer::GetEnvironment | ( | ) |
获取场景设置。
int AnyCAD::Platform::Renderer::GetPickMode | ( | ) |
获取拾取模式。
RenderWindow ^ AnyCAD::Platform::Renderer::GetRenderWindow | ( | ) |
获取绘制的窗口。
SceneManager ^ AnyCAD::Platform::Renderer::GetSceneManager | ( | ) |
获取场景管理器。
String ^ AnyCAD::Platform::Renderer::GetSkyBox | ( | ) |
Get current skybox name
int AnyCAD::Platform::Renderer::GetSnapFlags | ( | ) |
Get the snap flags.
SnapNodeManager ^ AnyCAD::Platform::Renderer::GetSnapNodeManager | ( | ) |
Get the snap able node manager.
EnumStandardView AnyCAD::Platform::Renderer::GetViewType | ( | ) |
Get the view type.
WorkingPlane ^ AnyCAD::Platform::Renderer::GetWorkingPlane | ( | ) |
获取工作平面。
int AnyCAD::Platform::Renderer::Highlight | ( | int | cx, |
int | cy | ||
) |
预选在指定屏幕坐标位置下的模型,使之高亮显示。
cx | the x position |
cy | the y position |
预选在指定屏幕坐标区域下的模型,使之高亮显示。
startPt | the start position |
endPt | the end position |
bool AnyCAD::Platform::Renderer::Initialize | ( | long | hWnd, |
int | width, | ||
int | height, | ||
SceneManager^ | sceneManager, | ||
bool | bZUp | ||
) |
初始化. If sceneManager is NULL, Renderer will create it automatically.
hWnd | the window handle |
width | the view width |
height | the view height |
sceneManager | the shared scene manager. |
bZUp | true if z direction is (0,0,1), or it's (0,0,-1) |
设置相机的方向。
pos | the camera position |
target | the look at target |
up | the up direction of the camera. |
bool AnyCAD::Platform::Renderer::Print | ( | String^ | fileName | ) |
Print the scene as PDF.
fileName | the image file name. |
Vector3 ^ AnyCAD::Platform::Renderer::ProjectOnWorkingPlane | ( | Vector2^ | mousePos, |
Vector3^ | defaultPt | ||
) |
把平面坐标投影的工作平面.
mousePos | the screen point. |
defaultPt | the point if failed to compute the world point. |
void AnyCAD::Platform::Renderer::QueryHighlight | ( | SelectionQuery^ | context | ) |
查询预选高亮的模型。
context | the query selection context. |
void AnyCAD::Platform::Renderer::QuerySelection | ( | SelectionQuery^ | context | ) |
查询选择集中的模型.
context | the query selection context. |
int AnyCAD::Platform::Renderer::Redraw | ( | ) |
重新绘制.
void AnyCAD::Platform::Renderer::RemoveWidgetNode | ( | ElementId^ | nId | ) |
移除部件对象.
void AnyCAD::Platform::Renderer::RequestDraw | ( | int | nHint | ) |
发起绘制的请求。
nHint | default is 1. by EnumRedrawHintType |
void AnyCAD::Platform::Renderer::Resize | ( | int | x, |
int | y, | ||
int | cx, | ||
int | cy | ||
) |
改变绘制区域的大小.
x | the start position x |
y | the start position y |
cx | the width of the view |
cy | the height of the view |
把屏幕坐标转换为世界坐标.
point | the screen point. |
int AnyCAD::Platform::Renderer::Select | ( | bool | clearOld | ) |
把预选高亮的模型设置为选择状态。
clearOld | if to clear the previous selection. |
void AnyCAD::Platform::Renderer::SetCoordinateWidget | ( | SceneNode^ | node | ) |
设置坐标轴显示对象。
node | the node. Remove the widget nodes. |
void AnyCAD::Platform::Renderer::SetDisplayMode | ( | int | nMode | ) |
设置显示模式,比如只显示面、只显示边、点等。
nMode | the display mode. by EnumDisplayStyle |
void AnyCAD::Platform::Renderer::SetPickMode | ( | int | nMode | ) |
设置拾取模式,比如只选择面、只选择边等。
nMode | the pick mode. By EnumRenderFlags |
void AnyCAD::Platform::Renderer::SetSkyBox | ( | String^ | strName | ) |
Set SkyBox by Name
strName | the skybox name |
void AnyCAD::Platform::Renderer::SetSnapFlags | ( | int | val | ) |
Set the snap flags.
val | the flags by EnumSnapFlags. |
void AnyCAD::Platform::Renderer::SetStandardView | ( | EnumStandardView | viewType | ) |
设置相机的方向。
viewType | by EnumStandardView |
void AnyCAD::Platform::Renderer::SetViewType | ( | EnumStandardView | nType | ) |
Set the view type.
nType | the EnumStandardView. |
void AnyCAD::Platform::Renderer::ShowWorkingGrid | ( | bool | bShow | ) |
显示或隐藏工作平面。
bShow | if to show the grid |
把世界坐标转换为屏幕坐标。
point | the world point. |