This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Class to describe a position object, that is a point in R^3, with reference information added.
More...
|
| double | CalculateDistance (Position pos) |
| | Calculates the absolute value of the distance from this position to another position.
|
| |
| override object | Clone () |
| | Clones the current object.
|
| |
| override bool | Equals (object obj, EqualityIntent equalityIntent) |
| | Method which checks for equal objects.
|
| |
| void | OnPositionChanged (Vector3D oldPos, Vector3D newPos, bool refChanged) |
| | Event throwing method.
|
| |
|
| Position () |
| | Default constructor, creating an absolute position of (0, 0, 0)
|
| |
| | Position (double x, double y, double z, IProvidesPositioningReferences positioningReferenceProvider, string positioningReferenceKey) |
| | Constructor to fill parameters.
|
| |
| | Position (IProvidesPositioningReferences positioningReferenceProvider, string positioningReferenceKey) |
| | Constructor that creates a position in the origin of a given reference coordinate system.
|
| |
| | Position (Position pos) |
| | Copy constructor.
|
| |
| | Position (Vector3D coordinates, IProvidesPositioningReferences positioningReferenceProvider, string positioningReferenceKey) |
| | Constructor to fill parameters.
|
| |
| void | PositionChangedEventHandler (Position sender, PositionChangedEventArgs e) |
| | Event handler for position changed events.
|
| |
| void | SetPositioningReference (IProvidesPositioningReferences referenceProvider, string key) |
| | Method to set the PositioningReferenceProvider and the key for the coordinate system that serves as positioning reference.
|
| |
| override string | ToString () |
| | Gives the coordinates of this position as String.
|
| |
|
|
Vector3D | Coordinates [get, set] |
| | public property to get and set the PositionVector of the Position object
|
| |
|
List< object > | GetAllPositionChangedEventTargets [get] |
| | Auxiliary method for finding all targets for the invocation of this element's PositionChanged event.
|
| |
|
CartesianCoordinateSystem | GetPositioningReference [get] |
| | Property to get the coordinate system that serves as reference for this object.
|
| |
|
bool | IsAbsolutePosition [get] |
| | get a flag, indicating whether the position is relative (FALSE) or absolute (TRUE)
|
| |
| bool | IsUndefined [get] |
| | Gets whether the position is undefined.
|
| |
|
string | PositioningReferenceKey [get, set] |
| | Get or set the key for the coordinate system (contained by PositioningReferenceProvider) which shall serve as reference for this position.
|
| |
|
IProvidesPositioningReferences | PositioningReferenceProvider [get] |
| | Gets the object which provides the coordinate system that serves as reference for this position. It is to be set via the method SetPositioningReference().
|
| |
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
Class to describe a position object, that is a point in R^3, with reference information added.
◆ Position() [1/4]
Constructor that creates a position in the origin of a given reference coordinate system.
- Parameters
-
| positioningReferenceProvider | The object which provides the coordinate system that serves as reference for this position. |
| positioningReferenceKey | Key for the coordinate system (contained by PositioningReferenceProvider) which shall serve as reference for this position. |
◆ Position() [2/4]
Copy constructor.
- Parameters
-
◆ Position() [3/4]
Constructor to fill parameters.
- Parameters
-
| coordinates | Coordinates of position. |
| positioningReferenceProvider | The object which provides the coordinate system that serves as reference for this position. |
| positioningReferenceKey | Key for the coordinate system (contained by PositioningReferenceProvider) which shall serve as reference for this position. |
◆ Position() [4/4]
Constructor to fill parameters.
- Parameters
-
| x | x-coordinate |
| y | y-coordinate |
| z | z-coordinate |
| positioningReferenceProvider | The object which provides the coordinate system that serves as reference for this position. |
| positioningReferenceKey | Key for the coordinate system (contained by PositioningReferenceProvider) which shall serve as reference for this position. |
◆ CalculateDistance()
| double CalculateDistance |
( |
Position |
pos | ) |
|
Calculates the absolute value of the distance from this position to another position.
- Parameters
-
| pos | Position to calculate the distance to |
- Returns
- Distance to pos
◆ Clone()
| override object Clone |
( |
| ) |
|
Clones the current object.
- Returns
- Deep copy of this object.
◆ Equals()
| override bool Equals |
( |
object |
obj, |
|
|
EqualityIntent |
equalityIntent |
|
) |
| |
Method which checks for equal objects.
- Parameters
-
| obj | Object to compare with this. |
| equalityIntent | Defines what kind of equality you want to check when comparing two objects, for example all values or physical equality. |
- Returns
true if obj and this are equal.
◆ OnPositionChanged()
Event throwing method.
- Parameters
-
| oldPos | position before the change |
| newPos | position after the change |
| refChanged | a flag, indicating whether or not the reference coordinate system is changed |
◆ operator!=()
Overloaded unequality operator.
- Parameters
-
| pos1 | First Position to compare |
| pos2 | Second Position to compare |
- Returns
- Are both positions unequal?
◆ operator==()
Overloaded equality operator.
- Parameters
-
| pos1 | First Position to compare |
| pos2 | Second Position to compare |
- Returns
- Are both positions equal?
◆ PositionChangedEventHandler()
| void PositionChangedEventHandler |
( |
Position |
sender, |
|
|
PositionChangedEventArgs |
e |
|
) |
| |
Event handler for position changed events.
- Parameters
-
◆ SetPositioningReference()
Method to set the PositioningReferenceProvider and the key for the coordinate system that serves as positioning reference.
- Parameters
-
| referenceProvider | Object which provides the coordinate system that serves as reference for this position. |
| key | Key for the coordinate system (contained by PositioningReferenceProvider) which shall serve as reference for this position |
◆ ToString()
| override string ToString |
( |
| ) |
|
Gives the coordinates of this position as String.
- Returns
◆ IsUndefined
Gets whether the position is undefined.
- Returns
true iff the Coordinates member is undefined.