Home > Working with SGWorld > ProjectTree (IProjectTree6)
The IProjectTree6 interface allows you to manipulate the Project Tree items. This includes managing groups, items and layers. A tree item is 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 ICreator6 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 Project Tree (as items inside groups). To rename an item in the Project 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 (If Project.GetTerraObjectID() fails, it might be that the tree-item ID that you are trying to access is actually a group (which has no interface).
|
Properties |
|
|
Reserved. Currently not used. |
|
|
Reserved. Currently not used. |
|
|
Methods |
|
|
Creates a group in the Project Tree. |
|
|
Creates a group in a “locked” (collapsed) mode. When locked, TerraExplorer Viewer users cannot expand the group to view its contents. |
|
|
Deletes an item from the tree (and from the terrain, if that item was a terrain object). |
|
|
Opens the edit properties sheet to edit the item. |
|
|
Opens the edit properties sheet to edit a group of items. |
|
|
Enables changes to be redrawn or prevents them from being redrawn in the Project Tree. |
|
|
Terminates the edit item mode. |
|
|
Expands the group so that it displays all of its children, or collapses it. |
|
|
Finds an item using a path to that item. |
|
|
Returns the activation code assigned for the specified group. |
|
|
Returns the text string describing the group’s attribute data. This information is available for general use in your application. |
|
|
Returns the group’s end date and time. |
|
|
Returns the location of the specified group. |
|
|
Returns the group’s start date and time. |
|
|
Returns the name of a certain item using its Item ID. |
|
|
Returns an interface to the ILayer6 object based on the ItemID. |
|
|
Returns the tree item that has the specified relationship, indicated by the Code parameter, to ItemID. |
|
|
Returns an interface to the object based on a requested ITerraExplorerObject derived interface. |
|
|
Uses ItemID to retrieve the actual object ID associated with this tree item ID entry. |
|
|
Returns the visibility status of a Project Tree item on the terrain. |
|
|
Determines whether or not a ProjectTree item is a group. |
|
|
Determines whether a Project Tree item is a feature layer. |
|
|
Determines whether a group is locked, or not. |
|
|
Loads a Fly file into the current project. All the objects from the FLY file, including locations, routes and hyperlinks, are added. |
|
|
Loads a KML file into the current project. |
|
|
Sets a group to a “lock” (collapsed) status mode. When a group is locked, users of TerraExplorer Viewer cannot expand the group and view its contents. |
|
|
Renames a group in the Project Tree. |
|
|
Saves the specified group to a FLY file. |
|
|
Saves the specified group to a KML file. |
|
|
Selects an item in the Project Tree. |
|
|
Determines the default activation action executed when clicking on the locked group symbol. |
|
|
Stores a text string in the group global namespace. |
|
|
Determines the date and time when the group should stop being visible |
|
|
Determines the location parameters for a specified group. |
|
|
Determines the date and time when the group should start being visible |
|
|
Moves items to different groups groups, and returns the new ItemID assigned to the item. |
|
|
Sets a ProjectTree item to be visible, or not visible, on the terrain |
|
|
Reserved |
|
|
Sorts the items in the group according to specified sort type. |