IInformationTree5

The IInformationTree5 interface allows you to manipulate the Information Tree items. This includes managing groups, items and layers. A tree item is actually a group if it can have children items. It is important to note that items that are not groups can only be added through the IObjectManager51 interface, since it is used to create all the entities of TerraExplorer. These entities (i.e., a polyline on the terrain) are then represented in the Information Tree (as items inside groups). To rename an item in the information tree that is not a group, you use the interface of that item. Each item in the tree has a unique tree-item id. If you need to access the object that the item represents (for example, to change its position on the terrain) you use the GetObject method to get an interface to that object (See:Finding and modifying objects”). If IInformationTree::GetTerraObjectID() fails, it might be that the tree-item ID that you are trying to access is actually a group (which has no interface).

Hierarchy:

 

IInformationTree5

Methods:

CreateGroup, CreateLockedGroup, RenameGroup, ExpandGroup, GetItemName, DeleteItem, SetParent, GetNextItem, FindItem, GetTerraObjectID, SetGroupColor, GetGroupColor, EnableRedraw, IsGroup, SetGroupVisibility, SortGroup, SetGroupLocation, GetGroupLocation, CreateLockedGroupEx, SetActivationCode, GetActivationCode, SetClientData, GetClientData, GetObject, SetParentEx, ReloadLayer, EditItem, EditItems, LoadFlyLayer, IsGroupEx, GetGroupVisibility, SaveFlyLayer, CreateLayer, EditItemEx, EndEdit, SetClientDataEx, GetClientDataEx, GetLayer, SetVisibility, GetVisibility, GetObjectEx, LoadLayerEx, LockGroup, SelectItem, IsLayer