AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIApplication.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIApplication_H_
4 #define _APIApplication_H_
5 
6 #include "APIObjectDef.h"
7 
8 namespace AnyCAD{ namespace API
9 {
10  class ParameterValue;
11  class View3d;
12  class PhongMaterial;
13  class Renderer;
22  {
24  public:
29  bool SetLogFileName (const Path& fileName) ;
33  bool AddLicense (const String& aa, const String& bb, const String& cc, const String& dd) ;
38  bool Initialize () ;
44  bool Initialize (const String& configFile) ;
48  void Destroy () ;
53  StringList ListSkyBoxNames () ;
59  void SetApplicationPath (const Path& strPath) ;
64  Path GetApplicationPath () ;
70  void SetTextureLibraryPath (const Path& strPath) ;
76  void SetModelLibraryPath (const Path& strPath) ;
81  Path GetModelLibraryPath () ;
89  Renderer CreateRenderer (long hWnd, int nWidth, int nHeight) ;
97  View3d CreateView (long hWnd, int nWidth, int nHeight) ;
103  PhongMaterial FindSystemMaterial (const String& name) ;
110  ParameterValue GetInput (const String& desc, const ParameterValue& defaltValue) ;
116  bool WaitForEventLoop (long loopId) ;
122  void ExitEventLoop (long loopId, bool done) ;
127  void LogMessage (const String& msg) ;
128  };//Application;
129 }}//API
130 
131 #endif //_APIApplication_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
平台应用程序
Definition: APIApplication.h:21
std::string String
Definition: APIString.h:10
The base class for parameter values.
Definition: APIParameterValue.h:19
std::vector< String > StringList
Definition: APIString.h:12
The material with phong Algorithm.
Definition: APIPhongMaterial.h:20
TODO:
Definition: APIPath.h:16
三维视图
Definition: APIView3d.h:24
#define DECLARE_APIOBJECT(className)
Definition: APIObjectDef.h:10
渲染器。
Definition: APIRenderer.h:25