#include <FCDEffectStandard.h>
Inheritance diagram for FCDEffectStandard:
Public Types | |
enum | LightingType { CONSTANT, LAMBERT, PHONG, BLINN, UNKNOWN } |
The list of the lighting models supported by the COMMON profile of COLLADA. More... | |
Public Member Functions | |
FCDEffectStandard (FCDocument *document, FCDEffect *parent) | |
Constructor: do not use directly. | |
virtual | ~FCDEffectStandard () |
Destructor: do not use directly. | |
LightingType | GetLightingType () const |
Retrieves the lighting model to be used for this profile. | |
void | SetLightingType (LightingType _type) |
Sets the lighting model to be used for this profile. | |
virtual FUDaeProfileType::Type | GetType () const |
Retrieves the profile type for this effect. | |
const FCDTextureList & | GetTextureBucket (uint32 bucket) const |
Retrieves the list of textures belonging to a specific channel. | |
size_t | GetTextureCount (uint32 bucket) const |
Retrieves the number of textures belonging to a specific channel. | |
FCDTexture * | GetTexture (uint32 bucket, size_t index) |
Retrieves a texture. | |
const FCDTexture * | GetTexture (uint32 bucket, size_t index) const |
See above. | |
FCDTexture * | AddTexture (uint32 bucket) |
Adds a texture to a specific channel. | |
void | ReleaseTexture (FCDTexture *texture) |
Releases a texture contained within this effect profile. | |
const FMVector3 & | GetTranslucencyColor () const |
Retrieves the base translucency color. | |
void | SetTranslucencyColor (const FMVector3 &color) |
Sets the base translucency color. | |
const float & | GetTranslucencyFactor () const |
Retrieves the translucency factor. | |
void | SetTranslucencyFactor (float factor) |
Sets the translucency factor. | |
float | GetOpacity () const |
Retrieves the flat opacity. | |
const FMVector3 & | GetEmissionColor () const |
Retrieves the base emission/self-illumination color. | |
void | SetEmissionColor (const FMVector3 &color) |
Sets the base emission/self-illumination color. | |
const float & | GetEmissionFactor () const |
Retrieves the emission/self-illumination factor. | |
void | SetEmissionFactor (float factor) |
Sets the emission/self-illumination factor. | |
bool | IsEmissionFactor () const |
Retrieves whether the emission factor was used, rather than the emission color. | |
void | SetIsEmissionFactor (bool useFactor) |
Sets whether the emission factor is to be used, rather than the emission color. | |
const FMVector3 & | GetDiffuseColor () const |
Retrieves the diffuse color. | |
void | SetDiffuseColor (const FMVector3 &color) |
Sets the diffuse color. | |
const FMVector3 & | GetAmbientColor () const |
Retrieves the ambient color. | |
void | SetAmbientColor (const FMVector3 &color) |
Sets the ambient color. | |
const FMVector3 & | GetSpecularColor () const |
Retrieves the base specular color. | |
void | SetSpecularColor (const FMVector3 &color) |
Sets the specular color. | |
const float & | GetSpecularFactor () const |
Retrieves the specular factor. | |
void | SetSpecularFactor (float factor) |
Sets the specular factor. | |
const float & | GetShininess () const |
Retrieves the specular shininess. | |
void | SetShininess (float _shininess) |
Sets the specular shininess. | |
const FMVector3 & | GetReflectivityColor () const |
Retrieves the base reflectivity color. | |
void | SetReflectivityColor (const FMVector3 &color) |
Sets the base reflectivity color. | |
const float & | GetReflectivityFactor () const |
Retrieves the reflectivity factor. | |
void | SetReflectivityFactor (float factor) |
Sets the reflectivity factor. | |
float | GetReflectivity () const |
Retrieves the flat reflectivity. | |
bool | GetFacetedFlag () const |
Retrieves the 'faceted' flag. | |
void | SetFacetedFlag (bool flag) |
Sets the 'faceted' flag. | |
bool | GetDoubleSidedFlag () const |
Retrieves the 'double-sided' flag. | |
bool | SetDoubleSidedFlag (bool flag) |
Sets the 'double-sided' flag. | |
bool | GetWireframeFlag () const |
Retrieves the 'wireframe' flag. | |
bool | SetWireframeFlag (bool flag) |
Sets the 'wireframe' flag. | |
bool | GetFaceMapFlag () const |
Retrieves the 'face-map' flag. | |
void | SetFaceMapFlag (bool flag) |
Sets the 'face-map' flag. | |
virtual FCDEffectParameter * | FindParameterBySemantic (const string &semantic) |
Retrieves an effect parameter. | |
virtual void | FindParametersBySemantic (const string &semantic, FCDEffectParameterList ¶meters) |
Retrieves a subset of the effect parameter list. | |
virtual void | FindParametersByReference (const string &reference, FCDEffectParameterList ¶meters) |
Retrieves a subset of the effect parameter list. | |
virtual FCDEffectProfile * | Clone (FCDEffect *newParent) |
[INTERNAL] Clones the COMMON profile effect. | |
virtual void | Flatten () |
[INTERNAL] Flattens the profile. | |
virtual FUStatus | LoadFromXML (xmlNode *baseNode) |
[INTERNAL] Reads in the <profile_COMMON> element from a given COLLADA XML tree node. | |
virtual xmlNode * | WriteToXML (xmlNode *parentNode) const |
[INTERNAL] Writes out the <profile_COMMON> element to the given COLLADA XML tree node. |
The COMMON effect profile holds the information necessary to render your polygon sets using the well-defined lighting models.
COLLADA supports four lighting models: constant, Lambert, Phong and Blinn.
|
|
Constructor: do not use directly. Instead, use the FCDEffect::AddProfile function with the FUDaeProfileType::COMMON parameter.
|
|
Destructor: do not use directly. Instead, use the FCDEffect::ReleaseProfile function. |
|
Adds a texture to a specific channel.
|
|
[INTERNAL] Clones the COMMON profile effect. You will need release the cloned effect directly, by deleting the pointer.
Implements FCDEffectProfile. |
|
Retrieves an effect parameter. Looks for the effect parameter with the correct semantic, in order to bind or override its value. This function searches through the effect profile and the level of abstractions below.
Implements FCDEffectProfile. |
|
Retrieves a subset of the effect parameter list. Look for effect parameters with the correct reference. This function searches through the effect profile and the level of abstractions below.
Implements FCDEffectProfile. |
|
Retrieves a subset of the effect parameter list. Look for effect parameters with the correct semantic. This function searches through the effect profile and the level of abstractions below.
Implements FCDEffectProfile. |
|
[INTERNAL] Flattens the profile. Does nothing on the common profile. Implements FCDEffectProfile. |
|
Retrieves the ambient color. This value is used in the Lambert lighting model.
|
|
Retrieves the diffuse color. This value is used in the Lambert lighting model.
|
|
Retrieves the 'double-sided' flag. This flag is used in conjunction with 3dsMax. It represents whether all the faces of the polygon sets should be treated as two-sided and have normals in both directions.
|
|
Retrieves the base emission/self-illumination color. This value must be multiplied with the emission factor to get the real emission color. This value is used in all lighting models.
|
|
Retrieves the emission/self-illumination factor. This value must be multiplied with the base emission color to get the real emission color.
|
|
Retrieves the 'face-map' flag. This is a pure 3dsMax flag and I have no idea what it does.
|
|
Retrieves the 'faceted' flag. This flag is used in conjunction with 3dsMax. It represents whether all the edges of the polygon sets using this effect profile should be hard. The final result of using this flag is a mesh where all the faces stand out.
|
|
Retrieves the lighting model to be used for this profile.
|
|
Retrieves the flat opacity. This is a calculated value and will not take into consideration any animations that affect either the base translucency color or the translucency factor. This value can be used in all lighting models.
|
|
Retrieves the flat reflectivity. This is a calculated value and will not take into consideration any animations that affect either the base reflectivity color or the reflectivity factor. This value can be used in the Phong and Blinn lighting models.
|
|
Retrieves the base reflectivity color. This value must be multiplied to the reflectivity factor to get the real reflectivity color. This value is used in the Phong and Blinn lighting models.
|
|
Retrieves the reflectivity factor. This value must be multiplied to the base reflectivity color to get the real reflectivity color. This value is used in the Phong and Blinn lighting models.
|
|
Retrieves the specular shininess. This value represents the exponent to which you must raise the dot-product between the view vector and reflected light vectors: as such, it is usually a number greater than 1. This value is used in the Phong and Blinn lighting models.
|
|
Retrieves the base specular color. This value must be multiplied with the specular factor to get the real specular color. This value is used in the Phong and Blinn lighting models.
|
|
Retrieves the specular factor. This value must be multiplied with the base specular color to get the real specular color. This value is used in the Phong and Blinn lighting models.
|
|
Retrieves a texture.
|
|
Retrieves the list of textures belonging to a specific channel.
|
|
Retrieves the number of textures belonging to a specific channel.
|
|
Retrieves the base translucency color. This value must be multiplied with the translucency factor to get the real translucency color. This value is used in all lighting models.
|
|
Retrieves the translucency factor. This value must be multiplied with the translucency color to get the real translucency color. This value is used in all lighting models.
|
|
Retrieves the profile type for this effect. This function is a part of the FCDEffectProfile interface and allows you to up-cast an effect profile pointer safely to this class.
Implements FCDEffectProfile. |
|
Retrieves the 'wireframe' flag. This flag is used in conjunction with 3dsMax. It represents whether all the edges of the polygon sets should be rendered, rather than the faces.
|
|
Retrieves whether the emission factor was used, rather than the emission color. This value is used in conjunction with 3dsMax, in which the self-illumination color and the self-illumination factor are mutually exclusive.
|
|
[INTERNAL] Reads in the <profile_COMMON> element from a given COLLADA XML tree node. For COLLADA 1.3 backward-compatibility, this function can also read in <material> elements.
Implements FCDEffectProfile. |
|
Releases a texture contained within this effect profile.
|
|
Sets the ambient color.
|
|
Sets the diffuse color.
|
|
Sets the 'double-sided' flag. This flag is used in conjunction with 3dsMax. It represents whether all the faces of the polygon sets should be treated as two-sided and have normals in both directions.
|
|
Sets the base emission/self-illumination color.
|
|
Sets the emission/self-illumination factor.
|
|
Sets the 'face-map' flag. This is a pure 3dsMax flag and I have no idea what it does.
|
|
Sets the 'faceted' flag. This flag is used in conjunction with 3dsMax. It represents whether all the edges of the polygon sets using this effect profile should be hard. The final result of using this flag is a mesh where all the faces stand out.
|
|
Sets whether the emission factor is to be used, rather than the emission color. This value is used in conjunction with 3dsMax, in which the self-illumination color and the self-illumination factor are mutually exclusive.
|
|
Sets the lighting model to be used for this profile. Note that which parameters are exported depends on the lighting model.
|
|
Sets the base reflectivity color.
|
|
Sets the reflectivity factor.
|
|
Sets the specular shininess. This value represents the exponent to which you must raise the dot-product between the view vector and reflected light vectors: as such, it is usually a number greater than 1.
|
|
Sets the specular color.
|
|
Sets the specular factor.
|
|
Sets the base translucency color.
|
|
Sets the translucency factor.
|
|
Sets the 'wireframe' flag. This flag is used in conjunction with 3dsMax. It represents whether all the edges of the polygon sets should be rendered, rather than the faces.
|
|
[INTERNAL] Writes out the <profile_COMMON> element to the given COLLADA XML tree node.
Implements FCDEffectProfile. |