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

The face style. 更多...

#include <APIFaceStyle.h>

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

Public 成员函数

void SetMaterial (const Material &material)
 
Material GetMaterial () const
 
void SetTransparent (bool bEnable)
 
void SetTransparecy (const float &alpha)
 
bool IsTransparent () const
 
void SetTexture (int idx, const Texture &pTex)
 
Texture GetTexture (int idx) const
 
- Public 成员函数 继承自 AnyCAD::API::RenderStyle
void SetColor (const ColorValue &clr)
 
void SetColor (int r, int g, int b)
 
ColorValue GetColor () const
 
- Public 成员函数 继承自 AnyCAD::API::Object
String GetObjectClassId () const
 
StringList ListParentClassIds () const
 

详细描述

The face style.

TODO:

成员函数说明

Material AnyCAD::API::FaceStyle::GetMaterial ( ) const

Get Material

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

Get texture

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

Is Transparent

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

Set Material

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

Set texture.

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

Set transparency value

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

Set Transparent

参数
bEnableif true enable the transparent effect

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