文档视图管理器 更多...
#include <APIDocViewManager.h>
Public 成员函数 | |
View3d | CreateView (long hWnd, const Document &document) |
StringList | ListAllCommands () |
Document | CreateDocument (const String &docType) |
Document | OpenDocument (const Path &fileName) |
bool | SaveDocument (const Document &doc, const Path &fileName) |
void | SetCurrentDocumentType (const String &docType) |
String | GetCurrentDocumentType () const |
ElementIdSet | CollectUnusedTypeIds (const Document &doc) |
void | SelectElements (const Document &doc, const ElementIdSet &ids) |
文档视图管理器
TODO:
ElementIdSet AnyCAD::API::DocViewManager::CollectUnusedTypeIds | ( | const Document & | doc | ) |
Create a new document
docType | the document type |
Create 3d view
hWnd | the window handle |
document | the document |
String AnyCAD::API::DocViewManager::GetCurrentDocumentType | ( | ) | const |
Get current document type.
StringList AnyCAD::API::DocViewManager::ListAllCommands | ( | ) |
List all the commands
Open an existing document.
fileName | the full file path. |
Save the document.
doc | The document. |
fileName | Filename of the file. |
void AnyCAD::API::DocViewManager::SelectElements | ( | const Document & | doc, |
const ElementIdSet & | ids | ||
) |
Select the elements
doc | the Document |
ids | the ids to be selected. |
void AnyCAD::API::DocViewManager::SetCurrentDocumentType | ( | const String & | docType | ) |
Set current document policy.
docType | the document type Id. |