<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=LAYER</id>
	<title>LAYER - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=LAYER"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=LAYER&amp;action=history"/>
	<updated>2026-04-14T13:16:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=LAYER&amp;diff=819&amp;oldid=prev</id>
		<title>ConvertBot: creates a new plot layer and adds it to a plotter</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=LAYER&amp;diff=819&amp;oldid=prev"/>
		<updated>2020-04-27T22:05:07Z</updated>

		<summary type="html">&lt;p&gt;creates a new plot layer and adds it to a plotter&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;creates a new plot layer and adds it to a plotter &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;name&amp;gt;	- The Layer type or fully qualified class name [required] &lt;br /&gt;
&amp;lt;label&amp;gt; - Results label to referencing the object [required]&lt;br /&gt;
&amp;lt;table&amp;gt; - Table of arguments to initialize the object via the setKey interface&lt;br /&gt;
&amp;lt;plot&amp;gt;  - The ID of plotter in which to add layer [DEF=&amp;quot;&amp;quot;]&lt;br /&gt;
 &lt;br /&gt;
This command creates a new Layer object for attaching to a plotter. If &amp;lt;name&amp;gt;&lt;br /&gt;
is not a fully qualified class name, a prefix of nxm.sys.libg.Layer is assumed&lt;br /&gt;
(i.e. Geo, T5, XY,...).  &lt;br /&gt;
&lt;br /&gt;
If &amp;lt;table&amp;gt; is specified, layer.setKey() will be called for each element in the&lt;br /&gt;
table.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;label&amp;gt; is specified, the layer is stored in the results table.&lt;br /&gt;
If &amp;lt;plot&amp;gt; is specified, the layer is attached to the named plotter.&lt;br /&gt;
&lt;br /&gt;
The Layer classes to support plotting various types of files are:&lt;br /&gt;
 Layer      - Parent/helper class of other Layers.&lt;br /&gt;
 Layer1D    - Supports plotting Midas type 1000 files.&lt;br /&gt;
 Layer2D    - Supports plotting Midas type 2000 files.&lt;br /&gt;
 LayerGeo   - Supports plotting of geo events with TDOA/DTDOA and FDOA/DFDOA.&lt;br /&gt;
              NOTE: If using LayerGeo directly from Java, users need to call &lt;br /&gt;
              setRef(Object ref) to set their Midas reference in order to &lt;br /&gt;
              use files in the RAM aux.&lt;br /&gt;
 LayerGrid  - The Grid which can be applied to nearly all other layers.&lt;br /&gt;
 LayerImage - Supports plotting of various image types: gif,tif,jpg,png,xpm,pdf.&lt;br /&gt;
 LayerMulti - Supports plotting Midas type 3000 files with multiple Y traces.&lt;br /&gt;
 LayerPoly  - Supports plotting Midas type 1999 files (such as world.prm).&lt;br /&gt;
 LayerShape - Supports plotting shape and companion files (*.shp, *.dbf). &lt;br /&gt;
 LayerT5    - Supports plotting various types of Midas 5000/5010 files:&lt;br /&gt;
                Position     - Fields: POS/VD,NAME/1A&lt;br /&gt;
                Ellipse      - Fields: POS/VD,ELPS/VD,NAME/1A&lt;br /&gt;
                EllipseFlags - Fields: POS/VD,ELPS/VD,NAME/1A,FLAG/8B&lt;br /&gt;
                Cone         - Fields: POS/VD,POSP/VD,CONE/VD,NAME/1A&lt;br /&gt;
                ConeFlags    - Fields: POS/VD,POSP/VD,CONE/VD,NAME/1A,FLAG/8B&lt;br /&gt;
              View the &amp;quot;NeXtMidas User's Guide&amp;quot; for more details.&lt;br /&gt;
 LayerXY    - Supports plotting Midas type 3000 files as scatter plots.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
  1. Create a new layer.&lt;br /&gt;
       nM&amp;gt; plot/bg/id=GPLOT&lt;br /&gt;
       nM&amp;gt; new &amp;quot;nxm.sys.libg.LayerGeo&amp;quot; gl &lt;br /&gt;
               {NAME=GEO,TDOAMODE=CONTOUR,FDOAMODE=LINE}&lt;br /&gt;
       nM&amp;gt; set reg.gplot.addlayer gl&lt;br /&gt;
    or, more simply,&lt;br /&gt;
       nM&amp;gt; plot/bg/id=GPLOT&lt;br /&gt;
       nM&amp;gt; layer Geo gl {NAME=GEO,TDOAMODE=CONTOUR} GPLOT&lt;br /&gt;
&lt;br /&gt;
    NOTE: Although NAME= is used for the Layer name here, when plotting a file&lt;br /&gt;
          TAG= is used to change the layer name.  For example,&lt;br /&gt;
&lt;br /&gt;
            nM&amp;gt; plot world{TAG=mytag}&lt;br /&gt;
&lt;br /&gt;
          makes the layer name MYTAG instead of WORLD.  A &amp;quot;*&amp;quot; may be used to&lt;br /&gt;
          address all layers.&lt;br /&gt;
&lt;br /&gt;
  2. Modify properties of an existing layer.&lt;br /&gt;
&lt;br /&gt;
     The layers a plot currently has are contained in &amp;quot;reg.&amp;lt;PLOTID&amp;gt;.layers&amp;quot;&lt;br /&gt;
     where &amp;lt;PLOTID&amp;gt; is the registry ID of the plot given by the /ID switch or&lt;br /&gt;
     the instance number of the plot.&lt;br /&gt;
       nM&amp;gt; plot/bg world|cities&lt;br /&gt;
       nM&amp;gt; res reg.plot.layers&lt;br /&gt;
       K: REG.PLOT.LAYERS = KeyVector of 3 entries&lt;br /&gt;
       O:  GRID           = nxm.sys.libg.LayerGrid@1c0ec97&lt;br /&gt;
       O:  WORLD          = nxm.sys.libg.LayerPoly@ecb281&lt;br /&gt;
       O:  CITIES         = nxm.sys.libg.LayerT5@1bb60c3&lt;br /&gt;
&lt;br /&gt;
     Layer methods can be invoked directly, for instance&lt;br /&gt;
        nM&amp;gt; plot/bg fftdemo&lt;br /&gt;
        nM&amp;gt; set reg.plot.layers.fftdemo.color RED&lt;br /&gt;
     changes the plot trace from the default color to RED.&lt;br /&gt;
&lt;br /&gt;
Messages:&lt;br /&gt;
   None&lt;br /&gt;
&lt;br /&gt;
Methods:&lt;br /&gt;
   None&lt;br /&gt;
&lt;br /&gt;
Switches:&lt;br /&gt;
   None&lt;br /&gt;
&lt;br /&gt;
See Also: nxm.sys.libg.Layer&lt;br /&gt;
See Also: nxm.sys.libg.Layer1D,    nxm.sys.libg.Layer2D, &lt;br /&gt;
See Also: nxm.sys.libg.LayerGeo,   nxm.sys.libg.LayerGrid,&lt;br /&gt;
See Also: nxm.sys.libg.LayerImage, nxm.sys.libg.LayerMulti,&lt;br /&gt;
See Also: nxm.sys.libg.LayerPoly,  nxm.sys.libg.LayerShape,&lt;br /&gt;
See Also: nxm.sys.libg.LayerT5,    nxm.sys.libg.LayerXY&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>