AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::Application类 参考

平台应用程序 更多...

#include <APIApplication.h>

Public 成员函数

bool SetLogFileName (const Path &fileName)
 
bool AddLicense (const String &aa, const String &bb, const String &cc, const String &dd)
 
bool Initialize ()
 
bool Initialize (const String &configFile)
 
void Destroy ()
 
StringList ListSkyBoxNames ()
 
void SetApplicationPath (const Path &strPath)
 
Path GetApplicationPath ()
 
void SetTextureLibraryPath (const Path &strPath)
 
void SetModelLibraryPath (const Path &strPath)
 
Path GetModelLibraryPath ()
 
Renderer CreateRenderer (long hWnd, int nWidth, int nHeight)
 
View3d CreateView (long hWnd, int nWidth, int nHeight)
 
PhongMaterial FindSystemMaterial (const String &name)
 
ParameterValue GetInput (const String &desc, const ParameterValue &defaltValue)
 
bool WaitForEventLoop (long loopId)
 
void ExitEventLoop (long loopId, bool done)
 
void LogMessage (const String &msg)
 

详细描述

平台应用程序

程序全局的方法

成员函数说明

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 
)

创建渲染器。(内部调用)

参数
hWndthe window handle
nWidththe width
nHeightthe height
返回
the Renderer
View3d AnyCAD::API::Application::CreateView ( long  hWnd,
int  nWidth,
int  nHeight 
)

创建三维视图。

参数
hWndthe window handle
nWidththe width
nHeightthe height
返回
the View3d
void AnyCAD::API::Application::Destroy ( )

销毁平台程序,释放资源.

void AnyCAD::API::Application::ExitEventLoop ( long  loopId,
bool  done 
)

Exit the event loop.

参数
loopIdthe id.
donefalse if aborted.
PhongMaterial AnyCAD::API::Application::FindSystemMaterial ( const String name)

Find system material

参数
namethe material name.
返回
the material
Path AnyCAD::API::Application::GetApplicationPath ( )

获取程序集的目录

返回
the folder without postfix '/'
ParameterValue AnyCAD::API::Application::GetInput ( const String desc,
const ParameterValue defaltValue 
)

Get the input value.

参数
descthe description.
defaltValuethe default value.
返回
the ParameterValue.
Path AnyCAD::API::Application::GetModelLibraryPath ( )

Get Model Library Path

返回
the folder without postfix '/'
bool AnyCAD::API::Application::Initialize ( )

初始化平台.

返回
true if done.
bool AnyCAD::API::Application::Initialize ( const String configFile)

使用配置文件初始化平台.

参数
configFilethe 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)

Log the message.

参数
msgthe message string.
void AnyCAD::API::Application::SetApplicationPath ( const Path strPath)

设置程序集的目录

参数
strPaththe folder without postfix '/'
返回
void
bool AnyCAD::API::Application::SetLogFileName ( const Path fileName)

设置日志文件名.

参数
fileNamethe file name.
void AnyCAD::API::Application::SetModelLibraryPath ( const Path strPath)

Set Model Library Path

参数
strPaththe folder with postfix '/'
返回
void
void AnyCAD::API::Application::SetTextureLibraryPath ( const Path strPath)

Set Texture Library Path

参数
strPaththe folder with postfix '/'
返回
void
bool AnyCAD::API::Application::WaitForEventLoop ( long  loopId)

Wait for the event loop.

参数
loopIdthe id.
返回
false if aborted.

该类的文档由以下文件生成: