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

三维视图 更多...

类 AnyCAD::Platform::View3d 继承关系图:
AnyCAD::Platform::View

Public 成员函数

RendererGetRenderer ()
 
SceneManagerGetSceneManager ()
 
void SetViewType (EnumStandardView viewType)
 
void SetStandardView (EnumStandardView viewType)
 
void FitAll ()
 
void ShowCoordinateAxis (bool bShow)
 
ScreenWidgetGetCoordinateWidget ()
 
void ConnectDocumentEvents (bool bConnect)
 
Vector3ScreenToWorld (Vector2^ screenPt)
 
void Destroy ()
 
void OnSize (int nWidth, int nHeight)
 
bool OnContextMenu (ContextMenu^ menuContext)
 
int OnTimer (int nTimerId)
 
void Redraw ()
 
void RequestDraw (int nRedrawHint)
 
void ReloadDocument ()
 
- Public 成员函数 继承自 AnyCAD::Platform::View
void SetDocument (Document^ pDoc)
 
DocumentGetDocument ()
 
void SetViewId (ElementId^ viewId)
 
ElementIdGetViewId ()
 
bool ExecuteCommand (String^ commandName, String^ parameters)
 
void LoadPlaceEditor (ElementId^ typeId, String^ createMethod)
 
DocViewEditorCreateEditor (String^ commandId)
 
long ActiveEditor (Editor^ pEditor)
 
long ActiveEditorByName (String^ commandName)
 
void SetDefaultEditorId (String^ commandId)
 
String^ GetDefaultEditorId ()
 
ViewEditorManagerGetEditorMgr ()
 
void Destroy ()
 
void OnSize (int nWidth, int nHeight)
 
void Redraw ()
 
void RequestDraw (int nRedrawHint)
 
void ReloadDocument ()
 
int OnLButtonDown (InputEvent^ evt)
 
int OnLButtonUp (InputEvent^ evt)
 
int OnMouseMove (InputEvent^ evt)
 
int OnRButtonDown (InputEvent^ evt)
 
int OnRButtonUp (InputEvent^ evt)
 
int OnMButtonDown (InputEvent^ evt)
 
int OnMButtonUp (InputEvent^ evt)
 
int OnMouseWheel (InputEvent^ evt)
 
int OnKeyDown (InputEvent^ evt)
 
int OnChar (InputEvent^ evt)
 
int OnKeyUp (InputEvent^ evt)
 
int OnTimer (int nTimerId)
 
bool OnContextMenu (ContextMenu^ menuContext)
 
bool SetEditorMgr (View^ pView, ViewEditorManager^ pEditMgr)
 

详细描述

三维视图

与窗口显示系统关联的三维视图,如 HWND、WinForm、WPF或者 Qt Widget.

成员函数说明

void AnyCAD::Platform::View3d::ConnectDocumentEvents ( bool  bConnect)

设置是否自动接收与关联的Document发出的更新消息。

参数
bConnecttrue to handle the events
void AnyCAD::Platform::View3d::Destroy ( )

Destroy the view

void AnyCAD::Platform::View3d::FitAll ( )

场景适应窗口,全部模型都在窗口中显示。

ScreenWidget ^ AnyCAD::Platform::View3d::GetCoordinateWidget ( )

获取坐标轴的显示控件。

返回
The coordinate widget.
Renderer ^ AnyCAD::Platform::View3d::GetRenderer ( )

获取渲染器。

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

获取场景管理器。

返回
SceneManager
bool AnyCAD::Platform::View3d::OnContextMenu ( ContextMenu menuContext)

Show Context Menu

参数
menuContextthe context
void AnyCAD::Platform::View3d::OnSize ( int  nWidth,
int  nHeight 
)

Change the size of the view

参数
nWidththe width
nHeightthe height
int AnyCAD::Platform::View3d::OnTimer ( int  nTimerId)

Button down message

参数
nTimerIdthe timer id
void AnyCAD::Platform::View3d::Redraw ( )

Draw the view

void AnyCAD::Platform::View3d::ReloadDocument ( )

Reload the visible elements from document.

void AnyCAD::Platform::View3d::RequestDraw ( int  nRedrawHint)

Request to draw the view

Vector3 ^ AnyCAD::Platform::View3d::ScreenToWorld ( Vector2 screenPt)

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

参数
screenPt屏幕坐标
返回
世界坐标。
void AnyCAD::Platform::View3d::SetStandardView ( EnumStandardView  viewType)

设置内置的几种相机的朝向。

参数
viewTypeby EnumStandardView
void AnyCAD::Platform::View3d::SetViewType ( EnumStandardView  viewType)

设置View的类型。

参数
viewTypeby EnumStandardView
void AnyCAD::Platform::View3d::ShowCoordinateAxis ( bool  bShow)

是否显示系统坐标轴。

参数
bShowif to show the axis

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