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

The face style. 更多...

类 AnyCAD::Platform::FaceStyle 继承关系图:
AnyCAD::Platform::RenderStyle AnyCAD::Platform::Object

Public 成员函数

void SetMaterial (Material^ material)
 
MaterialGetMaterial ()
 
void SetTransparent (bool bEnable)
 
void SetTransparecy (float alpha)
 
bool IsTransparent ()
 
void SetTexture (int idx, Texture^ pTex)
 
TextureGetTexture (int idx)
 
- Public 成员函数 继承自 AnyCAD::Platform::RenderStyle
void SetColor (ColorValue^ clr)
 
void SetColor (int r, int g, int b)
 
ColorValueGetColor ()
 
- Public 成员函数 继承自 AnyCAD::Platform::Object
String^ GetObjectClassId ()
 
StringList^ ListParentClassIds ()
 

详细描述

The face style.

TODO:

成员函数说明

Material ^ AnyCAD::Platform::FaceStyle::GetMaterial ( )

Get Material

返回
const AMaterialPtr&
Texture ^ AnyCAD::Platform::FaceStyle::GetTexture ( int  idx)

Get texture

参数
idxthe channel index.
返回
the Texture.
bool AnyCAD::Platform::FaceStyle::IsTransparent ( )

Is Transparent

返回
bool
void AnyCAD::Platform::FaceStyle::SetMaterial ( Material material)

Set Material

参数
materialthe material data
返回
void
void AnyCAD::Platform::FaceStyle::SetTexture ( int  idx,
Texture pTex 
)

Set texture.

参数
idxthe index of texture channel.
pTexthe texture.
void AnyCAD::Platform::FaceStyle::SetTransparecy ( float  alpha)

Set transparency value

参数
alphathe value [0, 1] 0: opaque 1: 100% transparent.
void AnyCAD::Platform::FaceStyle::SetTransparent ( bool  bEnable)

Set Transparent

参数
bEnableif true enable the transparent effect

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