FCDEffectParameterVector Class Reference

A COLLADA 4D vector of floats. More...

#include <FCDEffectParameter.h>

Inheritance diagram for FCDEffectParameterVector:

FCDEffectParameter FCDObject FUObject List of all members.

Public Types

enum  FloatType { FLOAT, HALF }
 The supported types of float-point values. More...

Public Member Functions

 FCDEffectParameterVector (FCDocument *document)
 Constructor: do not use directly.
virtual ~FCDEffectParameterVector ()
 Destructor: do not use directly.
virtual Type GetType () const
 Retrieves the type of effect parameter class.
FloatType GetFloatType () const
 Retrieves the type of floating-point value held by this effect parameter.
void SetFloatType (FloatType type)
 Sets the type of floating-point value held by this effect parameter.
float * GetVector ()
 Sets the vector value of the effect parameter.
const float * GetVector () const
 See above.
float & GetValueX ()
 Retrieves the first floating-point value of the effect parameter.
const float & GetValueX () const
 See above.
void SetValueX (float _value)
 Sets the first floating-point value of the effect parameter.
float & GetValueY ()
 Retrieves the second floating-point value of the effect parameter.
const float & GetValueY () const
 See above.
void SetValueY (float _value)
 Sets the second floating-point value of the effect parameter.
float & GetValueZ ()
 Retrieves the third floating-point value of the effect parameter.
const float & GetValueZ () const
 See above.
void SetValueZ (float _value)
 Sets the third floating-point value of the effect parameter.
float & GetValueW ()
 Retrieves the fourth floating-point value of the effect parameter.
const float & GetValueW () const
 See above.
void SetValueW (float _value)
 Sets the fourth floating-point value of the effect parameter.
virtual FCDEffectParameterClone ()
 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.

Detailed Description

A COLLADA 4D vector of floats.

Contains four, possibly animated, floating-point values. The type of the floating-point values may be HALF or FLOAT.


Member Enumeration Documentation

enum FCDEffectParameterVector::FloatType
 

The supported types of float-point values.

Enumerator:
FLOAT  A single floating-pointer value effect parameter.
HALF  Probably implies a 16-bit floating-point value.


Constructor & Destructor Documentation

FCDEffectParameterVector::FCDEffectParameterVector FCDocument document  ) 
 

Constructor: do not use directly.

Instead, use the FCDEffectParameterList::AddParameter function.

Parameters:
document The COLLADA document that owns the effect parameter.

virtual FCDEffectParameterVector::~FCDEffectParameterVector  )  [virtual]
 

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.


Member Function Documentation

virtual FCDEffectParameter* FCDEffectParameterVector::Clone  )  [virtual]
 

Creates a full copy of the effect parameter.

Returns:
The cloned effect parameter. You will need to delete this pointer.

Implements FCDEffectParameter.

FloatType FCDEffectParameterVector::GetFloatType  )  const [inline]
 

Retrieves the type of floating-point value held by this effect parameter.

Returns:
The type of floating-point value.

virtual Type FCDEffectParameterVector::GetType  )  const [inline, virtual]
 

Retrieves the type of effect parameter class.

Returns:
The parameter class type: VECTOR.

Implements FCDEffectParameter.

float& FCDEffectParameterVector::GetValueW  )  [inline]
 

Retrieves the fourth floating-point value of the effect parameter.

Returns:
The fourth floating-point value.

float& FCDEffectParameterVector::GetValueX  )  [inline]
 

Retrieves the first floating-point value of the effect parameter.

Returns:
The first floating-point value.

float& FCDEffectParameterVector::GetValueY  )  [inline]
 

Retrieves the second floating-point value of the effect parameter.

Returns:
The second floating-point value.

float& FCDEffectParameterVector::GetValueZ  )  [inline]
 

Retrieves the third floating-point value of the effect parameter.

Returns:
The third floating-point value.

float* FCDEffectParameterVector::GetVector  )  [inline]
 

Sets the vector value of the effect parameter.

Returns:
The vector value.

virtual FUStatus FCDEffectParameterVector::LoadFromXML xmlNode *  parameterNode  )  [virtual]
 

[INTERNAL] Reads in the effect parameter from a given COLLADA XML tree node.

Parameters:
parameterNode The COLLADA XML tree node.
Returns:
The status of the import. If the status is not successful, it may be dangerous to extract information from the parameter.

Reimplemented from FCDEffectParameter.

virtual void FCDEffectParameterVector::Overwrite FCDEffectParameter target  )  [virtual]
 

[INTERNAL] Overwrites the target parameter with this parameter.

This function is used during the flattening of materials.

Parameters:
target The target parameter to overwrite.

Reimplemented from FCDEffectParameter.

void FCDEffectParameterVector::SetFloatType FloatType  type  )  [inline]
 

Sets the type of floating-point value held by this effect parameter.

Parameters:
type The type of floating-point value.

void FCDEffectParameterVector::SetValueW float  _value  )  [inline]
 

Sets the fourth floating-point value of the effect parameter.

Parameters:
_value The fourth floating-point value.

void FCDEffectParameterVector::SetValueX float  _value  )  [inline]
 

Sets the first floating-point value of the effect parameter.

Parameters:
_value The first floating-point value.

void FCDEffectParameterVector::SetValueY float  _value  )  [inline]
 

Sets the second floating-point value of the effect parameter.

Parameters:
_value The second floating-point value.

void FCDEffectParameterVector::SetValueZ float  _value  )  [inline]
 

Sets the third floating-point value of the effect parameter.

Parameters:
_value The third floating-point value.

virtual xmlNode* FCDEffectParameterVector::WriteToXML xmlNode *  parentNode  )  const [virtual]
 

[INTERNAL] Writes out the effect parameter to the given COLLADA XML tree node.

Parameters:
parentNode The COLLADA XML parent node in which to insert the parameter.
Returns:
The created element XML tree node.

Reimplemented from FCDEffectParameter.


The documentation for this class was generated from the following file:
Generated on Fri May 12 16:44:42 2006 for FCollada by  doxygen 1.4.6-NO