The material with phong Algorithm. 更多...
#include <APIPhongMaterial.h>
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 AnyCAD::API::PhongMaterial::GetDiffuse | ( | ) | const |
Get Diffuse
ColorValue AnyCAD::API::PhongMaterial::GetEmission | ( | ) | const |
Get Emission
float AnyCAD::API::PhongMaterial::GetShininess | ( | ) | const |
Get Shininess
ColorValue AnyCAD::API::PhongMaterial::GetSpecular | ( | ) | const |
Get Specular
void AnyCAD::API::PhongMaterial::SetAmbient | ( | const ColorValue & | clr | ) |
Set Ambient
clr | the color |
void AnyCAD::API::PhongMaterial::SetDiffuse | ( | const ColorValue & | clr | ) |
Set Diffuse
clr | the color |
void AnyCAD::API::PhongMaterial::SetEmission | ( | const ColorValue & | clr | ) |
Set Emission
clr | the color |
void AnyCAD::API::PhongMaterial::SetShininess | ( | const float & | value | ) |
Set Shininess
value | the shininess |
void AnyCAD::API::PhongMaterial::SetSpecular | ( | const ColorValue & | clr | ) |
Set Specular
clr | the color |