5.2. LabelClass Files

LabelClass files are located in the project directory's 'classes' folder. Label-classes have a name and entities. The entities themselves do have name, color and (optionally) id values. The example with the happy_sad class is structured as shown below:

	<?xml version="1.0" encoding="UTF-8"?>
	<LabelClass classname="happy_sad">
		<entity>
			<name>happy</name>
			<color>-13312</color>
			<id>1</id>
		</entity>
		<entity>
			<name>none</name>
			<color>-3355444</color>
			<id>2</id>
		</entity>
		<entity>
			<name>sad</name>
			<color>-52480</color>
			<id>3</id>
		</entity>
	</LabelClass>
				

The LabelClass element representing the LabelClass has the class name and all entity elements. The entity elements consist of name, color and id elements that have the respective value. As mentioned earlier, Atlas does not delete files, therefore all label-classes once used in a project will continue to exist, until manually removed from the file system.

The use of existing label-classes in a project is managed by the project's <projectname>.xml file.

Label-classes can be imported from existing projects by using

Import → Class

and selecting the existing label-class XML file.