ProjectTree (IProjectTree80)
The IProjectTree80 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 ICreator80 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 should use the interface of that item. If you need to access a Project Tree element (for example, to change its position on the terrain) you use its ID that uniquely identifies it in the TerraExplorer Pro world (the ITerraExplorerObject80. ID property) to get an interface to that object using the GetObject method.
Note: From API version 6.5 and above, elements no longer have an additional separate Project Tree ID; they only have a single object ID.
|
Properties |
|
|
Gets the ID of the hidden group tree element. |
|
|
Gets the name of the hidden group tree element. |
|
|
Gets the ID that should be passed as an element’s ParentGroupID, if you do not want the element added to the Project Tree. |
|
|
Gets the ID of the Tree root element. |
|
|
Gets and sets a Boolean that determines whether the search tool is displayed. |
|
|
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 Project Tree (and from the terrain, if that item was a terrain object). |
|
|
EditItem |
Reserved. Currently not used. Use EditItemEx instead. |
|
This method replaces EditItem (now reserved) and should be used instead. Places a specified item in edit mode and positions the property sheet if opened in the specified position on the 3D Window. The flags parameter provides control over the display of the property sheet (e.g., whether to display the property sheet with or without the top toolbar) and over the initial edit and move modes. |
|
|
Opens the Multi Edit property sheet to edit multiple specified items. |
|
|
Enables changes to be redrawn or prevents them from being redrawn in the Project Tree. |
|
|
Terminates the EditItemEx mode. |
|
|
Expands the specified 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 specified group’s end date and time. |
|
|
Returns the location of the specified group. |
|
|
Returns the message set for a specific group or layer in the Project Tree using its ID. |
|
|
Returns the specified group’s start date and time. |
|
|
Returns the name of a specific item using its ID. |
|
|
Returns an interface to the IFeatureLayer80 object based on the specified group ID. |
|
|
Retrieves the Project Tree item that has the specified relationship, indicated by the Code parameter, to another item whose ID is specified. |
|
|
Returns an ITerraExplorerObject interface to an object based on its ID. |
|
|
Returns the visibility status of a Project Tree item on the terrain. |
|
|
This method checks whether or not a Project Tree group is expanded. |
|
|
Determines whether or not a ProjectTree item is a group. |
|
|
IsLayer |
Obsolete. To determine whether a Project Tree element is a feature layer, use IProjectTree80.GetObject to return an interface to the element and then ITerraExplorerObject80. ObjectType to get the element type. |
|
Determines whether or not a group is locked. |
|
|
Determines whether or not a group is a radio group. |
|
|
Loads a Fly file into the current project. All the objects from the Fly file, including locations, routes and hyperlinks, are added. |
|
|
Loads a Fly file into the current project. All the objects from the Fly file, including locations, routes and hyperlinks, are added. This method executes asynchronously, immediately returning an ITerraExplorerAsync80 object, thereby ensuring that control is promptly handed back to the calling function. |
|
|
Loads a KML file into the current project. All the objects from the KML file, including locations, presentations, and hyperlinks, are added. |
|
|
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 object or 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. |
|
|
Sets the message for a specific group or layer in the Project Tree using its ID. |
|
|
Determines the date and time when the group should start being visible |
|
|
Moves an item to a different group. |
|
|
Sets a Boolean that determines whether the Project Tree group is a radio group, whose items are mutually exclusive or a standard group. |
|
|
Sets a ProjectTree item to be visible, or not visible, on the terrain. |
|
|
ShowSubTree |
Reserved |
|
Sorts the items in the group according to specified sort type. |