Class MultiMotionAxesEnumerator
Auxiliary object that implements enumerator for the multimotion's axes list and allows to use foreach syntax.
Inheritance
System.Object
MultiMotionAxesEnumerator
Implements
System.Collections.IEnumerator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SprutTechnology.SCPostprocessor
Assembly: SCPostprocessor.dll
Syntax
public class MultiMotionAxesEnumerator : IEnumerator
Constructors
MultiMotionAxesEnumerator(ICLDMultiAxisArray)
Instantiate a new MultiMotionAxesEnumerator object for the specified multimotion command.
Declaration
public MultiMotionAxesEnumerator(ICLDMultiAxisArray Cmd)
Parameters
Type | Name | Description |
---|---|---|
ICLDMultiAxisArray | Cmd |
Methods
MoveNext()
Makes the next axis in the list current if the end of the list has not yet been reached.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
System.Boolean | Returns "false" if it is impossible to change the current position of the enumerator, since the end of the list has already been reached. |
Reset()
Reset current position of the enumerator to the initial state.
Declaration
public void Reset()
Explicit Interface Implementations
IEnumerator.Current
Returns the current axis of the multimotion's axes enumerator. Throws an InvalidOperationException if the list doesn't contain axes or if the end of the list has already been reached.
Declaration
object IEnumerator.Current { get; }
Returns
Type | Description |
---|---|
System.Object |
Implements
System.Collections.IEnumerator