#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. | |
FCDExtra * | GetExtra () |
Retrieves the base extra tree for this COLLADA document. | |
const FCDExtra * | GetExtra () const |
See above. | |
FCDVersion & | GetVersion () |
Retrieves the version numbers for this COLLADA document. | |
const FCDVersion & | GetVersion () const |
See above. | |
FUFileManager * | GetFileManager () |
[INTERNAL] Retrieves the local file manager for the COLLADA document. | |
const FUFileManager * | GetFileManager () const |
See above. | |
FCDSceneNode * | GetVisualSceneInstance () |
Retrieves the currently instanced visual scene. | |
const FCDSceneNode * | GetVisualSceneInstance () const |
See above. | |
DEPRECATED (3.04A, FCDocument::GetVisualSceneInstance) inline FCDSceneNode *GetVisualSceneRoot() | |
See above. | |
DEPRECATED (3.04A, FCDocument::GetVisualSceneInstance) inline const FCDSceneNode *GetVisualSceneRoot() const | |
See above. | |
FCDEntityReference * | GetVisualSceneInstanceReference () |
Retrieves the reference to the currently instanced visual scene. | |
const FCDEntityReference * | GetVisualSceneInstanceReference () const |
See above. | |
size_t | GetPhysicsSceneInstanceCount () const |
Retrieves the number of instanced physics scenes. | |
FCDPhysicsScene * | GetPhysicsSceneInstance (size_t index=0) |
Retrieves one instanced physics scene. | |
const FCDPhysicsScene * | GetPhysicsSceneInstance (size_t index=0) const |
See above. | |
DEPRECATED (3.04A, FCDocument::GetPhysicsSceneInstance) inline FCDPhysicsScene *GetPhysicsSceneRoot(size_t index=0) | |
See above. | |
DEPRECATED (3.04A, FCDocument::GetPhysicsSceneInstance) inline const FCDPhysicsScene *GetPhysicsSceneRoot(size_t index=0) const | |
See above. | |
void | AddPhysicsSceneInstance (FCDPhysicsScene *scene) |
Adds one instanced physics scene to the document. | |
FCDEntityReference * | GetPhysicsSceneInstanceReference (size_t index=0) |
Retrieves a reference to the instanced physics scene. | |
const FCDEntityReference * | GetPhysicsSceneInstanceReference (size_t index=0) const |
FCDEntityReference * | AddPhysicsSceneInstanceReference () |
Adds an empty reference in the list of instanced physics scenes. | |
FUSUniqueStringMap * | GetUniqueNameMap () |
[INTERNAL] Retrieves the map of unique ids for this document. | |
const FUSUniqueStringMap * | GetUniqueNameMap () const |
See above. | |
FCDExternalReferenceManager * | GetExternalReferenceManager () |
Retrieves the external reference manager. | |
const FCDExternalReferenceManager * | GetExternalReferenceManager () const |
See above. | |
const fstring & | GetFileUrl () const |
Retrieves the file URL for this document. | |
void | SetFileUrl (const fstring &filename) |
Sets the file URL 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. | |
void | SetCurrentTime (float time) |
Evaluate the animation objects at the given time. | |
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 |
See above. | |
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. | |
FCDForceFieldLibrary * | GetForceFieldLibrary () |
Retrieves the physics force field library. | |
const FCDForceFieldLibrary * | GetForceFieldLibrary () 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. | |
FCDEffectLibrary * | GetEffectLibrary () |
Retrieves the effect library. | |
const FCDEffectLibrary * | 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. | |
FCDEmitterLibrary * | GetEmitterLibrary () |
Retrieves the emitter library. | |
const FCDEmitterLibrary * | GetEmitterLibrary () const |
See above. | |
FCDSceneNode * | AddVisualScene () |
Insert a new visual scene within the visual scene library. | |
FCDPhysicsScene * | AddPhysicsScene () |
Insert a new physics scene within the physics material library. | |
FCDAnimation * | FindAnimation (const fm::string &daeId) |
Retrieves the animation tree node that matches the given COLLADA id. | |
FCDAnimationClip * | FindAnimationClip (const fm::string &daeId) |
Retrieves the animation clip that matches the given COLLADA id. | |
FCDCamera * | FindCamera (const fm::string &daeId) |
Retrieves the camera that matches the given COLLADA id. | |
FCDController * | FindController (const fm::string &daeId) |
Retrieves the controller that matches the given COLLADA id. | |
FCDEffect * | FindEffect (const fm::string &daeId) |
Retrieves the effect that matches the given COLLADA id. | |
FCDEntity * | FindEntity (const fm::string &daeId) |
Retrieves the entity that matches the given COLLADA id. | |
FCDEmitter * | FindEmitter (const fm::string &daeId) |
Retrieves the emitter that matches the given COLLADA id. | |
FCDForceField * | FindForceField (const fm::string &daeId) |
Retrieves the force field that matches the given COLLADA id. | |
FCDGeometry * | FindGeometry (const fm::string &daeId) |
Retrieves the geometry that matches the given COLLADA id. | |
FCDImage * | FindImage (const fm::string &daeId) |
Retrieves the image that matches the given COLLADA id. | |
FCDLayer * | FindLayer (const fm::string &name) |
Retrieves the layer that matches the given name. | |
FCDLight * | FindLight (const fm::string &daeId) |
Retrieves the light that matches the given COLLADA id. | |
FCDMaterial * | FindMaterial (const fm::string &daeId) |
Retrieves the visual material that matches the given COLLADA id. | |
FCDSceneNode * | FindVisualScene (const fm::string &daeId) |
Retrieves the visual scene that matches the given COLLADA id. | |
FCDPhysicsScene * | FindPhysicsScene (const fm::string &daeId) |
Retrieves the physics scene that matches the given COLLADA id. | |
FCDPhysicsMaterial * | FindPhysicsMaterial (const fm::string &daeId) |
Retrieves the physics material that matches the given COLLADA id. | |
FCDPhysicsModel * | FindPhysicsModel (const fm::string &daeId) |
Retrieves the physics model that matches the given COLLADA id. | |
const FCDSceneNode * | FindSceneNode (const char *daeId) const |
Retrieves the visual scene node that matches the given COLLADA id. | |
FCDSceneNode * | FindSceneNode (const char *daeId) |
void | RegisterAnimatedValue (FCDAnimated *animated) |
[INTERNAL] Registers an animated value with the document. | |
void | UnregisterAnimatedValue (FCDAnimated *animated) |
[INTERNAL] Unregisters an animated value of the document. | |
void | RegisterExtraTree (FCDExtra *tree) |
[INTERNAL] Registers an extra tree with the document. | |
void | UnregisterExtraTree (FCDExtra *tree) |
[INTERNAL] Unregisters an extra tree of the document. | |
FCDExtraSet & | GetExtraTrees () |
[INTERNAL] Retrieves the set of extra trees. |
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.
|
|
Adds one instanced physics scene to the document.
|
|
Adds an empty reference in the list of instanced physics scenes.
|
|
Insert a new visual scene within the visual scene library. The new visual scene will be used as the root visual scene.
|
|
Retrieves the animation tree node that matches the given COLLADA id.
|
|
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 emitter that matches the given COLLADA id.
|
|
Retrieves the entity that matches the given COLLADA id. This function will look through all the libraries for any entity with the given COLLADA id.
|
|
Retrieves the force field 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 layer that matches the given name. Note that there are no checks for uniqueness in layer names.
|
|
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 emitter library. The emitter library contains a list of emitter definitions.
|
|
Retrieves the end time set for the document.
|
|
Retrieves the external reference manager.
|
|
Retrieves the base extra tree for this COLLADA document. An extra tree should always be present, but is likely to be empty.
|
|
[INTERNAL] Retrieves the set of extra trees. This function is meant only to be used for supporting the extra-technique plug-ins.
|
|
[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 file URL for this document.
|
|
Retrieves the physics force field library. Force fields are emitters of physical force and have no COMMON profile in COLLADA.
|
|
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.
|
|
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 one instanced physics scene.
|
|
Retrieves the number of instanced physics scenes.
|
|
Retrieves a reference to the instanced physics scene.
|
|
Retrieves the physics scene library. The physics scene library contains a list of physics scene nodes.
|
|
Retrieves the start time set for the document.
|
|
[INTERNAL] Retrieves the map of unique ids for this document.
|
|
Retrieves the version numbers for this COLLADA document. The version numbers should always be present.
|
|
Retrieves the currently instanced visual scene. NOTE: GetVisualSceneRoot is deprecated. Please start using GetVisualSceneInstance.
|
|
Retrieves the reference to the currently instanced visual scene.
|
|
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.
|
|
Returns whether a end time is being enforced for the document.
|
|
Returns whether a start time is being enforced for the document.
|
|
[INTERNAL] Registers an animated value with the document. All animated values are listed within the document.
|
|
[INTERNAL] Registers an extra tree with the document. All extra trees are listed within the document to support extra-technique plug-ins.
|
|
Releases an entity layer from the document.
|
|
Evaluate the animation objects at the given time.
|
|
Enforces a certain time as the end time for the document.
|
|
Sets the file URL for this document. Useful when working with external references.
|
|
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] Unregisters an extra tree of the document. All extra trees are listed within the document to support extra-technique plug-ins.
|