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

The material with phong Algorithm. 更多...

#include <APIPhongMaterial.h>

类 AnyCAD::API::PhongMaterial 继承关系图:
AnyCAD::API::Material AnyCAD::API::RenderResource AnyCAD::API::Object

Public 成员函数

void SetAmbient (const ColorValue &clr)
 
ColorValue GetAmbient () const
 
void SetDiffuse (const ColorValue &clr)
 
ColorValue GetDiffuse () const
 
void SetSpecular (const ColorValue &clr)
 
ColorValue GetSpecular () const
 
void SetEmission (const ColorValue &clr)
 
ColorValue GetEmission () const
 
void SetShininess (const float &value)
 
float GetShininess () const
 
- Public 成员函数 继承自 AnyCAD::API::RenderResource
void SetName (const String &strName)
 
String GetName () const
 
- Public 成员函数 继承自 AnyCAD::API::Object
String GetObjectClassId () const
 
StringList ListParentClassIds () const
 

详细描述

The material with phong Algorithm.

TODO:

成员函数说明

ColorValue AnyCAD::API::PhongMaterial::GetAmbient ( ) const

Get Ambient

返回
ColorValue
ColorValue AnyCAD::API::PhongMaterial::GetDiffuse ( ) const

Get Diffuse

返回
the color
ColorValue AnyCAD::API::PhongMaterial::GetEmission ( ) const

Get Emission

返回
the color
float AnyCAD::API::PhongMaterial::GetShininess ( ) const

Get Shininess

返回
float
ColorValue AnyCAD::API::PhongMaterial::GetSpecular ( ) const

Get Specular

返回
the color
void AnyCAD::API::PhongMaterial::SetAmbient ( const ColorValue clr)

Set Ambient

参数
clrthe color
返回
void
void AnyCAD::API::PhongMaterial::SetDiffuse ( const ColorValue clr)

Set Diffuse

参数
clrthe color
返回
void
void AnyCAD::API::PhongMaterial::SetEmission ( const ColorValue clr)

Set Emission

参数
clrthe color
返回
void
void AnyCAD::API::PhongMaterial::SetShininess ( const float &  value)

Set Shininess

参数
valuethe shininess
返回
void
void AnyCAD::API::PhongMaterial::SetSpecular ( const ColorValue clr)

Set Specular

参数
clrthe color
返回
void

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