#include <FCDEffectParameter.h>
Inheritance diagram for FCDEffectParameter:
Public Types | |
enum | Type { SAMPLER, INTEGER, BOOLEAN, FLOAT, FLOAT2, FLOAT3, VECTOR, MATRIX, STRING, SURFACE } |
The type of the effect parameter class. More... | |
Public Member Functions | |
FCDEffectParameter (FCDocument *document) | |
Constructor: do not use directly. | |
virtual | ~FCDEffectParameter () |
Destructor: do not use directly. | |
virtual Type | GetType () const =0 |
Retrieves the type of effect parameter class. | |
const string & | GetReference () const |
Retrieves the reference for this effect parameter. | |
const string & | GetSemantic () const |
Retrieves the semantic for this effect parameter. | |
void | SetSemantic (const string &_semantic) |
Sets the semantic for this effect parameter. | |
bool | IsGenerator () const |
Retrieves whether this effect parameter is a parameter generator. | |
bool | IsModifier () const |
Retrieves whether this effect parameter is a parameter modifier. | |
const string & | GetBindSymbol () const |
void | SetBindSymbol (const string &_bindSymbol) |
bool | IsFragment () const |
void | SetFragment (bool _isFragment) |
virtual FCDEffectParameter * | Clone ()=0 |
Creates a full copy of the effect parameter. | |
virtual void | Overwrite (FCDEffectParameter *target) |
[INTERNAL] Overwrites the target parameter with this parameter. | |
virtual FUStatus | LoadFromXML (xmlNode *parameterNode) |
[INTERNAL] Reads in the effect parameter from a given COLLADA XML tree node. | |
virtual xmlNode * | WriteToXML (xmlNode *parentNode) const |
[INTERNAL] Writes out the effect parameter to the given COLLADA XML tree node. | |
Protected Member Functions | |
void | Clone (FCDEffectParameter *clone) |
[INTERNAL] Copies into the given effect parameters, the variables held by the FCDEffectParameter interface. |
This interface class is used to define all the valid ColladaFX parameter types. There are many types of parameters: integers, booleans, floating-point values, 2D, 3D and 4D vectors of floating-point values, matrices, strings, surfaces and their samplers.
A COLLADA effect parameter may generate a new effect parameter, in which case it will declare a semantic and a reference: to represent it within the COLLADA document.
|
|
Constructor: do not use directly. Instead, use the FCDEffectParameterList::AddParameter function.
|
|
Destructor: do not use directly. Instead, use the FCDEffectParameterList::ReleaseParameter function. When released, the effect parameter list will also release all its parameters, if it owns them. |
|
[INTERNAL] Copies into the given effect parameters, the variables held by the FCDEffectParameter interface. This function is used by the classes based on this interface during the cloning process.
|
|
Creates a full copy of the effect parameter.
Implemented in FCDEffectParameterSampler, FCDEffectParameterInt, FCDEffectParameterBool, FCDEffectParameterString, FCDEffectParameterFloat, FCDEffectParameterFloat2, FCDEffectParameterFloat3, FCDEffectParameterVector, FCDEffectParameterMatrix, and FCDEffectParameterSurface. |
|
|
|
Retrieves the reference for this effect parameter. In the case of generators, the reference string contains the sub-id.
|
|
Retrieves the semantic for this effect parameter.
|
|
Retrieves the type of effect parameter class.
Implemented in FCDEffectParameterSampler, FCDEffectParameterInt, FCDEffectParameterBool, FCDEffectParameterString, FCDEffectParameterFloat, FCDEffectParameterFloat2, FCDEffectParameterFloat3, FCDEffectParameterVector, FCDEffectParameterMatrix, and FCDEffectParameterSurface. |
|
|
|
Retrieves whether this effect parameter is a parameter generator. A ColladaFX parameter must be generated to be modified or bound at higher abstraction levels.
|
|
Retrieves whether this effect parameter is a parameter modifier. A ColladaFX parameter must be generated to be modified or bound at higher abstraction levels.
|
|
[INTERNAL] Reads in the effect parameter from a given COLLADA XML tree node.
Reimplemented in FCDEffectParameterSampler, FCDEffectParameterInt, FCDEffectParameterBool, FCDEffectParameterString, FCDEffectParameterFloat, FCDEffectParameterFloat2, FCDEffectParameterFloat3, FCDEffectParameterVector, FCDEffectParameterMatrix, and FCDEffectParameterSurface. |
|
[INTERNAL] Overwrites the target parameter with this parameter. This function is used during the flattening of materials.
Reimplemented in FCDEffectParameterSampler, FCDEffectParameterInt, FCDEffectParameterBool, FCDEffectParameterString, FCDEffectParameterFloat, FCDEffectParameterFloat2, FCDEffectParameterFloat3, FCDEffectParameterVector, FCDEffectParameterMatrix, and FCDEffectParameterSurface. |
|
|
|
|
|
Sets the semantic for this effect parameter.
|
|
[INTERNAL] Writes out the effect parameter to the given COLLADA XML tree node.
Reimplemented in FCDEffectParameterSampler, FCDEffectParameterInt, FCDEffectParameterBool, FCDEffectParameterString, FCDEffectParameterFloat, FCDEffectParameterFloat2, FCDEffectParameterFloat3, FCDEffectParameterVector, FCDEffectParameterMatrix, and FCDEffectParameterSurface. |