public class InterpolatingTransformProvider extends Object implements TransformProvider
The interpolation is a polynomial Hermite interpolation, which can either use or ignore the derivatives provided by the raw provider. This means that simple raw providers that do not compute derivatives can be used, the derivatives will be added appropriately by the interpolation process.
GenericTimeStampedCache
,
Serialized FormConstructor and Description |
---|
InterpolatingTransformProvider(TransformProvider rawProvider,
boolean useVelocities,
boolean useRotationRates,
AbsoluteDate earliest,
AbsoluteDate latest,
int gridPoints,
double step,
int maxSlots,
double maxSpan,
double newSlotInterval)
|
InterpolatingTransformProvider(TransformProvider rawProvider,
CartesianDerivativesFilter cFilter,
AngularDerivativesFilter aFilter,
AbsoluteDate earliest,
AbsoluteDate latest,
int gridPoints,
double step,
int maxSlots,
double maxSpan,
double newSlotInterval)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getGridPoints()
Get the number of interpolation grid points.
|
TransformProvider |
getRawProvider()
Get the underlying provider for raw (non-interpolated) transforms.
|
double |
getStep()
Get the grid points time step.
|
Transform |
getTransform(AbsoluteDate date)
Get the
Transform corresponding to specified date. |
@Deprecated public InterpolatingTransformProvider(TransformProvider rawProvider, boolean useVelocities, boolean useRotationRates, AbsoluteDate earliest, AbsoluteDate latest, int gridPoints, double step, int maxSlots, double maxSpan, double newSlotInterval)
InterpolatingTransformProvider(TransformProvider,
CartesianDerivativesFilter, AngularDerivativesFilter, AbsoluteDate, AbsoluteDate,
int, double, int, double, double)
rawProvider
- provider for raw (non-interpolated) transformsuseVelocities
- if true, use sample transforms velocities,
otherwise ignore them and use only positionsuseRotationRates
- if true, use sample points rotation rates,
otherwise ignore them and use only rotationsearliest
- earliest supported datelatest
- latest supported dategridPoints
- number of interpolation grid pointsstep
- grid points time stepmaxSlots
- maximum number of independent cached time slots
in the time-stamped cache
maxSpan
- maximum duration span in seconds of one slot
in the time-stamped cache
newSlotInterval
- time interval above which a new slot is created
in the time-stamped cache
public InterpolatingTransformProvider(TransformProvider rawProvider, CartesianDerivativesFilter cFilter, AngularDerivativesFilter aFilter, AbsoluteDate earliest, AbsoluteDate latest, int gridPoints, double step, int maxSlots, double maxSpan, double newSlotInterval)
rawProvider
- provider for raw (non-interpolated) transformscFilter
- filter for derivatives from the sample to use in interpolationaFilter
- filter for derivatives from the sample to use in interpolationearliest
- earliest supported datelatest
- latest supported dategridPoints
- number of interpolation grid pointsstep
- grid points time stepmaxSlots
- maximum number of independent cached time slots
in the time-stamped cache
maxSpan
- maximum duration span in seconds of one slot
in the time-stamped cache
newSlotInterval
- time interval above which a new slot is created
in the time-stamped cache
public TransformProvider getRawProvider()
public int getGridPoints()
public double getStep()
public Transform getTransform(AbsoluteDate date) throws OrekitException
Transform
corresponding to specified date.getTransform
in interface TransformProvider
date
- current dateOrekitException
- if transform cannot be computed at given dateCopyright © 2002-2015 CS Systèmes d'information. All rights reserved.