home products news downloads documentation support gallery online maps resellers search
TNTmips

HOME

PROFESSIONAL
  TNTmips
  TNTedit
  TNTview
  TNTsdk
  Prices
  How To Order

CONTACT MI
  Resellers
  Consultants
  MicroImages
  About MI
  Visiting
  Prices
  Send Email
  Reseller Resources

SHOWROOM
  Gallery
  Technical Guides
  New Features
  Testimonials
  Reviews
  World Languages

FREE PRODUCTS
  TNTmips Free
  TNTatlas

  MI/X
  FAQ

DOCUMENTATION

SCRIPTING

SITE MAP

 

25 March 2009  

page update: 17 Jun 11

SML Display Functions

V5.30 -- March 1996

The Spatial Manipulation Language (SML) process in TNTmips (Interpret / SML...) includes display functions that can be called from an SML script. You can write an SML script that displays an object, asks for user input, lets the script user select options by pressing customized buttons, and redisplays an object after reprocessing.

The following illustration shows an interactive "boxcar" classification implementation. The script posts buttons on the view window to let the user select new data ranges on three input rasters A, B, and C. When the user clicks the [Process] button, the script processes the input rasters with the current input ranges and re-displays the reference image, showing the new classification results. In this example, TM satellite bands 5, 4, and 3 were processed to mark user-selected features defined by data ranges 100-219, 100-191, and 80-164 respectively. The marked features show in yellow on the display.

 

smldisp.gif - 146.1 K

SML supports familiar print() and printf() functions to display prompts and program information, while input() waits for user input in the console window. DispSetMessage() lets you place a message in the display window's message line.

The DispAddButtons() function lets you post option buttons at the bottom of a display window. Then DispWaitForButtonPress() tells the script which button your user presses, and the script can branch from there.

View complete SML <Script>


Back Home ©MicroImages, Inc. 2013 Published in the United States of America
11th Floor - Sharp Tower, 206 South 13th Street, Lincoln NE 68508-2010   USA
Business & Sales: (402)477-9554  Support: (402)477-9562  Fax: (402)477-9559
Business info@microimages.com  Support support@microimages.com  Web webmaster@microimages.com