平台应用程序
更多...
#include <APIApplication.h>
bool AnyCAD::API::Application::AddLicense |
( |
const String & |
aa, |
|
|
const String & |
bb, |
|
|
const String & |
cc, |
|
|
const String & |
dd |
|
) |
| |
Renderer AnyCAD::API::Application::CreateRenderer |
( |
long |
hWnd, |
|
|
int |
nWidth, |
|
|
int |
nHeight |
|
) |
| |
创建渲染器。(内部调用)
- 参数
-
hWnd | the window handle |
nWidth | the width |
nHeight | the height |
- 返回
- the Renderer
View3d AnyCAD::API::Application::CreateView |
( |
long |
hWnd, |
|
|
int |
nWidth, |
|
|
int |
nHeight |
|
) |
| |
创建三维视图。
- 参数
-
hWnd | the window handle |
nWidth | the width |
nHeight | the height |
- 返回
- the View3d
void AnyCAD::API::Application::Destroy |
( |
| ) |
|
void AnyCAD::API::Application::ExitEventLoop |
( |
long |
loopId, |
|
|
bool |
done |
|
) |
| |
Exit the event loop.
- 参数
-
loopId | the id. |
done | false if aborted. |
Find system material
- 参数
-
- 返回
- the material
Path AnyCAD::API::Application::GetApplicationPath |
( |
| ) |
|
获取程序集的目录
- 返回
- the folder without postfix '/'
Get the input value.
- 参数
-
desc | the description. |
defaltValue | the default value. |
- 返回
- the ParameterValue.
Path AnyCAD::API::Application::GetModelLibraryPath |
( |
| ) |
|
Get Model Library Path
- 返回
- the folder without postfix '/'
bool AnyCAD::API::Application::Initialize |
( |
| ) |
|
bool AnyCAD::API::Application::Initialize |
( |
const String & |
configFile | ) |
|
使用配置文件初始化平台.
- 参数
-
configFile | the config file name |
- 返回
- false if failed to initialize
StringList AnyCAD::API::Application::ListSkyBoxNames |
( |
| ) |
|
List all the skybox names
- 返回
- the skybox name list
void AnyCAD::API::Application::LogMessage |
( |
const String & |
msg | ) |
|
void AnyCAD::API::Application::SetApplicationPath |
( |
const Path & |
strPath | ) |
|
设置程序集的目录
- 参数
-
strPath | the folder without postfix '/' |
- 返回
- void
bool AnyCAD::API::Application::SetLogFileName |
( |
const Path & |
fileName | ) |
|
void AnyCAD::API::Application::SetModelLibraryPath |
( |
const Path & |
strPath | ) |
|
Set Model Library Path
- 参数
-
strPath | the folder with postfix '/' |
- 返回
- void
void AnyCAD::API::Application::SetTextureLibraryPath |
( |
const Path & |
strPath | ) |
|
Set Texture Library Path
- 参数
-
strPath | the folder with postfix '/' |
- 返回
- void
bool AnyCAD::API::Application::WaitForEventLoop |
( |
long |
loopId | ) |
|
Wait for the event loop.
- 参数
-
- 返回
- false if aborted.
该类的文档由以下文件生成: