Class NcRotation
Represents a rotational transformer for NC machine tool axes. Provides functionality for rotational motion with stroke and speed limits.
public class NcRotation : DynamicRotation, IGetInverseTransformer, INcTransformer, IDynamicRegular, IDynamicTransformer, ITransformer, IMakeXmlSource, INcStroke
- Inheritance
-
NcRotation
- Implements
- Inherited Members
- Extension Methods
Constructors
NcRotation()
Initializes a new instance of the NcRotation class.
public NcRotation()
NcRotation(Vec3d, double)
Initializes a new instance of the NcRotation class with the specified axis and angle.
public NcRotation(Vec3d axis, double angle_rad = 0)
Parameters
NcRotation(Vec3d, double, Vec3d)
Initializes a new instance of the NcRotation class with the specified axis, angle and pivot point.
public NcRotation(Vec3d axis, double angle_rad, Vec3d pivot)
Parameters
axis
Vec3dThe rotation axis vector.
angle_rad
doubleThe rotation angle in radians.
pivot
Vec3dThe pivot point for rotation.
NcRotation(XElement)
Initializes a new instance of the NcRotation class from XML.
public NcRotation(XElement src)
Parameters
src
XElementThe XML source element.
Properties
KeyCode
Gets or sets the key code of the motion axis.
public string KeyCode { get; set; }
Property Value
SpeedLimit_radds
Gets or sets the speed limit in radians per second.
public double SpeedLimit_radds { get; set; }
Property Value
SpeedLimit_rpm
Gets or sets the speed limit in revolutions per minute.
public double SpeedLimit_rpm { get; set; }
Property Value
StrokeMax_deg
Gets or sets the maximum stroke angle in degrees.
public double StrokeMax_deg { get; set; }
Property Value
StrokeMax_rad
Gets or sets the maximum stroke angle in radians.
public double StrokeMax_rad { get; set; }
Property Value
StrokeMin_deg
Gets or sets the minimum stroke angle in degrees.
public double StrokeMin_deg { get; set; }
Property Value
StrokeMin_rad
Gets or sets the minimum stroke angle in radians.
public double StrokeMin_rad { get; set; }
Property Value
XName
Gets the XML element name for serialization.
public static string XName { get; }
Property Value
Methods
Clone()
Clones this instance.
public override ITransformer Clone()
Returns
- ITransformer
clone
GetKeyCode()
Get key code of the motion axis.
public string GetKeyCode()
Returns
GetSpeedLimit()
Get speed limit.
public double GetSpeedLimit()
Returns
Remarks
Gets the speed limit in radians per second.
GetStrokeMax()
Get positivest stroke.
public double GetStrokeMax()
Returns
Remarks
Gets the maximum stroke angle in radians.
GetStrokeMin()
Get negativest stroke.
public double GetStrokeMin()
Returns
Remarks
Gets the minimum stroke angle in radians.
MakeXmlSource(string, string)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public override XElement MakeXmlSource(string baseDirectory, string relFile)
Parameters
baseDirectory
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
Returns
- XElement
An XML element representing the object's state