Please enable JavaScript to view this site.

TerraScan User Guide

Navigation: Programming Interface

DLL Interface

Scroll Prev Top Next More

DLL Interface

TerraScan installation includes an example dynamic link library together with source code illustrating how tools can be added into TerraScan.

These addon tools may perform such tasks as classifying points, writing points to output files or displaying statistical information. The names of the tools will appear in the Addon menu in the TerraScan window. The tools are responsible for providing modal or mode-less dialogs for the input of required user settings.

The example link library \TERRA64\MA\TSCANADD.DLL has been built using Visual C++ 6.0 from source codes included in \TERRA64\ADDON directory. It provides one tool: the display of an intensity histogram.

You may modify the source code and build a dynamic link library to replace the one supplied during installation. The addon library must provide four predefined functions which TerraScan will call at different stages of application execution. These functions are:

AddonFillCommands() is called at start-up so that the DLL will inform TerraScan about available tools.

AddonLinkVariables() is called after start-up to provide the DLL with information about some of TerraScan’s internal tables and variables.

AddonRunCommand() is called whenever user starts an addon command.

AddonEnd() function is called before the application is unloaded so that the DLL may release any resources it has allocated.

See \TERRA64\ADDON directory for example source code files.

The example source code uses C syntax and accesses WIN64 API to create the user interface items.

TerraScan User Guide   01.01.2024   © 2024 Terrasolid Ltd