Class SegmentProfile
Represents the segment values along a line segment.
Inheritance
System.Object
SegmentProfile
Implements
System.Collections.Generic.IEnumerable<SegmentProfilePoint>
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: VMS.TPS.Common.Model.Types
Assembly: VMS.TPS.Common.Model.Types.dll
Syntax
public class SegmentProfile : IEnumerable<SegmentProfilePoint>, IEnumerable
Constructors
SegmentProfile(VVector, VVector, BitArray)
Constructs a SegmentProfile.
Declaration
public SegmentProfile(VVector origin, VVector step, BitArray data)
Parameters
Type | Name | Description |
---|---|---|
VVector | origin | Origin, i.e. position of first point of the profile. |
VVector | step | Step length and direction between points on the profile. |
System.Collections.BitArray | data | Array of values of the profile. |
Properties
Count
The number of points in the profile.
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
EdgeCoordinates
Returns the coordinates of the edges of the segment along the segment profile.
Declaration
public IList<VVector> EdgeCoordinates { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<VVector> |
Item[Int32]
Gets a specified point from the profile.
Declaration
public SegmentProfilePoint this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Zero based index of the point to retrieve. |
Property Value
Type | Description |
---|---|
SegmentProfilePoint | Point at the given index. |
Methods
GetEnumerator()
An enumerator for points in the profile.
Declaration
public IEnumerator<SegmentProfilePoint> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<SegmentProfilePoint> | Enumerator for points in the profile. |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
A non-generic version of the enumerator for points in the profile.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator | Enumerator for points in the profile. |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable