This document is archived and information here might be outdated.  Recommended version.


ITinFeatureEdit.CanRotate Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

ITinFeatureEdit.CanRotate Method

Checks if the embedded polyline/polygon can be rotated without creating spatial conflict. pOrigin can be NULL or Nothing.

[Visual Basic .NET]
Public Function CanRotate ( _
    ByVal pSeed As ITinFeatureSeed, _
    ByVal pOrigin As IPoint, _
    ByVal Angle As Double, _
    ByVal spacing As Double _
) As Boolean
[C#]
public bool CanRotate (
    ITinFeatureSeed pSeed,
    IPoint pOrigin,
    double Angle,
    double spacing
);
[C++]
HRESULT CanRotate(
  ITinFeatureSeed* pSeed,
  IPoint* pOrigin,
  double Angle,
  double spacing,
  VARIANT_BOOL* pbCanRotate
);
[C++]

Parameters pSeed [in]
pSeed is a parameter of type ITinFeatureSeed pOrigin [in]
pOrigin is a parameter of type IPoint Angle [in] Angle is a parameter of type double spacing [in] spacing is a parameter of type double pbCanRotate [out, retval] pbCanRotate is a parameter of type VARIANT_BOOL

Product Availability

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

Description

Determines if the TIN feature can be rotated without creating a conflict.

The TIN feature is defined by the passed seed . If the seed is a triangle the feature is a polygon whose area is represented by the set of contiguous triangles with the same tag value. If the seed is an edge the feature is a polyline comprised of all unambiguously connected edges with the same tag value or edge type. The ITinFeatureSeed.UseTagValue property is used to determine whether the edge seed is defined by its tag or edge type.

The TIN feature is rotated relative to the specified origin point.

The rotation angle is given in degrees. Positive values rotate clockwise, negative values counter-clockwise.

A conflict results if any TIN features are within the specified spacing of the proposed geometry. This includes distance to feature edges as well as nodes.

The ITinFeatureEdit.ElementsIgnoredInConflictTest setting determines what, if any, TIN elements are excluded from the conflict test.

See Also

ITinFeatureEdit Interface