Class LeafSpring
Last update: 16.07.2025Namespace: VM.Models.Pre.Force
Assembly: VM.Models.Pre.Force.dll
This class is to represent the Leaf Spring.
public class LeafSpring : Entity<propertyleafspring>, IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IContainer, IEntity, IEntityBase, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, IVisible, IDocumentOwner, INamed, INavigatorItem, IVisible, IMultiChangable, IHasProperty, IGroup, IDraw, IDrawIcon
Inheritance
object ←
ObservableObject ←
LinkableBase ←
ObjectBase ←
Object
Implements
IObservableObject, IDisposableObject, ILinkable, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IContainer, IEntity, IEntityBase, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, IHasName, IEnabled, IHasComment, IVisible, IDocumentOwner, INamed, INavigatorItem, IVisible, IMultiChangable, IHasProperty, IGroup, IDraw, IDrawIcon
Inherited Members
Entity
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
LeafSpring()
Initializes a new instance of the
public LeafSpring()
LeafSpring(string)
Initializes a new instance of the
public LeafSpring(string name)
Parameters
name string
Name of the
Fields
ActionMarkerName
Gets the action marker name.
public const string ActionMarkerName = "ActionMarker"
Field Value
AxleToCenterBoltName
Gets the axle to center bolt constraint name.
public const string AxleToCenterBoltName = "AxleToCenterBolt"
Field Value
BaseMarkerName
Gets the base marker name.
public const string BaseMarkerName = "BaseMarker"
Field Value
CenterBoltName
Gets the center bolt name.
public const string CenterBoltName = "CenterBolt"
Field Value
ClipNamePrefix
Gets the clip name prefix.
public const string ClipNamePrefix = "Clip"
Field Value
FrontEyeName
Gets the front eye name.
public const string FrontEyeName = "FrontEye"
Field Value
FrontEyeToBeamFixedName
Gets the front eye to beam fixed name.
public const string FrontEyeToBeamFixedName = "FrontEyeToBeamFixed"
Field Value
GroundToEyeName
Gets the ground to eye constraint name.
public const string GroundToEyeName = "GroundToEye"
Field Value
GroundToShackleName
Gets the ground to shackle constraint name.
public const string GroundToShackleName = "GroundToShackle"
Field Value
LeafNamePrefix
Gets the leaf name prefix.
public const string LeafNamePrefix = "Leaf"
Field Value
LeafToClipFunctionName
Gets the leaf to clip function name.
public const string LeafToClipFunctionName = "LeafToClip"
Field Value
LeafToLeafFunctionName
Gets the leaf to leaf function name.
public const string LeafToLeafFunctionName = "LeafToLeaf"
Field Value
RearEyeName
Gets the rear eye name.
public const string RearEyeName = "RearEye"
Field Value
RearEyeToBeamFixedName
Gets the rear eye to beam fixed name.
public const string RearEyeToBeamFixedName = "RearEyeToBeamFixed"
Field Value
ShackleName
Gets the front shackle name.
public const string ShackleName = "Shackle"
Field Value
ShackleToEyeName
Gets the shackle to eye constraint name.
public const string ShackleToEyeName = "ShackleToEye"
Field Value
Properties
Assembly
Gets or sets the assembly.
public Assembly Assembly { get; set; }
Property Value
Axle
Gets or sets the axle.
public IConnectable Axle { get; set; }
Property Value
IConnectable
EyePosition
Gets or sets the eye position.
public PointBase EyePosition { get; set; }
Property Value
PointBase
FrontFrame
Gets or sets the front frame.
public IConnectable FrontFrame { get; set; }
Property Value
IConnectable
HasLayerExplicitly
Gets a value indicating whether object has a layer explicitly.
protected override bool HasLayerExplicitly { get; }
Property Value
Hide
Gets or sets the hide.
public bool Hide { get; set; }
Property Value
LinkAxle
Gets or sets the axle.
public Linker<iconnectable> LinkAxle { get; set; }
Property Value
Linker
LinkFrontFrame
Gets or sets the front frame.
public Linker<iconnectable> LinkFrontFrame { get; set; }
Property Value
Linker
LinkRearFrame
Gets or sets the rear frame.
public Linker<iconnectable> LinkRearFrame { get; set; }
Property Value
Linker
RearFrame
Gets or sets the rear frame.
public IConnectable RearFrame { get; set; }
Property Value
IConnectable
ReferenceFrame
Gets or sets the reference frame.
public TransformBase ReferenceFrame { get; set; }
Property Value
TransformBase
ShacklePosition
Gets or sets the shackle position.
public PointBase ShacklePosition { get; set; }
Property Value
PointBase
Methods
Draw(Canvas)
draw
public void Draw(Canvas canvas)
Parameters
canvas Canvas
The canvas.
FixUp(ObjectBase)
Before destroy the old object, perform a work.
public override bool FixUp(ObjectBase ob)
Parameters
ob ObjectBase
The old object.
Returns
true if success; otherwise, false.
GetCenterBoltToLeafName(int, int)
Gets the center bolt to leaf constraint name.
public static string GetCenterBoltToLeafName(int leafIndex, int index)
Parameters
leafIndex int
The leaf index.
index int
The constraint index.
Returns
The center bolt to leaf constraint name.
GetClipName(int)
Gets the clip name.
public static string GetClipName(int index)
Parameters
index int
The clip index.
Returns
The clip name.
GetClipToLeafBushName(int, int)
Gets the clip to leaf bush name.
public static string GetClipToLeafBushName(int clipIndex, int leafIndex)
Parameters
clipIndex int
The clip index.
leafIndex int
The leaf index.
Returns
The clip to leaf bush name.
GetClipToLeafFixedName(int)
Gets the clip to leaf fixed name.
public static string GetClipToLeafFixedName(int index)
Parameters
index int
The clip index.
Returns
The clip to leaf fixed name.
GetClipToLeafVectorForceName(int, int)
Gets the clip to leaf vector force name.
public static string GetClipToLeafVectorForceName(int clipIndex, int leafIndex)
Parameters
clipIndex int
The clip index.
leafIndex int
The leaf index.
Returns
The clip to leaf vector force name.
GetClipUpperMarkerName(int)
Gets the clip upper marker name.
public static string GetClipUpperMarkerName(int index)
Parameters
index int
The clip index.
Returns
The clip upper marker name.
GetLeafName(int)
Gets the leaf name.
public static string GetLeafName(int index)
Parameters
index int
The leaf index.
Returns
The leaf name.
GetLeafToLeafBushName(int, int, int, int)
Gets the leaf to leaf bush name.
public static string GetLeafToLeafBushName(int baseLeafIndex, int baseBodyIndex, int actionLeafIndex, int actionBodyIndex)
Parameters
baseLeafIndex int
The base leaf index.
baseBodyIndex int
The base body index.
actionLeafIndex int
The action leaf index.
actionBodyIndex int
The action body index.
Returns
The leaf to leaf bush name.
GetLeafToLeafVectorForceName(int, int, int, int)
Gets the leaf to leaf vector force name.
public static string GetLeafToLeafVectorForceName(int baseLeafIndex, int baseBodyIndex, int actionLeafIndex, int actionBodyIndex)
Parameters
baseLeafIndex int
The base leaf index.
baseBodyIndex int
The base body index.
actionLeafIndex int
The action leaf index.
actionBodyIndex int
The action body index.
Returns
The leaf to leaf vector force name.
GetRepositionMatrix()
Gets the reposition matrix.
public TMatrix? GetRepositionMatrix()
Returns
TMatrix?
The reposition matrix.
PostAddToDocument()
public override void PostAddToDocument()
RaisePropertyChanged(string)
public override void RaisePropertyChanged(string propertyName)
Parameters
propertyName string
ReDraw()
Redraw
public virtual void ReDraw()
ReDrawForHistory()
Redraw for undo/redo
public void ReDrawForHistory()