media~MapManager(applicationContext)

Manages maps.

new MapManager(applicationContext)

Parameters:
Name Type Description
applicationContext ApplicationContext The application context.

Methods

afterPropertiesSet()

Initialization after the components in the application context have been constructed.

convert()

Converts an incoming string value to the target datatype. TODO: move to tree utils TODO: remove duplication

createConfigTree()

findMapFiles(versionNode, versionPath)

Finds the map files by type (octree, config, specularity). The filename must be {textureType}.{fileExtension}. For example: diffuse.jpg
Parameters:
Name Type Description
versionNode Tree.Node The tree node of a texture representing a texture with multiple texture files.
versionPath string The path to the directory which contains the texture files.

getMapNames()

Returns the names of the maps.

loadMapConfiguration()

Loads the map configuration file.

setDependencies()

Sets the dependencies from the application context.

updateMaps()

Reads in the maps from filesystem into the Inexor Tree. Tree path: /[repository_name]/[media_type]/[author_name/author_group_name]/[media_name]/v[version]/