Package org.orekit.bodies
Class PythonBodyShape
- java.lang.Object
-
- org.orekit.bodies.PythonBodyShape
-
- All Implemented Interfaces:
Serializable
,BodyShape
public class PythonBodyShape extends Object implements BodyShape
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PythonBodyShape()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
finalize()
Part of JCC Python interface to objectFrame
getBodyFrame()
Get body frame related to body shape.<T extends CalculusFieldElement<T>>
FieldGeodeticPoint<T>getIntersectionPoint(FieldLine<T> line, FieldVector3D<T> close, Frame frame, FieldAbsoluteDate<T> date)
Get the intersection point of a line with the surface of the body.GeodeticPoint
getIntersectionPoint(Line line, Vector3D close, Frame frame, AbsoluteDate date)
Get the intersection point of a line with the surface of the body.Vector3D
projectToGround(Vector3D point, AbsoluteDate date, Frame frame)
Project a point to the ground.TimeStampedPVCoordinates
projectToGround(TimeStampedPVCoordinates pv, Frame frame)
Project a moving point to the ground.void
pythonDecRef()
Part of JCC Python interface to objectlong
pythonExtension()
Part of JCC Python interface to objectvoid
pythonExtension(long pythonObject)
Part of JCC Python interface to object<T extends CalculusFieldElement<T>>
FieldGeodeticPoint<T>transform(FieldVector3D<T> point, Frame frame, FieldAbsoluteDate<T> date)
Transform a Cartesian point to a surface-relative point.GeodeticPoint
transform(Vector3D point, Frame frame, AbsoluteDate date)
Transform a Cartesian point to a surface-relative point.<T extends CalculusFieldElement<T>>
FieldVector3D<T>transform(FieldGeodeticPoint<T> point)
Transform a surface-relative point to a Cartesian point.Vector3D
transform(GeodeticPoint point)
Transform a surface-relative point to a Cartesian point.
-
-
-
Method Detail
-
pythonExtension
public void pythonExtension(long pythonObject)
Part of JCC Python interface to object
-
pythonExtension
public long pythonExtension()
Part of JCC Python interface to object
-
finalize
public void finalize() throws Throwable
Part of JCC Python interface to object
-
pythonDecRef
public void pythonDecRef()
Part of JCC Python interface to object
-
getBodyFrame
public Frame getBodyFrame()
Get body frame related to body shape. Extension point for Python.- Specified by:
getBodyFrame
in interfaceBodyShape
- Returns:
- body frame related to body shape
-
getIntersectionPoint
public GeodeticPoint getIntersectionPoint(Line line, Vector3D close, Frame frame, AbsoluteDate date)
Get the intersection point of a line with the surface of the body. Extension point for Python.A line may have several intersection points with a closed surface (we consider the one point case as a degenerated two points case). The close parameter is used to select which of these points should be returned. The selected point is the one that is closest to the close point.
- Specified by:
getIntersectionPoint
in interfaceBodyShape
- Parameters:
line
- test line (may intersect the body or not)close
- point used for intersections selectionframe
- frame in which line is expresseddate
- date of the line in given frame- Returns:
- intersection point at altitude zero or null if the line does not intersect the surface
-
getIntersectionPoint
public <T extends CalculusFieldElement<T>> FieldGeodeticPoint<T> getIntersectionPoint(FieldLine<T> line, FieldVector3D<T> close, Frame frame, FieldAbsoluteDate<T> date)
Get the intersection point of a line with the surface of the body.A line may have several intersection points with a closed surface (we consider the one point case as a degenerated two points case). The close parameter is used to select which of these points should be returned. The selected point is the one that is closest to the close point.
- Specified by:
getIntersectionPoint
in interfaceBodyShape
- Type Parameters:
T
- type of the field elements- Parameters:
line
- test line (may intersect the body or not)close
- point used for intersections selectionframe
- frame in which line is expresseddate
- date of the line in given frame- Returns:
- intersection point at altitude zero or null if the line does not intersect the surface
-
projectToGround
public Vector3D projectToGround(Vector3D point, AbsoluteDate date, Frame frame)
Project a point to the ground.- Specified by:
projectToGround
in interfaceBodyShape
- Parameters:
point
- point to projectdate
- current dateframe
- frame in which moving point is expressed- Returns:
- ground point exactly at the local vertical of specified point, in the same frame as specified point
- See Also:
BodyShape.projectToGround(TimeStampedPVCoordinates, Frame)
-
projectToGround
public TimeStampedPVCoordinates projectToGround(TimeStampedPVCoordinates pv, Frame frame)
Project a moving point to the ground.- Specified by:
projectToGround
in interfaceBodyShape
- Parameters:
pv
- moving pointframe
- frame in which moving point is expressed- Returns:
- ground point exactly at the local vertical of specified point, in the same frame as specified point
- See Also:
BodyShape.projectToGround(Vector3D, AbsoluteDate, Frame)
-
transform
public GeodeticPoint transform(Vector3D point, Frame frame, AbsoluteDate date)
Transform a Cartesian point to a surface-relative point.
-
transform
public <T extends CalculusFieldElement<T>> FieldGeodeticPoint<T> transform(FieldVector3D<T> point, Frame frame, FieldAbsoluteDate<T> date)
Transform a Cartesian point to a surface-relative point.- Specified by:
transform
in interfaceBodyShape
- Type Parameters:
T
- type of the filed elements- Parameters:
point
- Cartesian pointframe
- frame in which Cartesian point is expresseddate
- date of the computation (used for frames conversions)- Returns:
- point at the same location but as a surface-relative point
-
transform
public Vector3D transform(GeodeticPoint point)
Transform a surface-relative point to a Cartesian point.
-
transform
public <T extends CalculusFieldElement<T>> FieldVector3D<T> transform(FieldGeodeticPoint<T> point)
Transform a surface-relative point to a Cartesian point.
-
-