PeriDyno 0.8.2
Public Member Functions | Public Attributes | List of all members
ofbx::MaterialImpl Struct Reference
Inheritance diagram for ofbx::MaterialImpl:
Inheritance graph
[legend]
Collaboration diagram for ofbx::MaterialImpl:
Collaboration graph
[legend]

Public Member Functions

 MaterialImpl (const Scene &_scene, const IElement &_element)
 
Type getType () const override
 
const TexturegetTexture (Texture::TextureType type) const override
 
Color getDiffuseColor () const override
 
Color getSpecularColor () const override
 
Color getReflectionColor () const override
 
Color getAmbientColor () const override
 
Color getEmissiveColor () const override
 
double getDiffuseFactor () const override
 
double getSpecularFactor () const override
 
double getReflectionFactor () const override
 
double getShininess () const override
 
double getShininessExponent () const override
 
double getAmbientFactor () const override
 
double getBumpFactor () const override
 
double getEmissiveFactor () const override
 
- Public Member Functions inherited from ofbx::Material
 Material (const Scene &_scene, const IElement &_element)
 
virtual Color getDiffuseColor () const =0
 
virtual Color getSpecularColor () const =0
 
virtual Color getReflectionColor () const =0
 
virtual Color getAmbientColor () const =0
 
virtual Color getEmissiveColor () const =0
 
virtual double getDiffuseFactor () const =0
 
virtual double getSpecularFactor () const =0
 
virtual double getReflectionFactor () const =0
 
virtual double getShininess () const =0
 
virtual double getShininessExponent () const =0
 
virtual double getAmbientFactor () const =0
 
virtual double getBumpFactor () const =0
 
virtual double getEmissiveFactor () const =0
 
virtual const TexturegetTexture (Texture::TextureType type) const =0
 
- Public Member Functions inherited from ofbx::Object
 Object (const Scene &_scene, const IElement &_element)
 
virtual ~Object ()
 
virtual Type getType () const =0
 
const IScenegetScene () const
 
ObjectresolveObjectLink (int idx) const
 
ObjectresolveObjectLink (Type type, const char *property, int idx) const
 
ObjectresolveObjectLinkReverse (Type type) const
 
ObjectgetParent () const
 
RotationOrder getRotationOrder () const
 
Vec3 getRotationOffset () const
 
Vec3 getRotationPivot () const
 
Vec3 getPostRotation () const
 
Vec3 getScalingOffset () const
 
Vec3 getScalingPivot () const
 
Vec3 getPreRotation () const
 
Vec3 getLocalTranslation () const
 
Vec3 getLocalRotation () const
 
Vec3 getLocalScaling () const
 
Matrix getGlobalTransform () const
 
Matrix getLocalTransform () const
 
Matrix evalLocal (const Vec3 &translation, const Vec3 &rotation) const
 
Matrix evalLocal (const Vec3 &translation, const Vec3 &rotation, const Vec3 &scaling) const
 
bool isNode () const
 
template<typename T >
TresolveObjectLink (int idx) const
 

Public Attributes

const Texturetextures [Texture::TextureType::COUNT]
 
Color diffuse_color
 
Color specular_color
 
Color reflection_color
 
Color ambient_color
 
Color emissive_color
 
double diffuse_factor
 
double specular_factor
 
double reflection_factor
 
double shininess
 
double shininess_exponent
 
double ambient_factor
 
double bump_factor
 
double emissive_factor
 
- Public Attributes inherited from ofbx::Object
u64 id
 
char name [128]
 
const IElementelement
 
const Objectnode_attribute
 

Additional Inherited Members

- Public Types inherited from ofbx::Object
enum class  Type {
  ROOT , GEOMETRY , SHAPE , MATERIAL ,
  MESH , TEXTURE , LIMB_NODE , NULL_NODE ,
  NODE_ATTRIBUTE , CLUSTER , SKIN , BLEND_SHAPE ,
  BLEND_SHAPE_CHANNEL , ANIMATION_STACK , ANIMATION_LAYER , ANIMATION_CURVE ,
  ANIMATION_CURVE_NODE , POSE
}
 
- Static Public Attributes inherited from ofbx::Material
static const Type s_type = Type::MATERIAL
 
- Protected Attributes inherited from ofbx::Object
bool is_node
 
const Scenescene
 

Detailed Description

Definition at line 1082 of file ofbx.cpp.

Constructor & Destructor Documentation

◆ MaterialImpl()

ofbx::MaterialImpl::MaterialImpl ( const Scene _scene,
const IElement _element 
)
inline

Definition at line 1084 of file ofbx.cpp.

Member Function Documentation

◆ getAmbientColor()

Color ofbx::MaterialImpl::getAmbientColor ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1096 of file ofbx.cpp.

◆ getAmbientFactor()

double ofbx::MaterialImpl::getAmbientFactor ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1104 of file ofbx.cpp.

◆ getBumpFactor()

double ofbx::MaterialImpl::getBumpFactor ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1105 of file ofbx.cpp.

◆ getDiffuseColor()

Color ofbx::MaterialImpl::getDiffuseColor ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1093 of file ofbx.cpp.

◆ getDiffuseFactor()

double ofbx::MaterialImpl::getDiffuseFactor ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1099 of file ofbx.cpp.

◆ getEmissiveColor()

Color ofbx::MaterialImpl::getEmissiveColor ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1097 of file ofbx.cpp.

◆ getEmissiveFactor()

double ofbx::MaterialImpl::getEmissiveFactor ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1106 of file ofbx.cpp.

◆ getReflectionColor()

Color ofbx::MaterialImpl::getReflectionColor ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1095 of file ofbx.cpp.

◆ getReflectionFactor()

double ofbx::MaterialImpl::getReflectionFactor ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1101 of file ofbx.cpp.

◆ getShininess()

double ofbx::MaterialImpl::getShininess ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1102 of file ofbx.cpp.

◆ getShininessExponent()

double ofbx::MaterialImpl::getShininessExponent ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1103 of file ofbx.cpp.

◆ getSpecularColor()

Color ofbx::MaterialImpl::getSpecularColor ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1094 of file ofbx.cpp.

◆ getSpecularFactor()

double ofbx::MaterialImpl::getSpecularFactor ( ) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1100 of file ofbx.cpp.

◆ getTexture()

const Texture * ofbx::MaterialImpl::getTexture ( Texture::TextureType  type) const
inlineoverridevirtual

Implements ofbx::Material.

Definition at line 1092 of file ofbx.cpp.

◆ getType()

Type ofbx::MaterialImpl::getType ( ) const
inlineoverridevirtual

Implements ofbx::Object.

Definition at line 1090 of file ofbx.cpp.

Member Data Documentation

◆ ambient_color

Color ofbx::MaterialImpl::ambient_color

Definition at line 1112 of file ofbx.cpp.

◆ ambient_factor

double ofbx::MaterialImpl::ambient_factor

Definition at line 1120 of file ofbx.cpp.

◆ bump_factor

double ofbx::MaterialImpl::bump_factor

Definition at line 1121 of file ofbx.cpp.

◆ diffuse_color

Color ofbx::MaterialImpl::diffuse_color

Definition at line 1109 of file ofbx.cpp.

◆ diffuse_factor

double ofbx::MaterialImpl::diffuse_factor

Definition at line 1115 of file ofbx.cpp.

◆ emissive_color

Color ofbx::MaterialImpl::emissive_color

Definition at line 1113 of file ofbx.cpp.

◆ emissive_factor

double ofbx::MaterialImpl::emissive_factor

Definition at line 1122 of file ofbx.cpp.

◆ reflection_color

Color ofbx::MaterialImpl::reflection_color

Definition at line 1111 of file ofbx.cpp.

◆ reflection_factor

double ofbx::MaterialImpl::reflection_factor

Definition at line 1117 of file ofbx.cpp.

◆ shininess

double ofbx::MaterialImpl::shininess

Definition at line 1118 of file ofbx.cpp.

◆ shininess_exponent

double ofbx::MaterialImpl::shininess_exponent

Definition at line 1119 of file ofbx.cpp.

◆ specular_color

Color ofbx::MaterialImpl::specular_color

Definition at line 1110 of file ofbx.cpp.

◆ specular_factor

double ofbx::MaterialImpl::specular_factor

Definition at line 1116 of file ofbx.cpp.

◆ textures

const Texture* ofbx::MaterialImpl::textures[Texture::TextureType::COUNT]

Definition at line 1108 of file ofbx.cpp.


The documentation for this struct was generated from the following file: