Class HydroForce
Last update: 16.07.2025Namespace: VM.Managed.DAFUL.Track
Assembly: VMDTrackBase.dll
This class is to represent the hydro force.
public class HydroForce : Entity<propertyhydroforce>, 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, IReferencable, IHydroForce, IHasOtherEntityInSameCategory, 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, IReferencable, IHydroForce, IHasOtherEntityInSameCategory, IReportable
Inherited Members
Entity
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
HydroForce()
Initializes a new instance of the
public HydroForce()
HydroForce(string)
Initializes a new instance of the
public HydroForce(string strName)
Parameters
strName string
Name of the string.
Properties
ActionBodies
Gets or sets the action body data.
public HydroForce.ActionBodyData[] ActionBodies { get; set; }
Property Value
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
Water
Gets or sets the water.
public IWater Water { get; set; }
Property Value
_Water
Gets or sets the water.
public Linker<iwater> _Water { get; set; }
Property Value
LinkerIWater>
Methods
Draw(Canvas)
Draws the icon.
public virtual void Draw(Canvas canvas)
Parameters
canvas Canvas
The canvas has icon information.
GetCenterMarkerFromIConnectable(IConnectable)
Gets center marker from connectable entity
public static IMarker GetCenterMarkerFromIConnectable(IConnectable connectable)
Parameters
connectable IConnectable
The connectable entity
Returns
IMarker
GetMassFromIConnectable(IConnectable)
Gets mass from connectable entity
public static double GetMassFromIConnectable(IConnectable connectable)
Parameters
connectable IConnectable
The connectable entity
Returns
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.
GetPatches(ActionBodyData, ref VectorBase[], ref uint[], ref TMatrix, ref double)
Gets Patches
public void GetPatches(HydroForce.ActionBodyData actionBodyData, ref VectorBase[] arPos, ref uint[] arConnectivity, ref TMatrix matT, ref double dBBVolume)
Parameters
actionBodyData HydroForce.ActionBodyData
The action body data
arPos VectorBase[]
The postition
arConnectivity uint[]
The connectivity
matT TMatrix
The transform matrix
dBBVolume double
The boundary box volume
GetPatches(Document, string, SurfaceType, int, ref VectorBase[], ref uint[], ref TMatrix, ref double, SetProgressDelegate)
Gets Patches
public static void GetPatches(Document document, string strBodyName, HydroForce.ActionBodyData.SurfaceType typeSurface, int nCoarseningFactor, ref VectorBase[] arPos, ref uint[] arConnectivity, ref TMatrix matT, ref double dBBVolume, HydroForce.SetProgressDelegate delegateProgress)
Parameters
document Document
The document
strBodyName string
The body name
typeSurface HydroForce.ActionBodyData.SurfaceType
The surface type
nCoarseningFactor int
The coarsening factor
arPos VectorBase[]
The postition
arConnectivity uint[]
The connectivity
matT TMatrix
The transform matrix
dBBVolume double
The boundary box volume
delegateProgress HydroForce.SetProgressDelegate
The progress delegate
GetVolumeFromIConnectable(IConnectable)
Gets volume from connectable entity
public static double GetVolumeFromIConnectable(IConnectable connectable)
Parameters
connectable IConnectable
The connectable entity
Returns
LinkRequestUpdate(object, LinkEventArgs)
Request for update the linked object.
protected override void LinkRequestUpdate(object objNotifier, LinkEventArgs arg)
Parameters
objNotifier object
The linked object.
arg LinkEventArgs
The
ReDraw()
Redraw.
public virtual void ReDraw()