SetCompareGroup

This method enables you to compare two versions of the 3D View, each of which is composed of a different group of objects, by dynamically hiding one of the groups inside or outside of a box area defined by the ShowCompareBox method.

Call this method for each object you want to assign to either of the groups (CG_Group_1/ CG_Group_2). You can then call ShowCompareBox to define a comparison box and control which of the groups is visible inside the box, and which outside, e.g. to allow dynamically swiping between the two versions. See “ShowCompareBox” for more information

This method is similar to the Swipe 3D Mesh Layers tool available from the TerraExplorer application. See "Swipe 3D Mesh Layers" in the TerraExplorer User Guide for more information.

 

JavaScript

 

 

 

SetCompareGroup (

       ID,

       Group)

 

C#

 

 

 

void SetCompareGroup (

       String* ID,

       CompareGroup Group)

 

C++

 

 

 

HRESULT SetCompareGroup (

       BSTR* ID,

       CompareGroup Group)

Parameters

ID

The ITerraExplorerObject80.ID of the object to be included in the group.

Group

An enum representing the group that the ID object should be included in. It can have any of the following values:

·          CG_ALL_OBJECTS = 0
Include the object with all objects that were not assigned a group. All these objects will be displayed in both groups.

·          CG_GROUP_1 = 1
Include the object only in group 1.

·          CG_GROUP_2 = 2
Include the object only in group 2.

Exceptions

HRESULT can return any of the values listed in the HRESULT Return Values list.