Previous Next        Current Page: NeXtMidas Training / Getting Started - Part 2 / Lab 4 / Solution
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
   + Advanced Results Parameters   
   + Lab 3   
   + Threads in NeXtMidas   
   - Lab 4   
      - Instructions   
      - Solution   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Lab 4 (Solution):
    • You should have done this:
      1. 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>
        
      2. 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
      3. 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
      4. 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
      5. 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.>
      6. 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.
      7. 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>
        

back