vsTASKER 7 User Manual
×
Menu
Index

Catalogs

 
Catalogs are a list of predefined templates, belonging to the database, whose main purpose is to be duplicated and copied into scenarios.
At the moment, only one catalog type is defined: Entity.
 
Although it is not mandatory to use catalogs at design time, as an entity can be created from a template or imported from the shared directory, using catalog entities is mandatory at runtime: adding a new entity into the scenario at runtime can only be done using duplication of an existing or catalog entity.
 
 
To access the catalog list, expand it in the Environment tree-list panel.
According to settings, catalogs can belong to the database (one for all scenarios) or to each scenario (catalog list will change with scenario focus).
 
To add a new entity in the catalog list, select Entities and use the button of the tool bar:
 
Entities belonging to the catalog are listed into the Diagram panel:
 
 
To move an entity from the catalog to the current scenario, just select the entity in the list and drag it into the scenario (while holding down the mouse button) at the desired position.
Release the mouse to instanciate.
 
When an entity is coming from a catalog (copied from), it will appear as such in the property window:
For the moment, it is not possible to make it as a reference to a catalog entity. This will come in a future version.
 
 
In the scenario map, select any entity and right click:
Copy: copy the selected entity into the catalog list, using the same name.
 
Move: do a copy first (see above) then remove the selected entity from the scenario. This is another way to build the catalog list.
 
 
 
In the scenario map, right click the background at the location you want to put a new runtime entity:
Add Entity: at runtime, the only way to add a new entity is to instanciate it from the catalog list.
Select the one you want, rename it and it will be created at the mouse location.
 
 
 
 
 
 
Use such code into logic or any code using vsTASKER libraries to instanciate a catalog entity, at runtime, in the scenario:
 
 WCoord pos(WC_LLA, 31.911104, 115.653213, 3000);
 Vt_Entity* blue_airforce = new Entity("Blue_AirForce", "F16_1", pos);  // catalog, instance name, position