Manual group draw


Purpose
This sample Engine application demonstrates the manual arrangement of force element graphics on the map. The application adds a MOLE group element to the map’s graphic container and provides selections for decluttering. Click on the button to populate the map with a cluster of force element graphics. Then, make a selection in the combo box to declutter and re-clutter them. The concepts demonstrated in this sample include:
  • Setting decluttering options on the IMoleGroupElement interface. 
  • Manually controlling the decluttered positions of MOLE elements.  
  • Populating a MOLE group element with force element graphics. 
  • Arranging graphical elements on the map.

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.

  1. Compile the ManualGroupDraw project. At the command line, type ManualGroupDraw 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.
  2. Click on the "Add Group Element" button.
  3. Try all the different decluttering options.
  4. The main part of the sample is in ManualGroupDraw.h.
  5. In declutter(), try experimenting with your own decluttered arrangements.
  6. In addGroupElement(), try changing the number of symbols created.

ManualGroupDraw.cpp Implementation file
Symbols.cpp Implementation file
ManualGroupDraw.h Header file
Makefile Unix Makefile
NMakefile.mak Windows Makefile
Download the QT_CPP files

Download the files for all languages




Additional Requirements
  • QT implementation requires QT4

Development licensing Deployment licensing
Engine Developer Kit: Military Overlay Editor Engine Runtime: Military Overlay Editor