Current Page:
NeXtMidas Training
Getting Started - Part 2
Lab 4
Solution
|
|
- Lab 4 (Solution):
- You should have done this:
- Use
PLOT to plot world.shp in the background. Give
the plot an ID of MYPLOT .
nM> plot/bg/id=myplot world.shp
<Plot should come up in separate window.>
nM>
- Use
REG to look at the registry entry for plot.
nM> reg
T: REG = Table of 3 entries
O: SHELL = nxm.sys.lib.Shell@c1cd1f
T: HANDLERS = Table of 3 entries
O: MYPLOT = P: PLOT,FILE=world.shp,/BG=,/ID=myplot
- Use
RES to look at the registry table. Note how it is the
same as what was shown with REG .
nM> res reg
T: REG = Table of 3 entries
O: SHELL = nxm.sys.lib.Shell@c1cd1f
T: HANDLERS = Table of 3 entries
O: MYPLOT = P: PLOT,FILE=world.shp,/BG=,/ID=myplot
- Use
RES to look at the particular entry for the plot. Since
REG is a table you can use the REG.<id>
syntax.
nM> res reg.myplot
O: REG.MYPLOT = P: PLOT,FILE=world.shp,/BG=,/ID=myplot
- Use
QUERY to see some of the methods can be called on the plot. Then use
QUERY reg.myplot.nextlink to see more methods that can be called on plot.
nM> query reg.myplot
<Long list of methods in plot.>
nM> query reg.myplot.nextlink
<Long list of methods in MPlot.>
- Use
QUERY and the NeXtMidas API
to look at the documentation for the setView
method that is callable in the plot.
nM> query reg.myplot.nextlink
<Long list of methods in MPlot including setView.>
Next: Look in the NeXtMidas API, click on the "MPlot" class, and look at documentation for the setView method.
- Set the view to
GEODETIC . Remember that when a class has a
setFoo(..) method the value of it can be set using
SET <object>.FOO <value> .
nM> set reg.myplot.view GEODETIC
<Plot should change to a 3D (Geodetic) view.>
nM>
|
|
|