- training_area_telegrams.cpp: Fixed QJsonObject initializer syntax (Qt6 requires {{}} not ({}))
- training_area_telegrams.cpp: Fixed fromJson() methods to access m_* members directly
- training_area_telegrams.cpp: Fixed brace mismatches in multiple toJson() methods
- training_area_telegrams.h: Changed Header struct to public members for consistency
- tx_mixin.cpp: Fixed getEquipmentNumber() template for direct member access
- lts_coordinate.cpp: Added missing #include <iomanip>
- MIGRATION_STATUS.md: Added migration progress tracking document
C++17 constraint enforced due to RTI Connext DDS 7.7.0 incompatibility with C++20+
Build status: BUILD_RTI=OFF successful (0 errors, warnings only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
64 lines
1.2 KiB
C++
Executable File
64 lines
1.2 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* Class Camera
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
// Own
|
|
#include "situation_map_types.h"
|
|
#include <Common/situation_map_logging.h>
|
|
#include <situation_map_export.h>
|
|
|
|
// Qt
|
|
#include <QtCore/QString>
|
|
|
|
class QJsonObject;
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
namespace SituationMap
|
|
{
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
// for 3D:
|
|
/**
|
|
* @brief A Camera contains the spatial parameters to set a 3D view on a Scene (3D):
|
|
* A virtual camera's location, orientation and field of view.
|
|
*
|
|
*/
|
|
class SITUATIONMAP_EXPORT Camera
|
|
{
|
|
public:
|
|
Camera();
|
|
~Camera() = default;
|
|
|
|
void resetCamera();
|
|
bool isNull() const;
|
|
|
|
static Camera read(const QJsonObject &json);
|
|
QJsonObject toJsonObject() const;
|
|
|
|
QString toString() const;
|
|
|
|
|
|
double loc_x_lon; ///< location x (longitude)
|
|
double loc_y_lat; ///< location y (latitude)
|
|
double loc_z; ///< location z
|
|
|
|
double heading;
|
|
double pitch;
|
|
double roll;
|
|
};
|
|
|
|
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
|
|
const SituationMap::Camera &value);
|
|
|
|
} // namespace SituationMap
|
|
|