Class CsvNcStep
Represents a numerical control step loaded from a CSV file, with support for interpolation and arithmetic operations.
public class CsvNcStep : IGetFileLineIndex, IAdditionOperators<CsvNcStep, CsvNcStep, CsvNcStep>, IMultiplyOperators<CsvNcStep, double, CsvNcStep>
- Inheritance
-
CsvNcStep
- Implements
- Inherited Members
- Extension Methods
Constructors
CsvNcStep(FileLineIndex, TimeSpan, DVec3d, List<double>)
Initializes a new instance of the CsvNcStep class with the specified parameters.
public CsvNcStep(FileLineIndex fileLineIndex, TimeSpan time, DVec3d mcXyzabc, List<double> doubleFlexList)
Parameters
fileLineIndex
FileLineIndexThe file and line index information.
time
TimeSpanThe time value for this step.
mcXyzabc
DVec3dThe machine coordinates for this step.
doubleFlexList
List<double>The list of additional double values.
Properties
DoubleFlexList
Gets or sets the list of additional double values associated with this step.
public List<double> DoubleFlexList { get; set; }
Property Value
FileLineIndex
Gets or sets the file and line index information.
public FileLineIndex FileLineIndex { get; set; }
Property Value
FileNoTitle
Gets or sets the column title for file number in the CSV.
public static string FileNoTitle { get; set; }
Property Value
LineNoTitle
Gets or sets the column title for line number in the CSV.
public static string LineNoTitle { get; set; }
Property Value
McTitle
Gets or sets the column title for machine coordinates in the CSV.
public static string McTitle { get; set; }
Property Value
McXyzabc
Gets the machine coordinates (XYZ and ABC) for this step.
public DVec3d McXyzabc { get; }
Property Value
Time
Gets or sets the time value for this step.
public TimeSpan Time { get; set; }
Property Value
TimeTagTitle
Gets or sets the column title for time in the CSV.
public static string TimeTagTitle { get; set; }
Property Value
Methods
BuildByFile(ClStrip, string, string, IMessageHost, StepInterpoationMode)
Builds a collection of CsvNcStep instances from a CSV file.
public static void BuildByFile(ClStrip clStrip, string baseDirectory, string relPath, IMessageHost messageHost, CsvNcStep.StepInterpoationMode stepInterpoationMode)
Parameters
clStrip
ClStripThe cutter location strip to populate.
baseDirectory
stringThe base directory for the file path.
relPath
stringThe relative path to the CSV file.
messageHost
IMessageHostThe message host for logging.
stepInterpoationMode
CsvNcStep.StepInterpoationModeThe interpolation mode to use.
GetFileLineIndex()
Get FileLineIndex.
public FileLineIndex GetFileLineIndex()
Returns
Operators
operator +(CsvNcStep, CsvNcStep)
Adds two CsvNcStep instances together.
public static CsvNcStep operator +(CsvNcStep left, CsvNcStep right)
Parameters
Returns
- CsvNcStep
A new CsvNcStep instance with values that are the sum of the two input instances.
operator *(CsvNcStep, double)
Multiplies a CsvNcStep instance by a scalar value.
public static CsvNcStep operator *(CsvNcStep src, double scale)
Parameters
Returns
- CsvNcStep
A new CsvNcStep instance with values scaled by the specified factor.