#include <FCDocument.h>
Inheritance diagram for FCDocument:
Public Member Functions | |
FCDocument () | |
Construct a new COLLADA document. | |
virtual | ~FCDocument () |
COLLADA document destructor. | |
FCDAsset * | GetAsset () |
Retrieves the asset information for this COLLADA document. | |
const FCDAsset * | GetAsset () const |
See above. | |
FUFileManager * | GetFileManager () |
[INTERNAL] Retrieves the local file manager for the COLLADA document. | |
const FUFileManager * | GetFileManager () const |
See above. | |
FCDSceneNode * | GetVisualSceneRoot () |
Retrieves the currently selected visual scene. | |
const FCDSceneNode * | GetVisualSceneRoot () const |
See above. | |
FCDPhysicsSceneNode * | GetPhysicsSceneRoot () |
Retrieves the currently selected physics scene. | |
const FCDPhysicsSceneNode * | GetPhysicsSceneRoot () const |
See above. | |
const FCDMaterialList & | GetMaterialList () |
FUSUniqueStringMap * | GetUniqueNameMap () |
[INTERNAL] Retrieves the map of unique ids for this document. | |
const FUSUniqueStringMap * | GetUniqueNameMap () const |
See above. | |
const FMVector3 & | GetUpAxis () const |
float | GetLengthUnit () const |
float | GetLengthUnitConversion () const |
[INTERNAL] Retrieves the conversion factor between the requested distance unit and the document's distance unit. | |
void | SetLengthUnitWanted (float wantedLengthUnit) |
Sets the wanted distance unit factor, in meters, for this document. | |
bool | HasStartTime () const |
Returns whether a start time is being enforced for the document. | |
float | GetStartTime () const |
Retrieves the start time set for the document. | |
void | SetStartTime (float time) |
Enforces a certain time as the start time for the document. | |
bool | HasEndTime () const |
Returns whether a end time is being enforced for the document. | |
float | GetEndTime () const |
Retrieves the end time set for the document. | |
void | SetEndTime (float time) |
Enforces a certain time as the end time for the document. | |
FCDLayerList & | GetLayers () |
Retrieves the list of entity layers. | |
const FCDLayerList & | GetLayers () const |
See above. | |
size_t | GetLayerCount () const |
Retrieves the number of entity layers contained within the document. | |
FCDLayer * | GetLayer (size_t index) |
Retrieves a specific entity layer contained within the document. | |
const FCDLayer * | GetLayer (size_t index) const |
FCDLayer * | AddLayer () |
Adds an entity layer to the document. | |
void | ReleaseLayer (FCDLayer *layer) |
Releases an entity layer from the document. | |
FCDAnimationLibrary * | GetAnimationLibrary () |
Retrieves the animation library. | |
const FCDAnimationLibrary * | GetAnimationLibrary () const |
See above. | |
FCDAnimationClipLibrary * | GetAnimationClipLibrary () |
Retrieves the animation clip library. | |
const FCDAnimationClipLibrary * | GetAnimationClipLibrary () const |
See above. | |
FCDCameraLibrary * | GetCameraLibrary () |
Retrieves the camera library. | |
const FCDCameraLibrary * | GetCameraLibrary () const |
See above. | |
FCDControllerLibrary * | GetControllerLibrary () |
Retrieves the controller library. | |
const FCDControllerLibrary * | GetControllerLibrary () const |
See above. | |
FCDGeometryLibrary * | GetGeometryLibrary () |
Retrieves the geometry library. | |
const FCDGeometryLibrary * | GetGeometryLibrary () const |
See above. | |
FCDImageLibrary * | GetImageLibrary () |
Retrieves the image library. | |
const FCDImageLibrary * | GetImageLibrary () const |
See above. | |
FCDLightLibrary * | GetLightLibrary () |
Retrieves the light library. | |
const FCDLightLibrary * | GetLightLibrary () const |
See above. | |
FCDMaterialLibrary * | GetMaterialLibrary () |
Retrieves the visual material library. | |
const FCDMaterialLibrary * | GetMaterialLibrary () const |
See above. | |
FCDMaterialLibrary * | GetEffectLibrary () |
Retrieves the effect library. | |
const FCDMaterialLibrary * | GetEffectLibrary () const |
See above. | |
FCDVisualSceneNodeLibrary * | GetVisualSceneLibrary () |
Retrieves the visual scene library. | |
const FCDVisualSceneNodeLibrary * | GetVisualSceneLibrary () const |
See above. | |
FCDPhysicsModelLibrary * | GetPhysicsModelLibrary () |
Retrieves the physics model library. | |
const FCDPhysicsModelLibrary * | GetPhysicsModelLibrary () const |
See above. | |
FCDPhysicsMaterialLibrary * | GetPhysicsMaterialLibrary () |
Retrieves the physics material library. | |
const FCDPhysicsMaterialLibrary * | GetPhysicsMaterialLibrary () const |
See above. | |
FCDPhysicsSceneLibrary * | GetPhysicsSceneLibrary () |
Retrieves the physics scene library. | |
const FCDPhysicsSceneLibrary * | GetPhysicsSceneLibrary () const |
See above. | |
FCDSceneNode * | AddVisualScene () |
Insert a new visual scene within the visual scene library. | |
FCDPhysicsSceneNode * | AddPhysicsScene () |
Insert a new physics scene within the physics material library. | |
void | FindAnimationChannels (const string &pointer, FCDAnimationChannelList &channels) |
[INTERNAL] Retrieves all the animation channels which include a given target pointer. | |
void | FindAnimationChannelsArrayIndices (xmlNode *targetArray, Int32List &animatedIndices) |
[INTERNAL] Retrieves the array indices of animation channels which target the given XML node. | |
FCDAnimation * | FindAnimation (const string &daeId) |
Retrieves the animation tree node that matches the given COLLADA id. | |
FCDAnimationClip * | FindAnimationClip (const string &daeId) |
Retrieves the animation clip that matches the given COLLADA id. | |
FCDCamera * | FindCamera (const string &daeId) |
Retrieves the camera that matches the given COLLADA id. | |
FCDController * | FindController (const string &daeId) |
Retrieves the controller that matches the given COLLADA id. | |
FCDEffect * | FindEffect (const string &daeId) |
Retrieves the effect that matches the given COLLADA id. | |
FCDGeometry * | FindGeometry (const string &daeId) |
Retrieves the geometry that matches the given COLLADA id. | |
FCDImage * | FindImage (const string &daeId) |
Retrieves the image that matches the given COLLADA id. | |
FCDLight * | FindLight (const string &daeId) |
Retrieves the light that matches the given COLLADA id. | |
FCDMaterial * | FindMaterial (const string &daeId) |
Retrieves the visual material that matches the given COLLADA id. | |
FCDTexture * | FindTexture (const string &daeId) |
FCDSceneNode * | FindVisualScene (const string &daeId) |
Retrieves the visual scene that matches the given COLLADA id. | |
FCDPhysicsSceneNode * | FindPhysicsScene (const string &daeId) |
Retrieves the physics scene that matches the given COLLADA id. | |
FCDPhysicsMaterial * | FindPhysicsMaterial (const string &daeId) |
Retrieves the physics material that matches the given COLLADA id. | |
FCDPhysicsModel * | FindPhysicsModel (const string &daeId) |
Retrieves the physics model that matches the given COLLADA id. | |
FCDSceneNode * | FindSceneNode (const string &daeId) |
Retrieves the visual scene node that matches the given COLLADA id. | |
void | RegisterAnimatedValue (FCDAnimated *animated) |
[INTERNAL] Registers an animated value with the document. | |
void | UnregisterAnimatedValue (FCDAnimated *animated) |
[INTERNAL] Unregisters an animated value of the document. | |
bool | LinkDriver (FCDAnimated *animated) |
[INTERNAL] Links the given animated value as a possible driver to other animated value(s). | |
FCDAnimated * | FindAnimatedValue (float *ptr) |
Retrieves an animated value given an animatable value. | |
const FCDAnimated * | FindAnimatedValue (const float *ptr) const |
See above. | |
const float * | FindAnimatedTarget (const string &fullyQualifiedTarget) |
[INTERNAL] Retrieves an animated value given a COLLADA target pointer. | |
const FCDAnimated * | FindNamedAnimated (const string &shader, const string &attribute) const |
bool | IsValueAnimated (const float *ptr) const |
Retrieves whether a given animatable value is animated. | |
FUStatus | LoadFromFile (const fstring &filename) |
Loads a COLLADA file into this document object. | |
FUStatus | LoadFromText (const fstring &basePath, const fchar *text) |
Loads a COLLADA string into this document object. | |
FUStatus | LoadDocumentFromXML (xmlNode *colladaNode) |
[INTERNAL] Reads the full document information from the given XML node tree. | |
FUStatus | WriteToFile (const fstring &filename) const |
Writes the document out to a file identified by its OS-dependent filename. | |
FUStatus | WriteDocumentToXML (xmlNode *colladaNode) const |
[INTERNAL] Writes out the document to a XML node tree. | |
void | WriteAnimatedValueToXML (const float *value, xmlNode *valueNode, const char *wantedSid, int32 arrayElement=-1) const |
[INTERNAL] Writes out the animation curves contained within an animated value to the given XML node tree. | |
const StringList & | GetPostProcessCmds () const |
const FCDAnimatedList & | getAnimatedValues () |
This class holds all the COLLADA libraries, the scene graphs and the document's asset tag.
It also holds some global information, such as the animation start and end time and the layers. This global information is only exported by ColladaMaya right now.
|
COLLADA document destructor. This clears out all the memory related to the document. |
|
Adds an entity layer to the document.
|
|
Insert a new physics scene within the physics material library. The new physics scene will be used as the root physics scene.
|
|
Insert a new visual scene within the visual scene library. The new visual scene will be used as the root visual scene.
|
|
[INTERNAL] Retrieves an animated value given a COLLADA target pointer. Used during the resolving of drivers/driven animated values.
|
|
Retrieves an animated value given an animatable value.
|
|
Retrieves the animation tree node that matches the given COLLADA id.
|
|
[INTERNAL] Retrieves all the animation channels which include a given target pointer.
|
|
[INTERNAL] Retrieves the array indices of animation channels which target the given XML node.
|
|
Retrieves the animation clip that matches the given COLLADA id.
|
|
Retrieves the camera that matches the given COLLADA id.
|
|
Retrieves the controller that matches the given COLLADA id.
|
|
Retrieves the effect that matches the given COLLADA id.
|
|
Retrieves the geometry that matches the given COLLADA id.
|
|
Retrieves the image that matches the given COLLADA id.
|
|
Retrieves the light that matches the given COLLADA id.
|
|
Retrieves the visual material that matches the given COLLADA id.
|
|
|
|
Retrieves the physics material that matches the given COLLADA id.
|
|
Retrieves the physics model that matches the given COLLADA id.
|
|
Retrieves the physics scene that matches the given COLLADA id.
|
|
Retrieves the visual scene node that matches the given COLLADA id. This method searches through all the visual scenes within the visual scene library and their child visual scene nodes to find the correct visual scene node.
|
|
|
|
Retrieves the visual scene that matches the given COLLADA id.
|
|
|
|
Retrieves the animation clip library. The animation clip library contains a list of animation clips. Each animation clip instantiates nodes from the animation library. Sections of the animation curves belonging to the instantiated animation nodes are thereby packaged together as animation clips.
|
|
Retrieves the animation library. The animation library contains the animation curves within a tree structure. To create and find animation curves, do not use the animation library directly: use the FCDAnimated class, the FindAnimatedValue() function and the RegisterAnimatedValue() function.
|
|
Retrieves the asset information for this COLLADA document. The asset information should always be present.
|
|
Retrieves the camera library. The camera library contains a list of cameras, which may be instantiated within the scene graph. COLLADA supports two camera types: perspective and orthographic.
|
|
Retrieves the controller library. The controller library contains a list of controllers, which may be instantiated within the scene graph. COLLADA supports two controller types: skin and morph.
|
|
Retrieves the effect library. The effect library contains a list of effects, which may be instantiated by materials. An effect defines an interface for a rendering shader. A ColladaFX effect may contain multiple passes and techniques for different platforms or level of details.
|
|
Retrieves the end time set for the document.
|
|
[INTERNAL] Retrieves the local file manager for the COLLADA document. Used to resolve URIs and transform file paths into their relative or absolute equivalent. May be deprecated in future versions.
|
|
Retrieves the geometry library. The geometry library contains a list of basic geometries, which may be instantiated within the scene graph and may be used by controllers. COLLADA supports two geometry types: mesh and spline.
|
|
Retrieves the image library. The image library contains a list of images. Images are used by effects for textures.
|
|
Retrieves a specific entity layer contained within the document.
|
|
Retrieves the number of entity layers contained within the document.
|
|
Retrieves the list of entity layers.
|
|
|
|
[INTERNAL] Retrieves the conversion factor between the requested distance unit and the document's distance unit.
|
|
Retrieves the light library. The light library contains a list of light, which may be instantiated within the scene graph. COLLADA supports four light types: ambient, directional, point and spot lights.
|
|
Retrieves the visual material library. The visual material library contains a list of visual materials, which are bound to mesh polygons within the scene graph. A visual material instantiates an effect and presets the effect parameters for a given visual result.
|
|
|
|
Retrieves the physics material library. The physics material library contains a list of physics material.
|
|
Retrieves the physics model library. The physics model library contains a list of physics models.
|
|
Retrieves the physics scene library. The physics scene library contains an acyclic directed graph of physics scene nodes.
|
|
Retrieves the currently selected physics scene.
|
|
|
|
Retrieves the start time set for the document.
|
|
[INTERNAL] Retrieves the map of unique ids for this document.
|
|
|
|
Retrieves the visual scene library. The visual scene library contains an acyclic directed graph of visual scene nodes: a visual scene node contains one or more parent nodes and zero or more child nodes. A visual scene node also contains 3D transformations: translation, rotation, scale, skew, as well as the compound transformations: lookAt and matrix. A visual scene node also contains instances of geometries, controllers, cameras and/or lights. Only one visual scene should be used at one time by the global scene.
|
|
Retrieves the currently selected visual scene.
|
|
Returns whether a end time is being enforced for the document.
|
|
Returns whether a start time is being enforced for the document.
|
|
Retrieves whether a given animatable value is animated.
|
|
[INTERNAL] Links the given animated value as a possible driver to other animated value(s). This step is done during the import, after new animated values are imported. The whole list of animated values is checked for potential driven values.
|
|
[INTERNAL] Reads the full document information from the given XML node tree. This step is done after a successfull import, by LibXML2, of the COLLADA string/file into a full XML node tree.
|
|
Loads a COLLADA file into this document object. This function appends into the document object all the COLLADA assets found within the file identified by the given filename.
|
|
Loads a COLLADA string into this document object. This function appends into the document object all the COLLADA assets found within the given string. The string should be in XML format.
|
|
[INTERNAL] Registers an animated value with the document. All animated values are listed within the document.
|
|
Releases an entity layer from the document.
|
|
Enforces a certain time as the end time for the document.
|
|
Sets the wanted distance unit factor, in meters, for this document. For example, Maya uses centimeters internally and sets the wanted distance unit factor to 0.01.
|
|
Enforces a certain time as the start time for the document.
|
|
[INTERNAL] Unregisters an animated value of the document. All animated values are listed within the document. This function must be called before deleting an animated value.
|
|
[INTERNAL] Writes out the animation curves contained within an animated value to the given XML node tree.
|
|
[INTERNAL] Writes out the document to a XML node tree. This is the first step of the document export. This function traverses the full COLLADA document, writing all the entities into the given XML node tree.
|
|
Writes the document out to a file identified by its OS-dependent filename. This function is done in two steps. First, the document is fully translated into a XML node tree. Then, the XML node tree is written to a file by LibXML2.
|