Class ActClLinear
Represents a linear cutter location movement action.
public class ActClLinear : IActClMove, IActDuration, IAct
- Inheritance
-
ActClLinear
- Implements
- Inherited Members
- Extension Methods
Constructors
ActClLinear(ClLinear, TimeSpan?)
Initializes a new instance of the ActClLinear class with the specified path.
public ActClLinear(ClLinear path, TimeSpan? duration = null)
Parameters
pathClLinearThe linear cutter location path.
durationTimeSpan?Optional total duration of the linear action.
ActClLinear(dvec3d_t, dvec3d_t, TimeSpan?)
Initializes a new instance of the ActClLinear class with begin and end cutter locations.
public ActClLinear(dvec3d_t beginCl, dvec3d_t endCl, TimeSpan? duration = null)
Parameters
beginCldvec3d_tThe begin cutter location.
endCldvec3d_tThe end cutter location.
durationTimeSpan?Optional total duration of the linear action.
Properties
ActDuration
Gets or sets the duration of the action.
public TimeSpan ActDuration { get; set; }
Property Value
Remarks
The duration represents:
- The time required to complete the action
- Should be positive and finite
- Zero duration indicates an instantaneous action
- Used for scheduling and timing calculations
ClLinear
Gets or sets the linear cutter location path.
public ClLinear ClLinear { get; set; }
Property Value
Methods
GetClPath()
Retrieves the cutter location path.
public IClPath GetClPath()
Returns
- IClPath
The cutter location path.
GetClSteps(IMachiningMotionResolution)
Gets a sequence of steps split from this movement under the specified NC resolution.
public IEnumerable<ActClStep> GetClSteps(IMachiningMotionResolution ncResolution)
Parameters
ncResolutionIMachiningMotionResolutionThe machining motion resolution.
Returns
- IEnumerable<ActClStep>
A sequence of ActClStep.
Remarks
Lazy since play-core migration P11: the step count is computed at the first MoveNext (and
again on each enumeration) where the earlier enumerator computed it in this call, so an argument that cannot
be read throws there; the steps come from core.dll when the resolution is exactly one of the three resolution
classes (a derived class or a decorator takes the managed enumerator), from the managed enumerator otherwise,
bit for bit the same.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.