AnyCAD SDK PRO  2020
The Professional Graphics SDK for .Net and C++ Developers
Public 成员函数 | 所有成员列表
AnyCAD::Platform::Application类 参考

平台应用程序 更多...

Public 成员函数

bool SetLogFileName (Path^ fileName)
 
bool AddLicense (String^ aa, String^ bb, String^ cc, String^ dd)
 
bool Initialize ()
 
bool Initialize (String^ configFile)
 
void Destroy ()
 
StringList^ ListSkyBoxNames ()
 
void SetApplicationPath (Path^ strPath)
 
PathGetApplicationPath ()
 
void SetTextureLibraryPath (Path^ strPath)
 
void SetModelLibraryPath (Path^ strPath)
 
PathGetModelLibraryPath ()
 
RendererCreateRenderer (long hWnd, int nWidth, int nHeight)
 
View3dCreateView (long hWnd, int nWidth, int nHeight)
 
PhongMaterialFindSystemMaterial (String^ name)
 
ParameterValueGetInput (String^ desc, ParameterValue^ defaltValue)
 
bool WaitForEventLoop (long loopId)
 
void ExitEventLoop (long loopId, bool done)
 
void LogMessage (String^ msg)
 

详细描述

平台应用程序

程序全局的方法

成员函数说明

bool AnyCAD::Platform::Application::AddLicense ( String^  aa,
String^  bb,
String^  cc,
String^  dd 
)

设置程序注册信息. 内部使用。

Renderer ^ AnyCAD::Platform::Application::CreateRenderer ( long  hWnd,
int  nWidth,
int  nHeight 
)

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

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

创建三维视图。

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

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

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

Exit the event loop.

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

Find system material

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

获取程序集的目录

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

Get the input value.

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

Get Model Library Path

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

初始化平台.

返回
true if done.
bool AnyCAD::Platform::Application::Initialize ( String^  configFile)

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

参数
configFilethe config file name
返回
false if failed to initialize
StringList ^ AnyCAD::Platform::Application::ListSkyBoxNames ( )

List all the skybox names

返回
the skybox name list
void AnyCAD::Platform::Application::LogMessage ( String^  msg)

Log the message.

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

设置程序集的目录

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

设置日志文件名.

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

Set Model Library Path

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

Set Texture Library Path

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

Wait for the event loop.

参数
loopIdthe id.
返回
false if aborted.

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