Package org.orekit.frames
Class ShiftingTransformProvider
- java.lang.Object
-
- org.orekit.frames.ShiftingTransformProvider
-
- All Implemented Interfaces:
Serializable
,TransformProvider
public class ShiftingTransformProvider extends Object implements TransformProvider
Transform provider using thread-safe shifts on transforms sample.The shifts take derivatives into account, up to user specified order.
- Since:
- 7.1
- Author:
- Luc Maisonobe
- See Also:
GenericTimeStampedCache
,InterpolatingTransformProvider
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShiftingTransformProvider(TransformProvider rawProvider, CartesianDerivativesFilter cFilter, AngularDerivativesFilter aFilter, int gridPoints, double step, int maxSlots, double maxSpan, double newSlotInterval)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGridPoints()
Get the number of interpolation grid points.TransformProvider
getRawProvider()
Get the underlying provider for raw (non-interpolated) transforms.StaticTransform
getStaticTransform(AbsoluteDate date)
Get a transform for only rotations and translations on the specified date.<T extends CalculusFieldElement<T>>
FieldStaticTransform<T>getStaticTransform(FieldAbsoluteDate<T> date)
Get a transform for only rotations and translations on the specified date.double
getStep()
Get the grid points time step.Transform
getTransform(AbsoluteDate date)
Get theTransform
corresponding to specified date.<T extends CalculusFieldElement<T>>
FieldTransform<T>getTransform(FieldAbsoluteDate<T> date)
Get theFieldTransform
corresponding to specified date.
-
-
-
Constructor Detail
-
ShiftingTransformProvider
public ShiftingTransformProvider(TransformProvider rawProvider, CartesianDerivativesFilter cFilter, AngularDerivativesFilter aFilter, int gridPoints, double step, int maxSlots, double maxSpan, double newSlotInterval)
Simple constructor.- Parameters:
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 interpolationgridPoints
- number of interpolation grid pointsstep
- grid points time stepmaxSlots
- maximum number of independent cached time slots in thetime-stamped cache
maxSpan
- maximum duration span in seconds of one slot in thetime-stamped cache
newSlotInterval
- time interval above which a new slot is created in thetime-stamped cache
- Since:
- 9.1
-
-
Method Detail
-
getRawProvider
public TransformProvider getRawProvider()
Get the underlying provider for raw (non-interpolated) transforms.- Returns:
- provider for raw (non-interpolated) transforms
-
getGridPoints
public int getGridPoints()
Get the number of interpolation grid points.- Returns:
- number of interpolation grid points
-
getStep
public double getStep()
Get the grid points time step.- Returns:
- grid points time step
-
getTransform
public Transform getTransform(AbsoluteDate date)
Get theTransform
corresponding to specified date.- Specified by:
getTransform
in interfaceTransformProvider
- Parameters:
date
- current date- Returns:
- transform at specified date
-
getStaticTransform
public StaticTransform getStaticTransform(AbsoluteDate date)
Get a transform for only rotations and translations on the specified date.The default implementation returns
TransformProvider.getTransform(AbsoluteDate)
but implementations may override it for better performance.- Specified by:
getStaticTransform
in interfaceTransformProvider
- Parameters:
date
- current date.- Returns:
- the static transform.
-
getTransform
public <T extends CalculusFieldElement<T>> FieldTransform<T> getTransform(FieldAbsoluteDate<T> date)
Get theFieldTransform
corresponding to specified date.- Specified by:
getTransform
in interfaceTransformProvider
- Type Parameters:
T
- type of the field elements- Parameters:
date
- current date- Returns:
- transform at specified date
-
getStaticTransform
public <T extends CalculusFieldElement<T>> FieldStaticTransform<T> getStaticTransform(FieldAbsoluteDate<T> date)
Get a transform for only rotations and translations on the specified date.The default implementation returns
TransformProvider.getTransform(AbsoluteDate)
but implementations may override it for better performance.- Specified by:
getStaticTransform
in interfaceTransformProvider
- Type Parameters:
T
- type of the elements- Parameters:
date
- current date.- Returns:
- the static transform.
-
-