SatDump 2.0.0-alpha-76a915210
Loading...
Searching...
No Matches
satellite_raytracer.h
Go to the documentation of this file.
1#pragma once
2
6
7#include "nlohmann/json.hpp"
8#include "common/geodetic/geodetic_coordinates.h"
9
10namespace satdump
11{
12 namespace projection
13 {
30 class SatelliteRaytracer
31 {
32 protected:
33 const nlohmann::ordered_json d_cfg;
34
35 public:
36 SatelliteRaytracer(nlohmann::ordered_json cfg)
37 : d_cfg(cfg)
38 {
39 }
40
49 virtual bool get_position(double x, double y, geodetic::geodetic_coords_t &pos, double *otime = nullptr) = 0;
50 };
51
59 {
60 std::string id;
61 std::vector<std::shared_ptr<SatelliteRaytracer>> &r;
62 nlohmann::ordered_json cfg;
63 };
64
70 std::shared_ptr<SatelliteRaytracer> get_satellite_raytracer(nlohmann::json cfg);
71 }
72}
virtual bool get_position(double x, double y, geodetic::geodetic_coords_t &pos, double *otime=nullptr)=0
Get geodetic position of a pixel (can be fractional)
Event called to request satellite raytracers.
Definition satellite_raytracer.h:59