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

HOME

CONTACT US

CURRENT RELEASE
  TNT 2013

DEVELOPMENT VERSION
  TNT 2014

TNTmips Pro
PRIOR RELEASES
  TNT 2012

FREE SOFTWARE
  TNTmips Free
  TNTatlas
  TNTsdk

MORE DOWNLOADS
  HASP Key Driver
  Screen Recorder
  TNT Language Kits
  Sample Geodata
  TNT Scripts

DOCUMENTATION
  TNTmips Tutorials
  Tutorial Datasets
  Technical Guides
  Scripts
  Quick Guides

MORE INFO
  Download FAQs
  FTP
  Download Managers
  Find Reseller

SITE MAP

 


Display Control Scripts

Using GraphTips and DataTips

Go to main SCRIPTING page...


Display control scripts allow you to add custom text and rich, context-sensitive graphical information to DataTips in groups, layouts, and atlases. A control script can read values from the raster cells and geometric elements at the cursor location, perform calculations if needed, and create charts, graphs, or other specialized graphics for presentation in the DataTip. You can configure the script to use the graphic alone (with transparent background) or embed the graphic in the default rectangular DataTip with background color and border. The script can also either allow or suppress the DataTip information that has been set outside the script for the various layers in the view.

Go to 1-page index of over 200 scripts ...

Download Display Control Scripts with GraphTips and DataTips:

options for incorporating a graphic in a DataTip. Each of the three sample control scripts reads the cell value under the mouse cursor from an ASPECT raster layer, creates a graphic with a pointer showing this aspect direction, and creates formatted text to report the numerical value. AspectTip1.sml shows only the aspect graphic with no DataTip background. AspectTip2.sml embeds the graphic in the normal colored DataTip background and border, but shows no information from other layers in the layout. AspectTip3.sml embeds the graphic in the normal DataTip background but also allows attribute information from other layers in the layout to appear.
Using Graphics in Complex DataTips

AspectTip1.sml
AspectTip2.sml
AspectTip3.sml

Search dialog for the Nebraska Land Viewer Atlas.  The Find Area of Interest dialog is created by a display control script so that the dialog opens automatically with the atlas and remains active no matter what graphic tool is selected. The control script's dialog enables spatial search by township/range, township/range/section, or by the name of a Natural Resource District, county, 7.5-minute quadrangle, or city/town. A button on the Orthoimages tabbed panel gets a list of available orthoimages for the USGS quadrangle currently centered in the view; any of these images can be selected for download from a Nebraska state government web site. 
  Nebraska Land Viewer Atlas 2nd Edition
NEsearchCtrl.sml 
These two scripts show how to create enhanced DataTips and GraphTips that pop in with customized or computed content. They access the cursor position as the DataTip is about to appear, use this position to obtain data from one or more layers in the view (raster cell value, database attribute value for the enclosing polygon, and so on), and present the data or results computed from it.
Enhanced DataTips and GraphTips (2-sided color plate)
SlopeAspectDataTip.sml 
SlopeDataTip.rvc

SlopeAspectGraphTip.sml
SlopeGraphTip.rvc

 

 

Two GraphTip examples that plot categorical breakdowns of population values for counties (polygons in a vector object). The piechart GraphTip shows a pie chart for each county with the percentage of these households in different categories. The bar chart GraphTip shows a bar chart with the percentages of the population in each of five age categories, with these values coming from a different table.
Pie Chart and Bar Graph (2-sided color plate)
BarGraphTip.sml  
NEgrowth.rvc

PieChartGraphTip.sml
NEcensus.rvc

 

These scripts create a circular GraphTip whose diameter is set to be a fixed fraction of the size of the View window. The SpyGlassRaster script uses standard GraphTip methods and structures to copy the geographically-matching portion of a raster object into the GraphTip at each GraphTip event. The SpyGlassVector script constructs a GraphTip that shows a matching vector object.
Spyglass View (2-sided color plate)
SpyGlassRaster.sml

SpyGlassVector.sml

 

The tool created by this script has capabilities similar to the Spyglass View scripts described above, but implements it as a Tool Script that waits for a mouse click from the user instead of showing the spyglass view automatically. The tool creates a circular GraphTip view at the cursor location when the left mouse-button is pressed.
Pop-In View (2-sided color plate)
PopInViewTool.sml

 

A GraphTip example that executes automatically whenever the cursor is near a vector line. The line nearest the cursor is highlighted and a GraphTip pops-in showing an elevation profile computed along the line using values from an elevation raster.
Profile of Nearest Line (2-sided color plate)
LineProfileGraphTip.sml

 

From the sample TNTatlas of Afghanistan label_management.sml
population_pie.sml
roads_Profile.sml
Slope_Aspect.sml
urbanization_pie.sml

 

25 March 2009  

page update: 29 Oct 12


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