#include <FCDAsset.h>
Inheritance diagram for FCDAsset:
Public Member Functions | |
DeclareFlag (HasUpAxis, 0) | |
Whether an up-axis is set for this asset. | |
DeclareFlag (HasUnits, 1) | |
Whether a length unit is set for this asset. | |
DeclareFlagCount (2) | |
FCDAsset declares two flags. | |
FCDAsset (FCDocument *document) | |
Constructor. | |
virtual | ~FCDAsset () |
Destructor. | |
const FCDAssetContributor ** | GetContributors () const |
Retrieves the list of contributors to this asset. See above. | |
size_t | GetContributorCount () const |
Retrieves the number of contributors to this asset. | |
FCDAssetContributor * | GetContributor (size_t index) |
Retrieves a contributor tied to this asset. | |
const FCDAssetContributor * | GetContributor (size_t index) const |
See above. | |
FCDAssetContributor * | AddContributor () |
Inserts a new contributor to this asset. | |
const FUDateTime & | GetCreationDateTime () const |
Retrieves the creation date-time of the document. | |
FUDateTime & | GetCreationDateTime () |
[INTERNAL] Use this function to createDateTime when you are writing an import plug-in. | |
const FUDateTime & | GetModifiedDateTime () const |
Retrieves the last modification date-time of the document. | |
FUDateTime & | GetModifiedDateTime () |
[INTERNAL] Use this function to retieve the modifiedDateTime when you are writing an import plug-in. | |
const fstring & | GetKeywords () const |
Retrieves the list of keywords identifying this asset. | |
void | SetKeywords (const fstring &_keywords) |
Sets the list of keywords for this asset. | |
const fstring & | GetRevision () const |
Retrieves the revision string for this asset. | |
void | SetRevision (const fstring &_revision) |
Sets the revision string for this asset. | |
const fstring & | GetSubject () const |
Retrieves the subject of the asset. | |
void | SetSubject (const fstring &_subject) |
Sets the subject of the asset. | |
const fstring & | GetTitle () const |
Retrieves the title of the asset. | |
void | SetTitle (const fstring &_title) |
Sets the title of the asset. | |
const FMVector3 & | GetUpAxis () const |
Retrieves the up-axis of the asset. | |
void | SetUpAxis (const FMVector3 &_upAxis) |
Sets the up-axis of the asset. | |
const fstring & | GetUnitName () const |
Retrieves the name of the length unit for the asset. | |
void | SetUnitName (const fstring &_unitName) |
Sets the name of the length unit for the asset. | |
float | GetUnitConversionFactor () const |
Retrieves the length unit conversion factor, in meters, for the asset. | |
void | SetUnitConversionFactor (float factor) |
Sets the length unit conversion factor for the asset. | |
DEPRECATED (3.05A, GetHasUpAxisFlag) inline bool HasUpAxis() const | |
Retrieves whether an up-axis is set for this asset. | |
DEPRECATED (3.05A, GetHasUnitsFlag) inline bool HasUnits() const | |
Retrieves whether a length unit is set for this asset. | |
DEPRECATED (3.05A, ResetHasUpAxisFlag) inline void ResetUpAxis() | |
Resets the up-axis of the asset. | |
DEPRECATED (3.05A, ResetHasUnitsFlag) inline void ResetUnits() | |
Resets the length unit of the asset. | |
FCDAsset * | Clone (FCDAsset *clone=NULL, bool cloneAllContributors=true) const |
Clones the asset structure into another asset structure. |
In COLLADA, there are three types of assets. FCollada recognizes two.
1) The COLLADA document is the most important asset and an asset declaration structure is always created for it. 2) The FCDEntity objects may also contain assets structures. 3) COLLADA also allows asset structure on entity libraries, but FCollada does not support them.
Every asset contains its own list of contributors. Every COLLADA application and conditioner that modifies an asset should attach its signature, in the form of a contributor, to the asset.
|
Constructor.
|
|
Inserts a new contributor to this asset.
|
|
Clones the asset structure into another asset structure.
|
|
Whether a length unit is set for this asset. If no length unit is set for this asset, you should use the length unit of the parent's asset. |
|
Whether an up-axis is set for this asset. If no up-axis is set for this asset, you should use the up-axis of the parent's asset. |
|
Resets the length unit of the asset. The parent asset length unit should henceforth be used. Changing the length unit of an asset does not modify its data. |
|
Resets the up-axis of the asset. The parent asset up-axis should henceforth be used. Changing the up-axis of an asset does not modify its data. |
|
Retrieves whether a length unit is set for this asset. If no length unit is set for this asset, you should use the length unit of the parent's asset.
|
|
Retrieves whether an up-axis is set for this asset. If no up-axis is set for this asset, you should use the up-axis of the parent's asset.
|
|
Retrieves a contributor tied to this asset.
|
|
Retrieves the number of contributors to this asset.
|
|
Retrieves the list of contributors to this asset. See above.
|
|
[INTERNAL] Use this function to createDateTime when you are writing an import plug-in. see above |
|
Retrieves the creation date-time of the document. This date-time is not modifiable. It is set automatically when FCollada creates the document or imported when FCollada reads in a COLLADA document.
|
|
Retrieves the list of keywords identifying this asset.
|
|
[INTERNAL] Use this function to retieve the modifiedDateTime when you are writing an import plug-in. see above |
|
Retrieves the last modification date-time of the document. This date-time is not modifiable. It is set automatically when FCollada writes out a COLLADA document to a file, when FCollada creates an original document and when FCollada reads in a COLLADA document from a file.
|
|
Retrieves the revision string for this asset. COLLADA doesn't define a standard for the revisions of assets.
|
|
Retrieves the subject of the asset.
|
|
Retrieves the title of the asset.
|
|
Retrieves the length unit conversion factor, in meters, for the asset. The length unit of two entities within the same document may differ. To avoid issues with length unit differences, it is suggested that you use the FCDocumentTools::StandardizeUpAxisAndLength function.
|
|
Retrieves the name of the length unit for the asset.
|
|
Retrieves the up-axis of the asset. The up-axis of two entities within the same document may differ. To avoid issues with up-axis differences, it is suggested that you use the FCDocumentTools::StandardizeUpAxisAndLength function.
|
|
Sets the list of keywords for this asset.
|
|
Sets the revision string for this asset. COLLADA doesn't define a standard for the revisions of assets.
|
|
Sets the subject of the asset.
|
|
Sets the title of the asset.
|
|
Sets the length unit conversion factor for the asset. Changing the length unit conversion factor of an asset does not modify its data.
|
|
Sets the name of the length unit for the asset.
|
|
Sets the up-axis of the asset. Changing the up-axis of an asset does not modify its data.
|