AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
AnyCAD::API::View类 参考

Present the view. 更多...

#include <APIView.h>

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

Public 成员函数

void SetDocument (const Document &pDoc)
 
Document GetDocument () const
 
void SetViewId (const ElementId &viewId)
 
ElementId GetViewId () const
 
bool ExecuteCommand (const String &commandName, const String &parameters)
 
void LoadPlaceEditor (const ElementId &typeId, const String &createMethod)
 
DocViewEditor CreateEditor (const String &commandId)
 
long ActiveEditor (const Editor &pEditor)
 
long ActiveEditorByName (const String &commandName)
 
void SetDefaultEditorId (const String &commandId)
 
String GetDefaultEditorId () const
 
ViewEditorManager GetEditorMgr () const
 
virtual void Destroy ()
 
virtual void OnSize (int nWidth, int nHeight)
 
virtual void Redraw ()
 
virtual void RequestDraw (int nRedrawHint)
 
virtual void ReloadDocument ()
 
virtual int OnLButtonDown (const InputEvent &evt)
 
virtual int OnLButtonUp (const InputEvent &evt)
 
virtual int OnMouseMove (const InputEvent &evt)
 
virtual int OnRButtonDown (const InputEvent &evt)
 
virtual int OnRButtonUp (const InputEvent &evt)
 
virtual int OnMButtonDown (const InputEvent &evt)
 
virtual int OnMButtonUp (const InputEvent &evt)
 
virtual int OnMouseWheel (const InputEvent &evt)
 
virtual int OnKeyDown (const InputEvent &evt)
 
virtual int OnChar (const InputEvent &evt)
 
virtual int OnKeyUp (const InputEvent &evt)
 
virtual int OnTimer (int nTimerId)
 
virtual bool OnContextMenu (const ContextMenu &menuContext)
 

静态 Public 成员函数

static bool SetEditorMgr (const View &pView, const ViewEditorManager &pEditMgr)
 

详细描述

Present the view.

TODO:

成员函数说明

long AnyCAD::API::View::ActiveEditor ( const Editor pEditor)

Active the editor.

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

Active editor by name.

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

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

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

Destroy the view

AnyCAD::API::View3d 重载.

bool AnyCAD::API::View::ExecuteCommand ( const String commandName,
const String parameters 
)

Execute the command

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

Get the default editor id.

返回
the editor id.
Document AnyCAD::API::View::GetDocument ( ) const

Get the document

返回
the document
ViewEditorManager AnyCAD::API::View::GetEditorMgr ( ) const

Gets editor manager.

返回
The editor manager.
ElementId AnyCAD::API::View::GetViewId ( ) const

Get the view id.

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

Load the place editor to place the instance of the TypeElement

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

key message

参数
evtthe input data
virtual bool AnyCAD::API::View::OnContextMenu ( const ContextMenu menuContext)
virtual

Show Context Menu

参数
menuContextthe context

AnyCAD::API::View3d 重载.

virtual int AnyCAD::API::View::OnKeyDown ( const InputEvent evt)
virtual

key message

参数
evtthe input data
virtual int AnyCAD::API::View::OnKeyUp ( const InputEvent evt)
virtual

key message

参数
evtthe input data
virtual int AnyCAD::API::View::OnLButtonDown ( const InputEvent evt)
virtual

Button down message

参数
evtthe input data
virtual int AnyCAD::API::View::OnLButtonUp ( const InputEvent evt)
virtual

Button up message

参数
evtthe input data
virtual int AnyCAD::API::View::OnMButtonDown ( const InputEvent evt)
virtual

Button down message

参数
evtthe input data
virtual int AnyCAD::API::View::OnMButtonUp ( const InputEvent evt)
virtual

Button up message

参数
evtthe input data
virtual int AnyCAD::API::View::OnMouseMove ( const InputEvent evt)
virtual

Mouse move message

参数
evtthe input data
virtual int AnyCAD::API::View::OnMouseWheel ( const InputEvent evt)
virtual

Middle Button scroll message

参数
evtthe input data
virtual int AnyCAD::API::View::OnRButtonDown ( const InputEvent evt)
virtual

Button down message

参数
evtthe input data
virtual int AnyCAD::API::View::OnRButtonUp ( const InputEvent evt)
virtual

Button up message

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

Change the size of the view

参数
nWidththe width
nHeightthe height

AnyCAD::API::View3d 重载.

virtual int AnyCAD::API::View::OnTimer ( int  nTimerId)
virtual

Button down message

参数
nTimerIdthe timer id

AnyCAD::API::View3d 重载.

virtual void AnyCAD::API::View::Redraw ( )
virtual

Draw the view

AnyCAD::API::View3d 重载.

virtual void AnyCAD::API::View::ReloadDocument ( )
virtual

Reload the visible elements from document.

AnyCAD::API::View3d 重载.

virtual void AnyCAD::API::View::RequestDraw ( int  nRedrawHint)
virtual

Request to draw the view

AnyCAD::API::View3d 重载.

void AnyCAD::API::View::SetDefaultEditorId ( const String commandId)

Set the default editor id.

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

Set the document

参数
pDocthe document
static bool AnyCAD::API::View::SetEditorMgr ( const View pView,
const ViewEditorManager pEditMgr 
)
static

Sets editor manager.

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

Set the view id.

参数
viewIdthe view id.

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