Class MTL
Last update: 16.07.2025Namespace: VM.Managed.DAFUL.Track
Assembly: VMDTrackBase.dll
This class is to represent the massless track link
public class MTL : Entity<propertymtl>, 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, IPostDeserialized, IReportable
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, IPostDeserialized, IReportable
Inherited Members
Entity
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
MTL()
Initializes a new instance of the
public MTL()
MTL(string)
Initializes a new instance of the
public MTL(string strName)
Parameters
strName string
Name of the string.
Properties
BaseGeometry
Gets or sets the base geometry.
public IContactableRigid3D BaseGeometry { get; set; }
Property Value
IContactableRigid3D
BeamGroupData
Gets or sets the beam group.
public BeamGroup[] BeamGroupData { get; set; }
Property Value
BeamGroup[]
Exceptions
Beam group is null.
HasLayerExplicitly
Gets a value indicating whether object has a layer explicitly.
protected override bool HasLayerExplicitly { get; }
Property Value
Hide
Gets or sets a value indicating whether this instance is hide.
public bool Hide { get; set; }
Property Value
HullMarker
Gets or sets the hull marker.
public IMarker HullMarker { get; set; }
Property Value
IMarker
NumberOfContactPointForLength
Gets or sets the number of contact point for length.
public ExpressionValueVariable NumberOfContactPointForLength { get; set; }
Property Value
ExpressionValueVariable
Exceptions
Number of contact point for length is null.
NumberOfContactPointForWidth
Gets or sets the number of contact point for width.
public ExpressionValueVariable NumberOfContactPointForWidth { get; set; }
Property Value
ExpressionValueVariable
Exceptions
Number of contact point for width is null.
PathDataSet
Gets or sets the path data.
public MTL.PathData[] PathDataSet { get; set; }
Property Value
SolidBodies
Gets or sets the solid bodies.
public SolidBody[] SolidBodies { get; set; }
Property Value
SolidBody[]
Thickness
Gets or sets the thickness.
public ExpressionValueVariable Thickness { get; set; }
Property Value
ExpressionValueVariable
Exceptions
Thickness is null.
VerticalDirection
Gets or sets the Vertical Direction.
public DirectionBase VerticalDirection { get; set; }
Property Value
DirectionBase
Width
Gets or sets the width.
public ExpressionValueVariable Width { get; set; }
Property Value
ExpressionValueVariable
Exceptions
Width is null.
_BaseGeometry
Gets or sets the base geometry.
public Linker<icontactablerigid3d> _BaseGeometry { get; set; }
Property Value
Linker
_HullMarker
Gets or sets the hull marker.
public Linker<imarker> _HullMarker { get; set; }
Property Value
Linker
Methods
Draw(Canvas)
Draws the icon.
public virtual void Draw(Canvas canvas)
Parameters
canvas Canvas
The canvas has icon information.
FindLocal(string)
Finds an object that matches a specified name in local.
public override IObjectBase FindLocal(string strName)
Parameters
strName string
Name to search for.
Returns
IObjectBase
An object that matches a specified name.
GetBeamGroupXml(PathData[], BeamGroup[], VectorBase, double, double, ref string, ref string)
Gets beam group xml
public static void GetBeamGroupXml(MTL.PathData[] arPathData, BeamGroup[] arBeamGroup, VectorBase vecDirY, double dWidth, double dThickness, ref string strBeamGroup, ref string strSolidBodies)
Parameters
The path data array
arBeamGroup BeamGroup[]
The beamgroup
vecDirY VectorBase
The y direction
dWidth double
The width
dThickness double
The thickness
strBeamGroup string
The beamgroup xml
strSolidBodies string
The solid bodies xml
GetModelNavigatorInformationImpl(XmlDocument, XmlElement, bool)
Gets the object information for model navigator [implementation].
protected override bool GetModelNavigatorInformationImpl(XmlDocument xmlDom, XmlElement xmlEle, bool bHasChild)
Parameters
xmlDom XmlDocument
The XmlDocument for object.
xmlEle XmlElement
The XmlElement for object.
bHasChild bool
if set to true [has child].
Returns
true if success; otherwise, false.
GetTangentPointOfPath(PathData[], DirectionExpression, double)
Gets tangent point of path
public static List<vectorbase> GetTangentPointOfPath(MTL.PathData[] arPathData, DirectionExpression dirY, double dThickness)
Parameters
The path data array
dirY DirectionExpression
The y direction
dThickness double
The thickness
Returns
GetUnnamedObjectName(object)
Gets the name of the unnamed object.
public override string GetUnnamedObjectName(object obUnnamed)
Parameters
obUnnamed object
The ob unnamed.
Returns
Initialize(ConvertFactor)
Initializes member through unit convert factor.
public override void Initialize(Unit.ConvertFactor factor)
Parameters
factor Unit.ConvertFactor
The unit convert factor.
OnLinkReserved(ILink, object, EventArgs)
protected override void OnLinkReserved(ILink reserved, object objNotifier, EventArgs args)
Parameters
reserved ILink
objNotifier object
args EventArgs
ReDraw()
Redraw.
public virtual void ReDraw()