AnyCAD SDK PRO  2020
The Professional Graphics SDK for .Net and C++ Developers
Public 成员函数 | 所有成员列表
AnyCAD::Platform::Renderer类 参考

渲染器。 更多...

Public 成员函数

void SetViewType (EnumStandardView nType)
 
EnumStandardView GetViewType ()
 
bool Initialize (long hWnd, int width, int height, SceneManager^ sceneManager, bool bZUp)
 
void Destroy ()
 
int Redraw ()
 
void RequestDraw (int nHint)
 
void Resize (int x, int y, int cx, int cy)
 
bool Print (String^ fileName)
 
RenderWindowGetRenderWindow ()
 
SceneManagerGetSceneManager ()
 
CameraOperatorGetCameraOperator ()
 
void SetSkyBox (String^ strName)
 
String^ GetSkyBox ()
 
void SetStandardView (EnumStandardView viewType)
 
void LookAt (Vector3^ pos, Vector3^ target, Vector3^ up)
 
void SetDisplayMode (int nMode)
 
int GetDisplayMode ()
 
void FitAll (float scale)
 
void FitBBox (AABox^ bbox, float scale)
 
void SetPickMode (int nMode)
 
int GetPickMode ()
 
int Highlight (int cx, int cy)
 
int Highlight (Vector2^ startPt, Vector2^ endPt)
 
void ClearHighlight ()
 
void QueryHighlight (SelectionQuery^ context)
 
int Select (bool clearOld)
 
void ClearSelection ()
 
void QuerySelection (SelectionQuery^ context)
 
int GetSnapFlags ()
 
void SetSnapFlags (int val)
 
SnapNodeManagerGetSnapNodeManager ()
 
Vector2WorldPoint2ScreenPoint (Vector3^ point)
 
Vector3ScreenPoint2WorldPoint (Vector2^ point)
 
Vector3ProjectOnWorkingPlane (Vector2^ mousePos, Vector3^ defaultPt)
 
RayComputeScreenRay (int cx, int cy)
 
RayComputeScreenRay (Vector2^ pt)
 
void ShowWorkingGrid (bool bShow)
 
WorkingPlaneGetWorkingPlane ()
 
SceneEnvironmentGetEnvironment ()
 
void SetCoordinateWidget (SceneNode^ node)
 
void RemoveWidgetNode (ElementId^ nId)
 
void AddWidgetNode (SceneNode^ node)
 

详细描述

渲染器。

与窗口绑定的渲染器。

成员函数说明

void AnyCAD::Platform::Renderer::AddWidgetNode ( SceneNode node)

增加部件对象。

参数
nodethe widget node.
void AnyCAD::Platform::Renderer::ClearHighlight ( )

清除预选高亮的模型。

void AnyCAD::Platform::Renderer::ClearSelection ( )

清楚选择集.

Ray ^ AnyCAD::Platform::Renderer::ComputeScreenRay ( int  cx,
int  cy 
)

计算屏幕坐标位置下的射线.

参数
cxthe x of screen point.
cythe y of screen point.
返回
the Ray.
Ray ^ AnyCAD::Platform::Renderer::ComputeScreenRay ( Vector2 pt)

计算屏幕坐标位置下的射线.

参数
ptthe screen point.
返回
the Ray.
void AnyCAD::Platform::Renderer::Destroy ( )

销毁渲染器.

void AnyCAD::Platform::Renderer::FitAll ( float  scale)

显示模型适用窗口,都能显示在窗口可见的区域。

参数
scalethe scale.
void AnyCAD::Platform::Renderer::FitBBox ( AABox bbox,
float  scale 
)

使得指定的包围盒区域适应窗口。

参数
bboxthe bound box to fit.
scalethe scale.
CameraOperator ^ AnyCAD::Platform::Renderer::GetCameraOperator ( )

获取相机操作器。

返回
the CameraOperator
int AnyCAD::Platform::Renderer::GetDisplayMode ( )

获取显示模式。

返回
the display mode.
SceneEnvironment ^ AnyCAD::Platform::Renderer::GetEnvironment ( )

获取场景设置。

返回
the SceneEnvironment.
int AnyCAD::Platform::Renderer::GetPickMode ( )

获取拾取模式。

返回
the pick mode.
RenderWindow ^ AnyCAD::Platform::Renderer::GetRenderWindow ( )

获取绘制的窗口。

返回
RenderWindow
SceneManager ^ AnyCAD::Platform::Renderer::GetSceneManager ( )

获取场景管理器。

返回
SceneManager
String ^ AnyCAD::Platform::Renderer::GetSkyBox ( )

Get current skybox name

返回
the name of the SkyBox
int AnyCAD::Platform::Renderer::GetSnapFlags ( )

Get the snap flags.

返回
the flags.
SnapNodeManager ^ AnyCAD::Platform::Renderer::GetSnapNodeManager ( )

Get the snap able node manager.

返回
the Node Manager.
EnumStandardView AnyCAD::Platform::Renderer::GetViewType ( )

Get the view type.

返回
the view type EnumStandardView.
WorkingPlane ^ AnyCAD::Platform::Renderer::GetWorkingPlane ( )

获取工作平面。

返回
the plane.
int AnyCAD::Platform::Renderer::Highlight ( int  cx,
int  cy 
)

预选在指定屏幕坐标位置下的模型,使之高亮显示。

参数
cxthe x position
cythe y position
返回
the count.
int AnyCAD::Platform::Renderer::Highlight ( Vector2 startPt,
Vector2 endPt 
)

预选在指定屏幕坐标区域下的模型,使之高亮显示。

参数
startPtthe start position
endPtthe end position
返回
the count.
bool AnyCAD::Platform::Renderer::Initialize ( long  hWnd,
int  width,
int  height,
SceneManager sceneManager,
bool  bZUp 
)

初始化. If sceneManager is NULL, Renderer will create it automatically.

参数
hWndthe window handle
widththe view width
heightthe view height
sceneManagerthe shared scene manager.
bZUptrue if z direction is (0,0,1), or it's (0,0,-1)
返回
false if failed.
void AnyCAD::Platform::Renderer::LookAt ( Vector3 pos,
Vector3 target,
Vector3 up 
)

设置相机的方向。

参数
posthe camera position
targetthe look at target
upthe up direction of the camera.
bool AnyCAD::Platform::Renderer::Print ( String^  fileName)

Print the scene as PDF.

参数
fileNamethe image file name.
返回
true if ok.
Vector3 ^ AnyCAD::Platform::Renderer::ProjectOnWorkingPlane ( Vector2 mousePos,
Vector3 defaultPt 
)

把平面坐标投影的工作平面.

参数
mousePosthe screen point.
defaultPtthe point if failed to compute the world point.
返回
the world point.
void AnyCAD::Platform::Renderer::QueryHighlight ( SelectionQuery context)

查询预选高亮的模型。

参数
contextthe query selection context.
void AnyCAD::Platform::Renderer::QuerySelection ( SelectionQuery context)

查询选择集中的模型.

参数
contextthe query selection context.
int AnyCAD::Platform::Renderer::Redraw ( )

重新绘制.

void AnyCAD::Platform::Renderer::RemoveWidgetNode ( ElementId nId)

移除部件对象.

void AnyCAD::Platform::Renderer::RequestDraw ( int  nHint)

发起绘制的请求。

参数
nHintdefault is 1. by EnumRedrawHintType
void AnyCAD::Platform::Renderer::Resize ( int  x,
int  y,
int  cx,
int  cy 
)

改变绘制区域的大小.

参数
xthe start position x
ythe start position y
cxthe width of the view
cythe height of the view
Vector3 ^ AnyCAD::Platform::Renderer::ScreenPoint2WorldPoint ( Vector2 point)

把屏幕坐标转换为世界坐标.

参数
pointthe screen point.
返回
the world point.
int AnyCAD::Platform::Renderer::Select ( bool  clearOld)

把预选高亮的模型设置为选择状态。

参数
clearOldif to clear the previous selection.
返回
the count.
void AnyCAD::Platform::Renderer::SetCoordinateWidget ( SceneNode node)

设置坐标轴显示对象。

参数
nodethe node. Remove the widget nodes.
void AnyCAD::Platform::Renderer::SetDisplayMode ( int  nMode)

设置显示模式,比如只显示面、只显示边、点等。

参数
nModethe display mode. by EnumDisplayStyle
void AnyCAD::Platform::Renderer::SetPickMode ( int  nMode)

设置拾取模式,比如只选择面、只选择边等。

参数
nModethe pick mode. By EnumRenderFlags
void AnyCAD::Platform::Renderer::SetSkyBox ( String^  strName)

Set SkyBox by Name

参数
strNamethe skybox name
void AnyCAD::Platform::Renderer::SetSnapFlags ( int  val)

Set the snap flags.

参数
valthe flags by EnumSnapFlags.
void AnyCAD::Platform::Renderer::SetStandardView ( EnumStandardView  viewType)

设置相机的方向。

参数
viewTypeby EnumStandardView
void AnyCAD::Platform::Renderer::SetViewType ( EnumStandardView  nType)

Set the view type.

参数
nTypethe EnumStandardView.
void AnyCAD::Platform::Renderer::ShowWorkingGrid ( bool  bShow)

显示或隐藏工作平面。

参数
bShowif to show the grid
Vector2 ^ AnyCAD::Platform::Renderer::WorldPoint2ScreenPoint ( Vector3 point)

把世界坐标转换为屏幕坐标。

参数
pointthe world point.
返回
the screen point.

该类的文档由以下文件生成: