Class Gravity
Last update: 16.07.2025Namespace: VM.Managed
Assembly: VMObjBase.dll
This class is to represent the gravity.
public class Gravity : Object<objecteventcore>, IObservableObject, IDisposableObject, ILinkable, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IDraw, IDrawIcon, IReferencable, IVisible
Inheritance
object ←
ObservableObject ←
LinkableBase ←
ObjectBase ←
Object
Implements
IObservableObject, IDisposableObject, ILinkable, IObjectBase, IObject, ILinkContainer, IOwned, IHasID, IEventProvider, IHasKeyObject, ILinkContainerEvent, IVerifiable, IHistoryObjectSerializable, IAttributeContainer, IDraw, IDrawIcon, IReferencable, IVisible
Inherited Members
Object
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType),
LinkPropertyItemCache.GetLinkedObjects
Constructors
Gravity()
Initializes a new instance of the
public Gravity()
Gravity(Vector)
Initializes a new instance of the
public Gravity(Vector vecGravity)
Parameters
vecGravity Vector
The vector of gravity x,y,z coordinate.
Properties
Hide
Gets or sets a value indicating whether this instance is hide.
public bool Hide { get; set; }
Property Value
IsVisible
Gets or sets the visible state.
public virtual bool IsVisible { get; set; }
Property Value
Layer
Gets or sets the layer.
public Layer Layer { get; set; }
Property Value
Layer
Vector
Gets or sets the vector of gravity x,y,z coordinate.
public VectorBase Vector { get; set; }
Property Value
VectorBase
X
Gets or sets the X coordinate of gravity.
public double X { get; set; }
Property Value
Y
Gets or sets the Y coordinate of gravity.
public double Y { get; set; }
Property Value
Z
Gets or sets the Z coordinate of gravity.
public double Z { get; set; }
Property Value
Methods
Draw(Canvas)
Draws the icon.
public virtual void Draw(Canvas canvas)
Parameters
canvas Canvas
The canvas has icon information.
ReDraw()
Redraw.
public virtual void ReDraw()