Class Kinematics
- Namespace
- DuetAPI.ObjectModel
- Assembly
- DuetAPI.dll
Information about the configured geometry
[JsonDerivedType(typeof(CoreKinematics))]
[JsonDerivedType(typeof(DeltaKinematics))]
[JsonDerivedType(typeof(HangprinterKinematics))]
[JsonDerivedType(typeof(ScaraKinematics))]
[JsonDerivedType(typeof(PolarKinematics))]
public class Kinematics : ModelObject, INotifyPropertyChanging, IDynamicModelObject, IModelObject, ICloneable, INotifyPropertyChanged
- Inheritance
-
Kinematics
- Implements
- Derived
- Inherited Members
Constructors
Kinematics()
public Kinematics()
Properties
Name
Name of the configured kinematics
public KinematicsName Name { get; protected set; }
Property Value
Segmentation
Segmentation parameters or null if not configured
public MoveSegmentation? Segmentation { get; set; }
Property Value
Methods
Assign(IDynamicModelObject)
Assign the properties from another instance. This is required to update model properties which do not have a setter
public virtual IDynamicModelObject? Assign(IDynamicModelObject from)
Parameters
fromIDynamicModelObjectOther instance
Returns
- IDynamicModelObject
Updated instance
Clone()
Clone this instance
public virtual object Clone()
Returns
- object
Cloned instance
Remarks
This method is auto-generated
GeneratedUpdateFromJson(JsonElement, bool)
Update this instance from a given JSON element
public virtual IDynamicModelObject? GeneratedUpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)
Parameters
jsonElementJsonElementElement to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Returns
- IDynamicModelObject
Updated instance
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data
GeneratedUpdateFromJsonReader(ref Utf8JsonReader, bool)
Update this instance from a given JSON element
public virtual IDynamicModelObject? GeneratedUpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)
Parameters
readerUtf8JsonReaderReader to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Returns
- IDynamicModelObject
Updated instance
Remarks
This method is auto-generated
Exceptions
- JsonException
Failed to deserialize data
UpdateFromJson(JsonElement, bool)
Update this instance from a given JSON element
public IDynamicModelObject? UpdateFromJson(JsonElement jsonElement, bool ignoreSbcProperties)
Parameters
jsonElementJsonElementElement to update this intance from
ignoreSbcPropertiesboolWhether SBC properties are ignored
Returns
- IDynamicModelObject
Updated instance
Exceptions
- JsonException
Failed to deserialize data
UpdateFromJsonReader(ref Utf8JsonReader, bool)
Update this instance from a given JSON reader
public IDynamicModelObject? UpdateFromJsonReader(ref Utf8JsonReader reader, bool ignoreSbcProperties)
Parameters
readerUtf8JsonReaderJSON reader
ignoreSbcPropertiesboolWhether SBC properties are ignored
Returns
- IDynamicModelObject
Updated instance
Exceptions
- JsonException
Failed to deserialize data