Create a new EnvironmentIndexer for the given set of structures and environments.
should we display atomic or structure properties
structures used in the current dataset
Optional
environments: Environment[]environments used in the current dataset
Current DisplayMode. This is useful for datasets that contain both atom-level and structure-level properties.
Get a full set of indexes from the structure/atom indexes
index of the structure in the full structure list
Optional
atom: numberindex of the atom in the structure
an Indexes instance, containing the global environment index;
or undefined
if there is no environment corresponding to the
given atom in the given structure
EnvironmentIndexer links environment index and structure/atom indexes
Environments can be either full structures or centered on a specific atom. This class makes the link between two representations: a single, global, environment index, used by the map; and the structure/atom pair, used by the structure viewer and the general information panel.