![]() |
siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
|
Fixed celestial direction target — a Target for a specific sky position.
More...
#include <siderust/target.hpp>


Public Member Functions | |
| DirectionTarget (C dir, Time< TT, JD > epoch=Time< TT, JD >::J2000(), std::string label="") | |
| Construct from a strongly-typed spherical direction. | |
| ~DirectionTarget () | |
| DirectionTarget (DirectionTarget &&other) noexcept | |
| Move constructor. | |
| DirectionTarget & | operator= (DirectionTarget &&other) noexcept |
| Move assignment. | |
| DirectionTarget (const DirectionTarget &)=delete | |
| DirectionTarget & | operator= (const DirectionTarget &)=delete |
| std::string | name () const override |
| Human-readable name for this direction target. | |
| const C & | direction () const |
| The original typed direction as supplied at construction. | |
| Time< TT, JD > | epoch () const |
| Epoch of the coordinate. | |
| const spherical::direction::ICRS & | icrs_direction () const |
| template<typename F_ = Frame, std::enable_if_t< frames::has_ra_dec_v< F_ >, int > = 0> | |
| qtty::Degree | ra () const |
| Right ascension — only available for equatorial frames (RA/Dec). | |
| template<typename F_ = Frame, std::enable_if_t< frames::has_ra_dec_v< F_ >, int > = 0> | |
| qtty::Degree | dec () const |
| Declination — only available for equatorial frames (RA/Dec). | |
| qtty::Degree | altitude_at (const Geodetic &obs, const Time< TT, MJD > &mjd) const override |
| Compute altitude (degrees) at a given Time<TT, MJD> instant. | |
| std::vector< Period< TT, MJD > > | above_threshold (const Geodetic &obs, const Period< TT, MJD > &window, qtty::Degree threshold, const SearchOptions &opts={}) const override |
| Find periods when the target is above a threshold altitude. | |
| std::vector< Period< TT, MJD > > | below_threshold (const Geodetic &obs, const Period< TT, MJD > &window, qtty::Degree threshold, const SearchOptions &opts={}) const override |
| Find periods when the target is below a threshold altitude. | |
| std::vector< CrossingEvent > | crossings (const Geodetic &obs, const Period< TT, MJD > &window, qtty::Degree threshold, const SearchOptions &opts={}) const override |
| Find threshold-crossing events (rising / setting). | |
| std::vector< CulminationEvent > | culminations (const Geodetic &obs, const Period< TT, MJD > &window, const SearchOptions &opts={}) const override |
| Find culmination (local altitude extremum) events. | |
| qtty::Degree | azimuth_at (const Geodetic &obs, const Time< TT, MJD > &mjd) const override |
| Compute azimuth (degrees, N-clockwise) at a given Time<TT, MJD> instant. | |
| std::vector< AzimuthCrossingEvent > | azimuth_crossings (const Geodetic &obs, const Period< TT, MJD > &window, qtty::Degree bearing, const SearchOptions &opts={}) const override |
| Find epochs when the target crosses a given azimuth bearing. | |
| const SiderustGenericTarget * | c_handle () const |
| Access the underlying C handle (advanced use). | |
| SiderustGenericTargetData | data () const |
| Raw coordinate payload stored in the FFI handle. | |
Public Member Functions inherited from siderust::Target | |
| virtual | ~Target ()=default |
| Target ()=default | |
| Target (const Target &)=delete | |
| Target & | operator= (const Target &)=delete |
| Target (Target &&)=default | |
| Target & | operator= (Target &&)=default |
Fixed celestial direction target — a Target for a specific sky position.
| C | Spherical direction type (e.g. spherical::direction::ICRS). |
Definition at line 112 of file target.hpp.
|
inlineexplicit |
Construct from a strongly-typed spherical direction.
For frames other than ICRS, the direction is converted to ICRS before being registered with the Rust FFI. The original C direction is retained for C++-side accessors.
| dir | Spherical direction (any supported frame). |
| epoch | Coordinate epoch (default J2000.0). |
| label | Optional human-readable name. If empty, a default "Frame(lon°, lat°)" string is generated from the direction. |
Definition at line 142 of file target.hpp.
References siderust::check_status(), siderust::spherical::Direction< F >::dec(), siderust::DirectionTarget< C >::epoch(), and siderust::spherical::Direction< F >::ra().
|
inline |
Definition at line 158 of file target.hpp.
|
inlinenoexcept |
Move constructor.
Definition at line 166 of file target.hpp.
|
delete |
|
inlineoverridevirtual |
Find periods when the target is above a threshold altitude.
Implements siderust::Target.
Definition at line 257 of file target.hpp.
|
inlineoverridevirtual |
Compute altitude (degrees) at a given Time<TT, MJD> instant.
Implements siderust::Target.
Definition at line 246 of file target.hpp.
References siderust::check_status(), siderust::detail::make_generic_target_subject(), and siderust::Geodetic::to_c().
|
inlineoverridevirtual |
Compute azimuth (degrees, N-clockwise) at a given Time<TT, MJD> instant.
Implements siderust::Target.
Definition at line 318 of file target.hpp.
References siderust::check_status(), siderust::detail::make_generic_target_subject(), and siderust::Geodetic::to_c().
|
inlineoverridevirtual |
Find epochs when the target crosses a given azimuth bearing.
Implements siderust::Target.
Definition at line 330 of file target.hpp.
|
inlineoverridevirtual |
Find periods when the target is below a threshold altitude.
Implements siderust::Target.
Definition at line 272 of file target.hpp.
|
inline |
Access the underlying C handle (advanced use).
Definition at line 342 of file target.hpp.
Referenced by siderust::Subject::target().
|
inlineoverridevirtual |
Find threshold-crossing events (rising / setting).
Implements siderust::Target.
Definition at line 287 of file target.hpp.
|
inlineoverridevirtual |
Find culmination (local altitude extremum) events.
Implements siderust::Target.
Definition at line 301 of file target.hpp.
|
inline |
Raw coordinate payload stored in the FFI handle.
Definition at line 345 of file target.hpp.
References siderust::check_status().
|
inline |
Declination — only available for equatorial frames (RA/Dec).
Definition at line 233 of file target.hpp.
|
inline |
The original typed direction as supplied at construction.
Definition at line 216 of file target.hpp.
|
inline |
Epoch of the coordinate.
Definition at line 219 of file target.hpp.
Referenced by siderust::DirectionTarget< C >::DirectionTarget().
|
inline |
The ICRS direction used for FFI calls (equals direction() when C is already spherical::direction::ICRS).
Definition at line 223 of file target.hpp.
|
inlineoverridevirtual |
Human-readable name for this direction target.
Returns the label passed at construction if one was provided; otherwise generates a "Frame(lon°, lat°)" string from the ICRS direction.
Implements siderust::Target.
Definition at line 202 of file target.hpp.
References siderust::spherical::Direction< F >::dec(), and siderust::spherical::Direction< F >::ra().
|
delete |
|
inlinenoexcept |
Move assignment.
Definition at line 173 of file target.hpp.
|
inline |
Right ascension — only available for equatorial frames (RA/Dec).
Definition at line 227 of file target.hpp.