Class: ColladaLoader

ColladaLoader(position, config)

Represents a Collada Loader. Fetches and parses a collada document and returns the necessary information to render the collada model.

Constructor

new ColladaLoader(position, config)

Constructs a ColladaLoader
Parameters:
Name Type Description
position Position The model's geographic position.
config Object Configuration options for the loader.
  • dirPath - the path to the directory where the collada file is located
Source:

Methods

init(config)

Initialization of the ColladaLoader
Parameters:
Name Type Description
config Object Configuration options for the loader.
  • dirPath - the path to the directory where the collada file is located
Source:

load(url, cb) → {ColladaScene}

Fetches and parses a collada file
Parameters:
Name Type Description
url String The url to the collada .dae file.
cb function A callback function to call with the result when the parsing is done.
Source:
Returns:
A renderable shape.
Type
ColladaScene

parse(data) → {ColladaScene}

Parses a collada file
Parameters:
Name Type Description
data XML The raw XML data of the collada file.
Source:
Returns:
A renderable shape.
Type
ColladaScene

parseLib(libName, extraNodes)

Parses a collada library tag.
Parameters:
Name Type Description
libName String The library tag name.
extraNodes NodeList Nodes from library_nodes or effects form library_effects
Source: