com.esri.arcgis.geodatabase
Interface ITinSelection

All Superinterfaces:
Serializable
All Known Implementing Classes:
Tin

public interface ITinSelection
extends Serializable

Provides access to members that control TIN selction methods.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


Method Summary
 void clearSelection(int type)
          Clears selected element(s).
 void flipSelection(int type, boolean bDataElementsOnly)
          Flips current selection of the specified element type in the TIN.
 int getSelectedElementCount(int type)
          The number of selected elements.
 IEnumTinElement getSelection(int type)
          Returns an enumerator containing selected elements.
 boolean hasSelection(int type)
          Indicates if element(s) is/are selected.
 boolean isSelected(int index, int type)
          Returns TRUE if the element referenced by the index is selected.
 void querySelectionExtent(int type, IEnvelope pExtent)
          Returns the extent of the selected elements.
 void selectAll(int type, boolean bDataElementsOnly)
          Selects all elements of the specified element type in the TIN.
 void selectByArea(int type, IPolygon pArea, boolean bPassThrough, boolean bDataElementsOnly, int action)
          Selects all elements of the specified element type in a specified polygonal area.
 void selectByEnvelope(int type, IEnvelope pEnvelope, boolean bPassThrough, boolean bDataElementsOnly, int action)
          Selects all elements of the specified element type in a specified rectangular envelope.
 void setSelected(int index, int type, int action)
          Selects the element referenced by the index.
 void setSelection(IEnumTinElement pElements, int action)
          Selects elements returned by the enumerator.
 

Method Detail

hasSelection

boolean hasSelection(int type)
                     throws IOException,
                            AutomationException
Indicates if element(s) is/are selected.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
type - A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
Returns:
The pbHasSelection
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

clearSelection

void clearSelection(int type)
                    throws IOException,
                           AutomationException
Clears selected element(s).

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
type - A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSelection

void setSelection(IEnumTinElement pElements,
                  int action)
                  throws IOException,
                         AutomationException
Selects elements returned by the enumerator.

Description

SetSelection selects all elements returned by the passed enumerator.

SetSelection will run through the passed enumerator, leaving the enumerator at the end. To subsequently use the enumerator for something else you must first use IEnumTinElement.Reset otherwise it returns a Null pointer ('Nothing' in VB) for Next and an empty element for QueryNext.

When working with edge selection the software will ensure an edge selected/unselected in one triangle will also select/unselect the corresponding edge in the neighboring triangle. So while there are technically two edges separating adjacent triangles TIN selection handles them logically as one.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
pElements - A reference to a com.esri.arcgis.geodatabase.IEnumTinElement (in)
action - A com.esri.arcgis.geodatabase.esriTinSelectionType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSelection

IEnumTinElement getSelection(int type)
                             throws IOException,
                                    AutomationException
Returns an enumerator containing selected elements.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
type - A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IEnumTinElement
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

selectAll

void selectAll(int type,
               boolean bDataElementsOnly)
               throws IOException,
                      AutomationException
Selects all elements of the specified element type in the TIN.

Description

If bDataElementsOnly is True then the selection bit for non-data elements is left unchanged. Any previously selected non-data elements will remain selected. If you don't like this call ClearSelection before SelectAll.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
type - A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
bDataElementsOnly - The bDataElementsOnly (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

flipSelection

void flipSelection(int type,
                   boolean bDataElementsOnly)
                   throws IOException,
                          AutomationException
Flips current selection of the specified element type in the TIN.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
type - A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
bDataElementsOnly - The bDataElementsOnly (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

selectByArea

void selectByArea(int type,
                  IPolygon pArea,
                  boolean bPassThrough,
                  boolean bDataElementsOnly,
                  int action)
                  throws IOException,
                         AutomationException
Selects all elements of the specified element type in a specified polygonal area.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
type - A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
pArea - A reference to a com.esri.arcgis.geometry.IPolygon (in)
bPassThrough - The bPassThrough (in)
bDataElementsOnly - The bDataElementsOnly (in)
action - A com.esri.arcgis.geodatabase.esriTinSelectionType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

selectByEnvelope

void selectByEnvelope(int type,
                      IEnvelope pEnvelope,
                      boolean bPassThrough,
                      boolean bDataElementsOnly,
                      int action)
                      throws IOException,
                             AutomationException
Selects all elements of the specified element type in a specified rectangular envelope.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
type - A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
pEnvelope - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
bPassThrough - The bPassThrough (in)
bDataElementsOnly - The bDataElementsOnly (in)
action - A com.esri.arcgis.geodatabase.esriTinSelectionType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSelected

void setSelected(int index,
                 int type,
                 int action)
                 throws IOException,
                        AutomationException
Selects the element referenced by the index.

Description

When working with edge selection the software will ensure an edge selected/unselected in one triangle will also select/unselect the corresponding edge in the neighboring triangle. So while there are technically two edges separating adjacent triangles TIN selection handles them logically as one.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
index - The index (in)
type - A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
action - A com.esri.arcgis.geodatabase.esriTinSelectionType constant (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isSelected

boolean isSelected(int index,
                   int type)
                   throws IOException,
                          AutomationException
Returns TRUE if the element referenced by the index is selected.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
index - The index (in)
type - A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
Returns:
The pbIsSelected
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

querySelectionExtent

void querySelectionExtent(int type,
                          IEnvelope pExtent)
                          throws IOException,
                                 AutomationException
Returns the extent of the selected elements.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Parameters:
type - A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
pExtent - A reference to a com.esri.arcgis.geometry.IEnvelope (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSelectedElementCount

int getSelectedElementCount(int type)
                            throws IOException,
                                   AutomationException
The number of selected elements.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Parameters:
type - A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
Returns:
The pCount
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.