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

Present the view. 更多...

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

Public 成员函数

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)
 

详细描述

Present the view.

TODO:

成员函数说明

long AnyCAD::Platform::View::ActiveEditor ( Editor pEditor)

Active the editor.

参数
pEditorthe Editor.
返回
the editor id.
long AnyCAD::Platform::View::ActiveEditorByName ( String^  commandName)

Active editor by name.

参数
commandNameName of the command.
返回
the editor id.
DocViewEditor ^ AnyCAD::Platform::View::CreateEditor ( String^  commandId)

Create the editor by id The editor should be activated using ActiveEditor method.

参数
commandIdthe editor id
返回
the Editor
void AnyCAD::Platform::View::Destroy ( )

Destroy the view

bool AnyCAD::Platform::View::ExecuteCommand ( String^  commandName,
String^  parameters 
)

Execute the command

参数
commandNamethe command identifier
parametersthe parameters.
返回
true if succeed.
String ^ AnyCAD::Platform::View::GetDefaultEditorId ( )

Get the default editor id.

返回
the editor id.
Document ^ AnyCAD::Platform::View::GetDocument ( )

Get the document

返回
the document
ViewEditorManager ^ AnyCAD::Platform::View::GetEditorMgr ( )

Gets editor manager.

返回
The editor manager.
ElementId ^ AnyCAD::Platform::View::GetViewId ( )

Get the view id.

返回
the view id.
void AnyCAD::Platform::View::LoadPlaceEditor ( ElementId typeId,
String^  createMethod 
)

Load the place editor to place the instance of the TypeElement

参数
typeIdthe TypeElement id.
createMethodthe create method.
int AnyCAD::Platform::View::OnChar ( InputEvent evt)

key message

参数
evtthe input data
bool AnyCAD::Platform::View::OnContextMenu ( ContextMenu menuContext)

Show Context Menu

参数
menuContextthe context
int AnyCAD::Platform::View::OnKeyDown ( InputEvent evt)

key message

参数
evtthe input data
int AnyCAD::Platform::View::OnKeyUp ( InputEvent evt)

key message

参数
evtthe input data
int AnyCAD::Platform::View::OnLButtonDown ( InputEvent evt)

Button down message

参数
evtthe input data
int AnyCAD::Platform::View::OnLButtonUp ( InputEvent evt)

Button up message

参数
evtthe input data
int AnyCAD::Platform::View::OnMButtonDown ( InputEvent evt)

Button down message

参数
evtthe input data
int AnyCAD::Platform::View::OnMButtonUp ( InputEvent evt)

Button up message

参数
evtthe input data
int AnyCAD::Platform::View::OnMouseMove ( InputEvent evt)

Mouse move message

参数
evtthe input data
int AnyCAD::Platform::View::OnMouseWheel ( InputEvent evt)

Middle Button scroll message

参数
evtthe input data
int AnyCAD::Platform::View::OnRButtonDown ( InputEvent evt)

Button down message

参数
evtthe input data
int AnyCAD::Platform::View::OnRButtonUp ( InputEvent evt)

Button up message

参数
evtthe input data
void AnyCAD::Platform::View::OnSize ( int  nWidth,
int  nHeight 
)

Change the size of the view

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

Button down message

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

Draw the view

void AnyCAD::Platform::View::ReloadDocument ( )

Reload the visible elements from document.

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

Request to draw the view

void AnyCAD::Platform::View::SetDefaultEditorId ( String^  commandId)

Set the default editor id.

参数
commandIdthe editor id.
void AnyCAD::Platform::View::SetDocument ( Document pDoc)

Set the document

参数
pDocthe document
bool AnyCAD::Platform::View::SetEditorMgr ( View pView,
ViewEditorManager pEditMgr 
)

Sets editor manager.

参数
pViewThe view.
pEditMgrManager for edit.
返回
true if it succeeds, false if it fails.
void AnyCAD::Platform::View::SetViewId ( ElementId viewId)

Set the view id.

参数
viewIdthe view id.

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