Where one component (x, y or z) of a point is taken from, as OpenFrames'
Trajectory::DataSource: src is a SOURCE_* constant; for SOURCE_POSOPT,
element (1 to dof) of the position (opt = 0) or of optional opt;
for SOURCE_ATTITUDE, element (1 to 4) of the quaternion. The value is
multiplied by scale.
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | element | = | 1 |
element (1 to dof, or 1 to 4 for SOURCE_ATTITUDE) |
|
| integer, | public | :: | opt | = | 0 |
(0: the position, k: optional k (SOURCE_POSOPT)) |
|
| real(kind=wp), | public | :: | scale | = | 1.0_wp |
factor the value is multiplied by |
|
| integer, | public | :: | src | = | SOURCE_ZERO |
where the component comes from: a SOURCE_* constant |
The DataSource constructor: DataSource(...) makes one (see new_data_source for its
arguments).
A data source (see DataSource); element defaults to 1, opt to 0,
scale to 1.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer, | intent(in) | :: | src |
a SOURCE_* constant |
||
| integer, | intent(in), | optional | :: | element |
element (1 to dof, or 1 to 4 for an attitude; default 1) |
|
| integer, | intent(in), | optional | :: | opt |
(0: the position (default), k: optional k) |
|
| real(kind=wp), | intent(in), | optional | :: | scale |
factor the value is multiplied by (default 1) |
type, public :: DataSource integer :: src = SOURCE_ZERO !! where the component comes from: a SOURCE_* constant integer :: element = 1 !! element (1 to dof, or 1 to 4 for SOURCE_ATTITUDE) integer :: opt = 0 !! (0: the position, k: optional k (SOURCE_POSOPT)) real(wp) :: scale = 1.0_wp !! factor the value is multiplied by end type DataSource