DOM guide: Resolving SIDs: Difference between revisions

From COLLADA Public Wiki
Jump to navigation Jump to search
Elf (talk | contribs)
{{editor | what=
Elf (talk | contribs)
m catg subsys
Line 11: Line 11:
{{DOM tutorial}}
{{DOM tutorial}}


[[Category:DOM project|SID resolver system]]
[[Category:DOM subsystems|SID resolver system]]

Revision as of 01:23, 19 April 2007

Notes about the COLLADA DOM SID Resolver ((EDITOR: This page needs the following improvement: Andy says to put in the user guide--maybe merge. ))


daeSIDResolver is a helper class to resolve COLLADA address syntax targets. It can also be used to do “sidRef” type of lookups (used a lot in CFX and CPhysics).

To resolve a normal/absolute COLLADA sid target (like in animation channel elements), you need to pass in the containing element (same concept as in daeURI), the target string, and optionally the profile to look into (defaults to use COMMON profile).

With normal/absolute target resolving, the container can actually be any element that belongs to the same document since the document URI is the only piece of data it requires.

To “hack it” to do sid lookups used in CFX, you can pass in a relative target string. This will need to be made programmatically since the documents specify “sid refs” by sid alone and not in relative COLLADA addressing syntax. An example, SomeSID would become ./SomeSID. Then the container would be where to start the look from.

Template:DOM tutorial