#include <FCDObject.h>
Inheritance diagram for FCDObject:
Public Member Functions | |
DeclareFlag (Transient, 0) | |
Declare the flags to set various states available on an FCDObject Each Declare flag requires its local index. [EXPERIMENTAL] This object exists for the application to use. | |
DeclareFlag (NewChild, 1) | |
[EXPERIMENTAL] A new child has been assigned to this object. | |
DeclareFlagCount (2) | |
5 flags are locally declared. | |
FCDObject (FCDocument *document) | |
Constructor: sets the COLLADA document object. | |
virtual | ~FCDObject () |
Destructor. | |
FCDocument * | GetDocument () |
Retrieves the COLLADA document which owns this object. | |
const FCDocument * | GetDocument () const |
See above. | |
bool | IsLocal (const FCDObject *object) const |
Retrieves whether a given object is a local reference from this object. | |
bool | IsExternal (const FCDObject *object) const |
Retrieves whether a given object is an external reference from this object. | |
void * | GetUserHandle () const |
Retrieves the object's user-specified handle. | |
void | SetUserHandle (void *handle) |
Sets the object's user-specified handle. | |
virtual void | SetValueChange () |
ValueChangedFlag override, this allows objects to react if necessary. |
All the objects owned by the COLLADA document derive from this class. The FCDocument object is accessible through this interface to all the object which it owns.
Space for an handle which has no meaning to FCollada is available in this base class, for our users. You can therefore attach your own objects to most FCollada objects. If you assign memory buffers to the user-specified handle, be aware that FCollada will make no attempt to release it.
32 flags are also available within this object. You can use the DeclareFlag and DeclareFlagCount macros to include flags within your custom classes. This object reverses the first four bits for its own flags: dirty, value changed, transient and new child.
All FCollada objects should set the dirty flag when modifications are made to the objects, but FCollada will never reset it. This flag should be used by multi-tier applications. This flag defaults to 'true'.
|
Constructor: sets the COLLADA document object.
|
|
[EXPERIMENTAL] A new child has been assigned to this object. Should be replaced by the StructureChanged flag in future versions. |
|
Declare the flags to set various states available on an FCDObject Each Declare flag requires its local index. [EXPERIMENTAL] This object exists for the application to use. It is required to DeclareFlagCount, declaring the amount of flags specified locally This object should be not archived/saved. |
|
Retrieves the COLLADA document which owns this object.
|
|
Retrieves the object's user-specified handle. This handle is available for users and has no meaning to FCollada.
|
|
Retrieves whether a given object is an external reference from this object.
|
|
Retrieves whether a given object is a local reference from this object.
|
|
Sets the object's user-specified handle. This handle is available for users and has no meaning to FCollada.
|