AnyCAD SDK PRO
2020
The Professional Graphics SDK for .Net and C++ Developers
|
三维视图 更多...
Public 成员函数 | |
Renderer^ | GetRenderer () |
SceneManager^ | GetSceneManager () |
void | SetViewType (EnumStandardView viewType) |
void | SetStandardView (EnumStandardView viewType) |
void | FitAll () |
void | ShowCoordinateAxis (bool bShow) |
ScreenWidget^ | GetCoordinateWidget () |
void | ConnectDocumentEvents (bool bConnect) |
Vector3^ | ScreenToWorld (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 () |
![]() | |
void | SetDocument (Document^ pDoc) |
Document^ | GetDocument () |
void | SetViewId (ElementId^ viewId) |
ElementId^ | GetViewId () |
bool | ExecuteCommand (String^ commandName, String^ parameters) |
void | LoadPlaceEditor (ElementId^ typeId, String^ createMethod) |
DocViewEditor^ | CreateEditor (String^ commandId) |
long | ActiveEditor (Editor^ pEditor) |
long | ActiveEditorByName (String^ commandName) |
void | SetDefaultEditorId (String^ commandId) |
String^ | GetDefaultEditorId () |
ViewEditorManager^ | GetEditorMgr () |
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发出的更新消息。
bConnect | true to handle the events |
void AnyCAD::Platform::View3d::Destroy | ( | ) |
Destroy the view
void AnyCAD::Platform::View3d::FitAll | ( | ) |
场景适应窗口,全部模型都在窗口中显示。
ScreenWidget ^ AnyCAD::Platform::View3d::GetCoordinateWidget | ( | ) |
获取坐标轴的显示控件。
SceneManager ^ AnyCAD::Platform::View3d::GetSceneManager | ( | ) |
获取场景管理器。
bool AnyCAD::Platform::View3d::OnContextMenu | ( | ContextMenu^ | menuContext | ) |
Show Context Menu
menuContext | the context |
void AnyCAD::Platform::View3d::OnSize | ( | int | nWidth, |
int | nHeight | ||
) |
Change the size of the view
nWidth | the width |
nHeight | the height |
int AnyCAD::Platform::View3d::OnTimer | ( | int | nTimerId | ) |
Button down message
nTimerId | the 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
屏幕坐标转换为世界坐标。
screenPt | 屏幕坐标 |
void AnyCAD::Platform::View3d::SetStandardView | ( | EnumStandardView | viewType | ) |
设置内置的几种相机的朝向。
viewType | by EnumStandardView |
void AnyCAD::Platform::View3d::SetViewType | ( | EnumStandardView | viewType | ) |
设置View的类型。
viewType | by EnumStandardView |
void AnyCAD::Platform::View3d::ShowCoordinateAxis | ( | bool | bShow | ) |
是否显示系统坐标轴。
bShow | if to show the axis |