DataSource Derived Type

type, public :: DataSource

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.


Inherited by

type~~datasource~~InheritedByGraph type~datasource DataSource type~curveartist CurveArtist type~curveartist->type~datasource sources_ type~chainartist ChainArtist type~curveartist->type~chainartist type~markerartist MarkerArtist type~markerartist->type~datasource sources_ type~trajectoryartist TrajectoryArtist type~markerartist->type~trajectoryartist type~ribbonartist RibbonArtist type~ribbonartist->type~datasource start_, end_ type~ribbonartist->type~chainartist type~segmentartist SegmentArtist type~segmentartist->type~datasource start_, end_ type~segmentartist->type~trajectoryartist type~trajectoryfollower TrajectoryFollower type~trajectoryfollower->type~datasource sources_ type~referenceframe ReferenceFrame type~referenceframe->type~trajectoryfollower follower_ type~referenceframe->type~referenceframe follow_frame_ type~framepointer FramePointer type~referenceframe->type~framepointer children, parents type~coordinateaxes CoordinateAxes type~coordinateaxes->type~referenceframe type~customlinesegments CustomLineSegments type~customlinesegments->type~referenceframe type~draghandle DragHandle type~draghandle->type~referenceframe type~drawabletrajectory DrawableTrajectory type~drawabletrajectory->type~referenceframe data_frame_ type~drawabletrajectory->type~referenceframe type~artistpointer ArtistPointer type~drawabletrajectory->type~artistpointer artists type~framemanager FrameManager type~framemanager->type~referenceframe root type~framepointer->type~referenceframe p type~latlongrid LatLonGrid type~latlongrid->type~referenceframe type~model Model type~model->type~referenceframe type~pickhit PickHit type~pickhit->type~referenceframe frame type~polyhedralcone PolyhedralCone type~polyhedralcone->type~referenceframe type~polyhedron Polyhedron type~polyhedron->type~referenceframe type~radialplane RadialPlane type~radialplane->type~referenceframe type~shadowcones ShadowCones type~shadowcones->type~referenceframe body_, light_ type~shadowcones->type~referenceframe type~sphere Sphere type~sphere->type~referenceframe type~terrainbody TerrainBody type~terrainbody->type~referenceframe type~trajectoryartist->type~referenceframe shown_in, data_frame, seen_data_frame type~view View type~view->type~referenceframe root, frame, lookat type~artistpointer->type~trajectoryartist p type~cameraflight CameraFlight type~cameraflight->type~view from, to type~chainartist->type~trajectoryartist type~ellipticcone EllipticCone type~ellipticcone->type~polyhedralcone type~rectangularcone RectangularCone type~rectangularcone->type~polyhedralcone type~timehandle TimeHandle type~timehandle->type~draghandle type~vectorhandle VectorHandle type~vectorhandle->type~draghandle type~viewpointer ViewPointer type~viewpointer->type~view p type~windowproxy WindowProxy type~windowproxy->type~draghandle hovered_handle, dragged_handle type~windowproxy->type~framemanager scene type~windowproxy->type~view default_view, shown type~windowproxy->type~cameraflight flight type~windowproxy->type~viewpointer views

Components

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


Constructor

public interface DataSource

The DataSource constructor: DataSource(...) makes one (see new_data_source for its arguments).

  • private pure function new_data_source(src, element, opt, scale) result(s)

    A data source (see DataSource); element defaults to 1, opt to 0, scale to 1.

    Arguments

    Type IntentOptional 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)

    Return Value type(DataSource)


Source Code

    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