#include <FCDGeometrySource.h>
Inheritance diagram for FCDGeometrySource:
Public Member Functions | |
FCDGeometrySource (FCDocument *document) | |
Constructor: do not use directly. | |
virtual | ~FCDGeometrySource () |
Destructor. | |
FCDGeometrySource * | Clone (FCDGeometrySource *clone=NULL) const |
Copies the data source into a clone. | |
const fstring & | GetName () const |
Retrieves the name of the data source. | |
float * | GetData () |
Retrieves the pure data of the data source. | |
const float * | GetData () const |
See above. | |
FCDParameterListAnimatableFloat & | GetSourceData () |
[INTERNAL] Retrieve the reference to the source data. | |
const FCDParameterListAnimatableFloat & | GetSourceData () const |
float ** | GetDataPtr () |
Retrieves a ptr to the data of the data source. | |
const float ** | GetDataPtr () const |
See above. | |
size_t | GetDataCount () const |
Retrieves the amount of data inside the source. | |
void | SetDataCount (size_t count) |
Sets the amount of data contained inside the source. | |
uint32 | GetStride () const |
Retrieves the stride of the data within the source. | |
size_t | GetValueCount () const |
Retrieves the number of individual source values contained in the source. | |
size_t | GetValueReserved () const |
Retrieves the max number of values this input can handle before memory is reallocated. | |
void | SetValueCount (size_t count) |
Sets the number of individual source values contained in the source. | |
const float * | GetValue (size_t index) const |
Retrieves one source value out of this source. See above. | |
void | SetValue (size_t index, const float *value) |
Sets one source value out of this source. | |
FUDaeGeometryInput::Semantic | GetType () const |
Retrieves the type of data contained within the source. | |
void | SetType (FUDaeGeometryInput::Semantic type) |
Sets the type of data contained within the source. | |
FUObjectContainer< FCDAnimated > & | GetAnimatedValues () |
Retrieves the list of animated values for the data of the source. | |
const FUObjectContainer< FCDAnimated > & | GetAnimatedValues () const |
See above. | |
void | SetName (const fstring &_name) |
Sets the user-friendly name of the data source. | |
void | SetData (const FloatList &_sourceData, uint32 _sourceStride, size_t count=0, size_t offset=0) |
Overwrites the data contained within the data source. | |
void | SetStride (uint32 _stride) |
Sets the stride for the source data. | |
void | SetSourceType (FUDaeGeometryInput::Semantic type) |
[INTERNAL] Set the source type. | |
FCDExtra * | GetExtra () |
Retrieves the extra information contained by this data source. | |
const FCDExtra * | GetExtra () const |
See above. | |
FCDGeometrySource * | Clone () const |
[INTERNAL] Clones this data source. |
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 the individual source 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.
Each source 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.
|
|
[INTERNAL] Clones this data source. You will need to release the returned pointer manually.
|
|
Copies the data source into a clone. The clone may reside in another document.
|
|
Retrieves the list of animated values for the data of the source.
|
|
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 amount of data inside the source.
|
|
Retrieves a ptr to the data of the data source. This allows external objects to store pointers to our data even when the data memory is reallocated
|
|
Retrieves the extra information contained by this data 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.
|
|
[INTERNAL] Retrieve the reference to the source data.
|
|
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.
|
|
Retrieves one source value out of this source. See above.
|
|
Retrieves the number of individual source values contained in the source.
|
|
Retrieves the max number of values this input can handle before memory is reallocated.
|
|
Overwrites the data contained within the data source.
|
|
Sets the amount of data contained inside the source. It is preferable to set the stride and to use SetValueCount. No initialization of new values is done.
|
|
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.
|
|
[INTERNAL] Set the source type.
|
|
Sets the stride for the source data.
|
|
Sets the type of data contained within the source. Modifying the source type of an existing source is not recommended. Common values for the type of data are POSITION, NORMAL, COLOR and TEXCOORD. Please see FUDaeGeometryInput for more information.
|
|
Sets one source value out of this source.
|
|
Sets the number of individual source values contained in the source. No initialization of new values is done.
|