Skip to content

Class astrea::trace::Viewer

ClassList > astrea > trace > Viewer

Viewer class for managing access and sensors on a spacecraft. This class inherits from Spacecraft,AccessObject , and SensorPlatform. It provides functionality to manage sensors and access rights for the spacecraft.

  • #include <Viewer.hpp>

Inherits the following classes: astro::Spacecraft, astrea::trace::AccessObject, SensorPlatform

Public Functions

Type Name
Viewer () = default
Default constructor for Viewer .
Viewer (const astro::GeneralPerturbations & gp, const astro::AstrodynamicsSystem & system)
Constructor for Viewer with GeneralPerturbations and AstrodynamicsSystem.
virtual std::size_t get_id () const
Get the viewer ID.
astro::RadiusVector< astro::frames::earth::icrf > get_inertial_position (const astro::Date & date) const
Get the inertial position of the viewer.
astro::VelocityVector< astro::frames::earth::icrf > get_inertial_velocity (const astro::Date & date) const
Get the inertial velocity of the viewer.
Mass get_mass () override const
Get the mass of the viewer.
std::string get_name () const
Get the name of the viewer.
~Viewer () = default
Default destructor for Viewer .

Public Functions inherited from astrea::trace::AccessObject

See astrea::trace::AccessObject

Type Name
void add_access (const std::size_t & receiverId, const RiseSetArray & access)
Adds access times for a specific receiver.
void drop_access (const std::size_t & receiverId, const RiseSetArray & access)
Drops access times for a specific receiver.
AccessArray & get_accesses ()
Gets the access times for this object.
const AccessArray & get_accesses () const
Gets the access times for this object (const version).
virtual std::size_t get_id () const = 0
Pure virtual function to get the ID of the object.

Protected Functions inherited from astrea::trace::AccessObject

See astrea::trace::AccessObject

Type Name
AccessObject () = default
Default constructor.
virtual ~AccessObject () = default
Default destructor.

Public Functions Documentation

function Viewer [1/2]

Default constructor for Viewer .

astrea::trace::Viewer::Viewer () = default


function Viewer [2/2]

Constructor for Viewer with GeneralPerturbations and AstrodynamicsSystem.

inline astrea::trace::Viewer::Viewer (
    const astro::GeneralPerturbations & gp,
    const astro::AstrodynamicsSystem & system
) 

Parameters:

  • gp The GeneralPerturbations object containing spacecraft data.
  • system The AstrodynamicsSystem object for astrodynamics calculations.

function get_id

Get the viewer ID.

inline virtual std::size_t astrea::trace::Viewer::get_id () const

Returns:

std::size_t The ID of the viewer.

Implements astrea::trace::AccessObject::get_id


function get_inertial_position

Get the inertial position of the viewer.

inline astro::RadiusVector< astro::frames::earth::icrf > astrea::trace::Viewer::get_inertial_position (
    const astro::Date & date
) const

Parameters:

  • date The date for which to get the position.

Returns:

astro::RadiusVector<astro::frames::earth::icrf> The inertial position of the viewer.


function get_inertial_velocity

Get the inertial velocity of the viewer.

inline astro::VelocityVector< astro::frames::earth::icrf > astrea::trace::Viewer::get_inertial_velocity (
    const astro::Date & date
) const

Parameters:

  • date The date for which to get the velocity.

Returns:

astro::RadiusVector<astro::frames::earth::icrf> The inertial velocity of the viewer.


function get_mass

Get the mass of the viewer.

inline Mass astrea::trace::Viewer::get_mass () override const

Returns:

Mass The mass of the viewer.


function get_name

Get the name of the viewer.

inline std::string astrea::trace::Viewer::get_name () const

Returns:

std::string The name of the viewer.


function ~Viewer

Default destructor for Viewer .

astrea::trace::Viewer::~Viewer () = default



The documentation for this class was generated from the following file astrea/trace/trace/platforms/vehicles/Viewer.hpp