ModelSpace
All Classes Namespaces Functions Variables Enumerations Pages
googleearthkml.h
1/******************************************************************************
2* Copyright (c) ATTX LLC 2024. All Rights Reserved.
3*
4* This software and associated documentation (the "Software") are the
5* proprietary and confidential information of ATTX, LLC. The Software is
6* furnished under a license agreement between ATTX and the user organization
7* and may be used or copied only in accordance with the terms of the agreement.
8* Refer to 'license/attx_license.adoc' for standard license terms.
9*
10* EXPORT CONTROL NOTICE: THIS SOFTWARE MAY INCLUDE CONTENT CONTROLLED UNDER THE
11* INTERNATIONAL TRAFFIC IN ARMS REGULATIONS (ITAR) OR THE EXPORT ADMINISTRATION
12* REGULATIONS (EAR99). No part of the Software may be used, reproduced, or
13* transmitted in any form or by any means, for any purpose, without the express
14* written permission of ATTX, LLC.
15******************************************************************************/
16#ifndef UTILS_GOOGLEEARTHKML_H
17#define UTILS_GOOGLEEARTHKML_H
18
19#include <string>
20#include <vector>
21
22namespace modelspace {
23
24 /// @brief Function to write a trajectory into a KML file
25 /// @param lat A vector of doubles corresponding to latitude
26 /// @param lon A vector of doubles corresponding to longitude
27 /// @param alt A vector of doubles corresponding to altitude
28 /// @param project_to_ground A bolean indicating whether the trajectory should be projected to the ground
29 /// @return A string to be written with all trajectory data
30 std::string writeTrajectory(const std::vector<double> &lat,
31 const std::vector<double> &lon,
32 const std::vector<double> &alt,
33 bool project_to_ground=true,
34 const std::string &color="7f00ffff");
35
36 /// @brief Function to write a full KML file from trajectory data
37 /// @param file The file to write kml data to
38 /// @param lat A vector of doubles corresponding to latitude
39 /// @param lon A vector of doubles corresponding to longitude
40 /// @param alt A vector of doubles corresponding to altitude
41 /// @param colors A vector of
42 /// @param project_to_ground A bolean indicating whether the trajectory should be projected to the ground
43 void writeKmlFile(const std::string &file,
44 const std::vector<std::vector<double>> &lat,
45 const std::vector<std::vector<double>> &lon,
46 const std::vector<std::vector<double>> &alt,
47 const std::vector<std::string> &colors,
48 bool project_to_ground=true);
49
50}
51
52#endif
Class to propagate CR3BP dynamics in characteristic units.
Definition ConfigurationWriter.cpp:18
void writeKmlFile(const std::string &file, const std::vector< std::vector< double > > &lat, const std::vector< std::vector< double > > &lon, const std::vector< std::vector< double > > &alt, const std::vector< std::string > &colors, bool project_to_ground)
Function to write a full KML file from trajectory data.
Definition googleearthkml.cpp:64
std::string writeTrajectory(const std::vector< double > &lat, const std::vector< double > &lon, const std::vector< double > &alt, bool project_to_ground, const std::string &color)
Function to write a trajectory into a KML file
Definition googleearthkml.cpp:23