|
BIMHome v1.0.0
BIMHome接口文档说明
|
#include <IApplication.h>
Public 成员函数 | |
| virtual App::IDocument * | addTemplateDocument (const char *tempalteName, const char *filePath)=0 |
| 临时加入一个文档 | |
| virtual void | closeAllDocuments (void)=0 |
| 关闭所有文档 (不保存) | |
| virtual bool | closeDocument (const char *name)=0 |
| 关闭指定名称的文档,并且从DocMap中移除 | |
| virtual void | deleteDocumentById (const char *strId)=0 |
| 删除指定Id的文档 | |
| virtual void | deleteTemplateDocumentById (const char *strId)=0 |
| 删除指定Id的文档 | |
| virtual App::IDocument * | getActiveDocument (void) const =0 |
| 获取当前活动文档 | |
| virtual std::vector< App::IDocument * > | getAllIDocument ()=0 |
| 获取所有文档对象 | |
| virtual App::IDocument * | getDocument (const char *Name) const =0 |
| 获取指定文档 | |
| virtual App::IDocument * | getDocumentById (const char *strId)=0 |
| 获取指定文档 | |
| virtual const std::map< std::string, App::IDocument * > & | getIDocMap () const =0 |
| 返回一个包含所有文档的映射 | |
| virtual const char * | getIDocumentName (const App::IDocument *doc) const =0 |
| 得到文档的名称 | |
| virtual long | getUniqueObjectId ()=0 |
| 生成一个唯一的对象ID | |
| virtual bool | isClosingAll () const =0 |
| 是否关闭了所有文档 | |
| virtual bool | isRestoring () const =0 |
| 当前是否正在打开或者恢复一些文档 | |
| virtual App::IDocument * | newIDocument (const char *Name=nullptr, const char *UserName=nullptr, bool createView=true, bool tempDoc=false, App::DocType type=App::DocType::Component, const char *className=nullptr)=0 |
| 创建一个新的文档对象 | |
| virtual App::IDocument * | openDocument (const char *FileName, bool createView, bool useLink, const char *className, void *pAppDelegate=nullptr, void *pGuiDelegate=nullptr)=0 |
| 打开一个文档 | |
| virtual void | setActiveDocument (const char *Name)=0 |
| 设置当前活动的Document文档 | |
| virtual void | setActiveIDocument (App::IDocument *pDoc)=0 |
| 设置当前活动文档 | |
| virtual | ~IApplication () |
静态 Public 成员函数 | |
| static IApplication & | get () |
| 获取应用程序实例 | |
| static std::string | getExecutableName () |
| 获取可执行文件的名称 | |
| static std::string | getHelpDir () |
| 获取帮助文档目录的路径 | |
| static std::string | getHomePath () |
| 获取应用程序的主目录路径 | |
| static std::string | getLibraryDir () |
| 获取库目录路径 | |
| static std::string | getResourceDir () |
| 获取资源路径 | |
| static std::string | getTempFileName (const char *FileName=nullptr) |
| 获取临时文件名称 | |
| static std::string | getTempPath () |
| 获取临时文件路径 | |
| static std::string | getUserAppDataDir () |
| 获取用户的应用程序数据目录路径 | |
| static std::string | getUserCachePath () |
| 获取用户的缓存路径 | |
| static std::string | getUserConfigPath () |
| 获取用户的配置文件路径 | |
| static std::string | getUserMacroDir () |
| 获取用户宏目录的路径 | |