|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITinSelection
Provides access to members that control TIN selction methods.
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 |
---|
boolean hasSelection(int type) throws IOException, AutomationException
type
- A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void clearSelection(int type) throws IOException, AutomationException
type
- A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSelection(IEnumTinElement pElements, int action) throws IOException, AutomationException
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.
pElements
- A reference to a com.esri.arcgis.geodatabase.IEnumTinElement (in)action
- A com.esri.arcgis.geodatabase.esriTinSelectionType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumTinElement getSelection(int type) throws IOException, AutomationException
type
- A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void selectAll(int type, boolean bDataElementsOnly) throws IOException, AutomationException
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.
type
- A com.esri.arcgis.geodatabase.esriTinElementType constant (in)bDataElementsOnly
- The bDataElementsOnly (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void flipSelection(int type, boolean bDataElementsOnly) throws IOException, AutomationException
type
- A com.esri.arcgis.geodatabase.esriTinElementType constant (in)bDataElementsOnly
- The bDataElementsOnly (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void selectByArea(int type, IPolygon pArea, boolean bPassThrough, boolean bDataElementsOnly, int action) throws IOException, AutomationException
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void selectByEnvelope(int type, IEnvelope pEnvelope, boolean bPassThrough, boolean bDataElementsOnly, int action) throws IOException, AutomationException
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)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSelected(int index, int type, int action) throws IOException, AutomationException
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.
index
- The index (in)type
- A com.esri.arcgis.geodatabase.esriTinElementType constant (in)action
- A com.esri.arcgis.geodatabase.esriTinSelectionType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isSelected(int index, int type) throws IOException, AutomationException
index
- The index (in)type
- A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void querySelectionExtent(int type, IEnvelope pExtent) throws IOException, AutomationException
type
- A com.esri.arcgis.geodatabase.esriTinElementType constant (in)pExtent
- A reference to a com.esri.arcgis.geometry.IEnvelope (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getSelectedElementCount(int type) throws IOException, AutomationException
type
- A com.esri.arcgis.geodatabase.esriTinElementType constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |