How to use
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
- Compile the MoleSymbols project. At the command line, type MoleSymbols to launch the sample. The steps being taken to produce the display are printed on the console. The application uses a MapControl, TOCControl, and ToolbarControl. When the application first opens it attempts to load a map from the sample data.
- Click on the "Add MOLE Symbol" button, and then click on the map a few times. Each time you click, the symbol whose ID appears in the text box appears on the map. You can edit the symbol ID in the text box, or let it be replaced randomly each time you click. You can edit the size of the symbol in the numeric text box next to the symbol ID; this size is relative to the screen.
- Click the "Add a sample line graphic" button a few times. Each time you click, a random fix task line appears somewhere in the current view extent.
- Click the "Add a sample area graphic" button a few times. Each time you click, a random obstacle restricted area appears somewhere in the current view extent.
- Click the "Select and drag graphics" button. Click on some graphics to select them, and drag on the graphics to move them. Click on an empty part of the map to clear the selection.
- Click on the "Move Units" button to move all units on the map ¾ degrees east and ¾ degrees north.
- Click on the "Create 200 graphics" button to add a bunch of force elements to the display.
- In order to use the GIS toolbar, neither the "Select and drag graphics" nor the "Add MOLE Symbol" button can be highlighted.
- In MoleSymbolsWindow::add200, you can alter the number of graphics by changing the for loop’s limit. You can also change the radius ratio and the number of force elements in each circular arrangement.
- In MoleSymbolsWindow::addArea, uncomment the fill color and outline symbol settings to see more colorful and diverse areas.
- In MoleSymbolsWindow::addLine, uncomment the line color and width settings to see more color and diverse arrows.
- In MoleSymbolsWindow::moveUnits, experiment with different delta vectors, or add a state machine to make the symbols follow a path.
- In MoleSymbolsWindow::drawSymbol, uncomment the fill setting and see what force elements look like with no fill.
- In MoleSymbolsWindow::setLabels, comment and uncomment various combinations of property settings and observe the results.
- In MoleSymbolsWindow::selectElements, experiment with different search tolerances. Zoom into a region of the world and observe the selection behavior. Try computing a search tolerance relative to the current map extent.
MoleSymbols.cpp | Implementation file |
MoleSymbolsWindow.cpp | Implementation file |
Symbols.cpp | Implementation file |
MoleSymbols.h | Header file |
MoleSymbolsWindow.h | Header file |
Makefile | Unix Makefile |
NMakefile.mak | Windows Makefile |
Download the files for all languages
Development licensing | Deployment licensing |
---|---|
Engine Developer Kit: Military Overlay Editor | Engine Runtime: Military Overlay Editor |