Class Profile
Profile data from a scan head.
Inheritance
Namespace: JoeScan.Pinchot
Assembly: JoeScan.Pinchot.dll
Syntax
public class Profile : ICloneable
Remarks
The Profile class provides properties and methods for accessing the information contained in a profile received from a scan head. The properties include the raw Point2D data, timestamp, encoder values, and other properties. Methods for retrieving only valid Point2D data are also provided.
Properties
Camera
Declaration
public Camera Camera { get; }
Property Value
Type | Description |
---|---|
Camera |
DataFormat
Gets the DataFormat of the Profile.
Declaration
public DataFormat DataFormat { get; }
Property Value
Type | Description |
---|---|
DataFormat | The DataFormat of the Profile. |
EncoderValues
Gets the encoder positions when the Profile was generated.
Declaration
public IDictionary<Encoder, long> EncoderValues { get; }
Property Value
Type | Description |
---|---|
IDictionary<Encoder, System.Int64> | A |
Laser
Declaration
public Laser Laser { get; }
Property Value
Type | Description |
---|---|
Laser |
LaserOnTime
Gets the laser on time in microseconds used to generate the Profile.
Declaration
public double LaserOnTime { get; }
Property Value
Type | Description |
---|---|
System.Double | The laser on time in microseconds used to generate the Profile. |
RawPoints
Declaration
public Span<Point2D> RawPoints { get; }
Property Value
Type | Description |
---|---|
Span<Point2D> |
ScanHeadID
Declaration
public uint ScanHeadID { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Timestamp
Gets the time of the scan head in nanoseconds when the Profile was generated.
Declaration
public long Timestamp { get; }
Property Value
Type | Description |
---|---|
System.Int64 | The time of the scan head in nanoseconds when the Profile was generated. |
ValidPointCount
Declaration
public int ValidPointCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Clone()
Profile implements
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A shallow copy of the Profile object. |
GetValidXYPoints()
Declaration
public IEnumerable<Point2D> GetValidXYPoints()
Returns
Type | Description |
---|---|
IEnumerable<Point2D> |
GetValidXYPoints(Span<Point2D>)
Declaration
public void GetValidXYPoints(Span<Point2D> validPoints)
Parameters
Type | Name | Description |
---|---|---|
Span<Point2D> | validPoints | A |