Provides access to members that allow simple manipulations of Zs at the segment level.
Description
Allows the Z attributes of the Segment endpoints to be set and returned. Segment attribute awareness is dependent upon the awareness of the higher level collection to which the segment belongs. These methods can be used regardless of the segment's awareness.
Members
Name | Description | |
---|---|---|
GetZs | Get the Zs on the segment's endpoints. | |
SetZs | Set the Zs on the segment's endpoints. |
ISegmentZ.GetZs Method
Get the Zs on the segment's endpoints.
Public Sub GetZs ( _
ByRef fromZ As Double, _
ByRef toZ As Double _
)
public void GetZs (
ref double fromZ,
ref double toZ
);
Description
Returns the Z attributes held by the From and To point of the segment.
public static void GetZs()
{
IGeometry geometry = GetLineGeometry();
ISegmentZ segmentZ = geometry as ISegmentZ;
double fromZ;
double toZ;
segmentZ.GetZs(out fromZ, out toZ);
//fromZ = 0.224
//toZ = 8.29
}
ISegmentZ.SetZs Method
Set the Zs on the segment's endpoints.
Public Sub SetZs ( _
ByVal fromZ As Double, _
ByVal toZ As Double _
)
public void SetZs (
double fromZ,
double toZ
);
Description
Sets the Z attributes for the From and To points of the segment. These attributes can be set regardless of the attribute awareness of the segment.
public static void SetZs()
{
const double FromZ = 5;
const double ToZ = 5;
IGeometry geometry = GetLineGeometry();
ISegmentZ segmentZ = geometry as ISegmentZ;
segmentZ.SetZs(FromZ, ToZ);
}
Classes that implement ISegmentZ
Classes | Description |
---|---|
BezierCurve | A cubic Bezier curve defined between two points; optionally has measure, height and ID attributes at each endpoint. |
CircularArc | A portion of a circle that connects two points optionally has measure, height and ID attributes at each endpoint. |
EllipticArc | A portion of the boundary of a 2D ellipse that connects two points; optionally has measure, height and ID attributes at each endpoint. |
Line | A 2D straight line between a pair of 2D endpoints; can optionally have height, measure and ID attributes at each endpoint. |