Present the view. 更多...
#include <APIView.h>
Public 成员函数 | |
void | SetDocument (const Document &pDoc) |
Document | GetDocument () const |
void | SetViewId (const ElementId &viewId) |
ElementId | GetViewId () const |
bool | ExecuteCommand (const String &commandName, const String ¶meters) |
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 | ) |
long AnyCAD::API::View::ActiveEditorByName | ( | const String & | commandName | ) |
Active editor by name.
commandName | Name of the command. |
DocViewEditor AnyCAD::API::View::CreateEditor | ( | const String & | commandId | ) |
Create the editor by id The editor should be activated using ActiveEditor method.
commandId | the editor id |
|
virtual |
Destroy the view
被 AnyCAD::API::View3d 重载.
Execute the command
commandName | the command identifier |
parameters | the parameters. |
String AnyCAD::API::View::GetDefaultEditorId | ( | ) | const |
Get the default editor id.
Document AnyCAD::API::View::GetDocument | ( | ) | const |
Get the document
ViewEditorManager AnyCAD::API::View::GetEditorMgr | ( | ) | const |
Gets editor manager.
ElementId AnyCAD::API::View::GetViewId | ( | ) | const |
Get the view id.
Load the place editor to place the instance of the TypeElement
typeId | the TypeElement id. |
createMethod | the create method. |
|
virtual |
key message
evt | the input data |
|
virtual |
|
virtual |
key message
evt | the input data |
|
virtual |
key message
evt | the input data |
|
virtual |
Button down message
evt | the input data |
|
virtual |
Button up message
evt | the input data |
|
virtual |
Button down message
evt | the input data |
|
virtual |
Button up message
evt | the input data |
|
virtual |
Mouse move message
evt | the input data |
|
virtual |
Middle Button scroll message
evt | the input data |
|
virtual |
Button down message
evt | the input data |
|
virtual |
Button up message
evt | the input data |
|
virtual |
|
virtual |
|
virtual |
Draw the view
被 AnyCAD::API::View3d 重载.
|
virtual |
Reload the visible elements from document.
被 AnyCAD::API::View3d 重载.
|
virtual |
Request to draw the view
被 AnyCAD::API::View3d 重载.
void AnyCAD::API::View::SetDefaultEditorId | ( | const String & | commandId | ) |
Set the default editor id.
commandId | the editor id. |
void AnyCAD::API::View::SetDocument | ( | const Document & | pDoc | ) |
Set the document
pDoc | the document |
|
static |
Sets editor manager.
pView | The view. |
pEditMgr | Manager for edit. |
void AnyCAD::API::View::SetViewId | ( | const ElementId & | viewId | ) |
Set the view id.
viewId | the view id. |