<!--
(C) Copyright 1996-2016 ECMWF.
This software is licensed under the terms of the Apache Licence Version 2.0
which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
In applying this licence, ECMWF does not waive the privileges and immunities
granted to it by virtue of its status as an intergovernmental organisation nor
does it submit to any jurisdiction.
-->
<magics>
	<class inherits="NoIsoShading"
		xmltag="shading"
		name="IsoShading"
		directory="visualisers"
		prefix="contour/contour/contour_shade/contour_shade/contour_shade"
		action="pcont"
		doc_inherits="no">
		<parameter member="technique"
			to="ShadingTechnique"
			default="polygon_shading"
			from="string"
			values = "polygon/grid_shading/cell_shading/marker"
			name="contour_shade_technique">
			<documentation>Technique used for shading (POLYGON_SHADING/ CELL_SHADING/ MARKER)</documentation>
			<option xml="polygon" fortran="polygon_shading" include="PolyShadingTechnique.h" name="PolyShadingTechnique"></option>
			<option xml="grid_shading" fortran="grid_shading" include="PolyShadingTechnique.h" name="GridShading"></option>
			<option xml="cell_shading" fortran="cell_shading" include="CellShading.h" name="CellShading"></option>
			<option xml="dump_shading"
				fortran="dump_shading"
				include="CellShading.h"
				name="DumpShading"
				visible="no"></option>
			<option xml="marker" fortran="marker" include="MarkerShadingTechnique.h" name="MarkerShadingTechnique"></option>
			<set name="contour_shade_method" value="polygon_shading"></set>
		</parameter>
	
		<parameter member="colourMethod"
			to="ColourTechnique"
			default="calculate"
			from="string"
			values = "calculate/list/gradients/palette"
			name="contour_shade_colour_method">
			<documentation>Method of generating the colours of the bands in contour shading (list/calculate/advanced)</documentation>
			<option xml="calculate" fortran="calculate" include="CalculateColourTechnique.h" name="CalculateColourTechnique"></option>
			<option xml="list" fortran="list" include="ListColourTechnique.h" name="ListColourTechnique"></option>
			<option xml="gradients" fortran="gradients" include="GradientsColourTechnique.h" name="GradientsColourTechnique"></option>
			<option xml="palette" fortran="palette" include="ColourTechnique.h" name="PaletteColourTechnique"></option>
		</parameter>
		<metview_parameter from="string"
			name="contour_shade_label_blanking"
			default="on"
			metview="hidden"
			member=""
			python = "off"
			to="bool">
			<documentation>Added for backwards compatibility with existing Metview Contour icons/macros</documentation>
		</metview_parameter>
	</class>
</magics>
