#include <FCDGeometrySource.h>
Inheritance diagram for FCDGeometrySource:
Public Member Functions | |
FCDGeometrySource (FCDocument *document) | |
Constructor: do not use directly. | |
virtual | ~FCDGeometrySource () |
Destructor: do not use directly. | |
const fstring & | GetName () const |
Retrieves the name of the data source. | |
FloatList & | GetSourceData () |
Retrieves the pure data of the data source. | |
const FloatList & | GetSourceData () const |
See above. | |
uint32 | GetSourceStride () const |
Retrieves the stride of the data within the source. | |
const string & | GetSourceId () const |
FCDAnimatedList & | GetAnimatedValues () |
Retrieves the list of animated values for the data of the source. | |
const FCDAnimatedList & | GetAnimatedValues () const |
See above. | |
xmlNode * | GetSourceNode () |
FUDaeGeometryInput::Semantic | GetSourceType () const |
Retrieves the type of data contained within the source. | |
void | SetName (const fstring &_name) |
Sets the user-friendly name of the data source. | |
void | SetSourceData (const FloatList &_sourceData, uint32 _sourceStride, size_t offset=0, size_t count=0) |
Overwrites the data contained within the data source. | |
void | SetSourceNode (xmlNode *_sourceNode) |
[INTERNAL] Sets the XML tree node associated with the data source. | |
void | SetSourceType (FUDaeGeometryInput::Semantic type) |
Sets the type of data contained within this data source. | |
FCDGeometrySource * | Clone () const |
[INTERNAL] Clones this data source. | |
FUStatus | LoadFromXML (xmlNode *sourceNode) |
[INTERNAL] Reads in the <source> element from a given COLLADA XML tree node. | |
xmlNode * | WriteToXML (xmlNode *parentNode) const |
[INTERNAL] Writes out the <source> element to the given COLLADA XML tree node. |
A COLLADA data source for geometric meshes contains a list of floating-point values and the information to parse these floating-point values into meaningful content: the stride of the list and the type of data that the floating-point values represent. When the floating-point values are split according to the stride, you get multiple elemental values of the given type. A data source may also have a user-generated name to identify the data within. The name is optional and is used to keep around the user-friendly name for texture coordinate sets or color sets.
The values of the COLLADA data source may be animated individually, or together: as an element.
|
Constructor: do not use directly. Use FCDGeometryMesh::AddSource or FCDGeometryMesh::AddValueSource instead.
|
|
Destructor: do not use directly. The geometric mesh which contains the data source will release it. |
|
[INTERNAL] Clones this data source. You will need to release this pointer manually.
|
|
Retrieves the list of animated values for the data of the source.
|
|
Retrieves the name of the data source. The name is optional and is used to keep around a user-friendly name for texture coordinate sets or color sets.
|
|
Retrieves the pure data of the data source. This is a dynamically-sized array of floating-point values that contains all the data of the source.
|
|
|
|
|
|
Retrieves the stride of the data within the source. There is no guarantee that the number of data values within the source is a multiple of the stride, yet you should always verify that the stride is at least the wanted dimension. For example, there is no guarantee that your vertex position data source has a stride of 3. 3dsMax is known to always export 3D texture coordinate positions.
|
|
Retrieves the type of data contained within the source. Common values for the type of data are POSITION, NORMAL, COLOR and TEXCOORD. Please see FUDaeGeometryInput for more information.
|
|
[INTERNAL] Reads in the <source> element from a given COLLADA XML tree node.
|
|
Sets the user-friendly name of the data source. The name is optional and is used to keep around a user-friendly name for texture coordinate sets or color sets.
|
|
Overwrites the data contained within the data source.
|
|
[INTERNAL] Sets the XML tree node associated with the data source.
|
|
Sets the type of data contained within this data source.
|
|
[INTERNAL] Writes out the <source> element to the given COLLADA XML tree node.
|