Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Viewer/SituationMap/MapObjects/line_of_sight.h
T
berrux-dev 598fc2560e Complete Qt6 migration: full clean build green across groups G1-G12 incl. runtime plugin set
new_docker_build.sh gains Group 12 (212 GUI/Data plugins); fixes LtsUtilsGuiDds visibility (LTO-stripped exports), LtsProjectionWorkstation unity name shadow, 6 unity-off dirs (dup file-scope statics, ddsftc INTERFACE sources) and reconfigures BUILD_FILTERMANAGEMENT/BUILD_PLUGINS_SERVICEMONITOR=ON
2026-10-20 09:36:57 +02:00

65 lines
1.6 KiB
C++
Executable File

/**
* @RDE_HEADER@
* Interface of LineOfSight
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include "abstract_multi_point_map_object.h"
#include <Map/abstract_effect_simulation.h>
//----------------------------------------------------------------------------
namespace SituationMap
{
/**
* @brief The LineOfSight class supports a "single" line with two colors.
* The method setPositions() should never be called.
*/
class LineOfSight : public virtual AbstractMultiPointMapObject, public virtual AbstractEffectSimulation
{
public:
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Don't use "= default" because of bug in VS2015 JT 2016/11/7
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
LineOfSight()
: AbstractMultiPointMapObject(), AbstractEffectSimulation()
{} ///< Contructor
virtual ~LineOfSight() = default; ///< Destructor
/*! \name Specific data*/
//@{
/*!
* \brief set relvants Points
* \param observer observerPoint (
* \param obstacle obstacle point
* \param target targetPoint
* \param visibleColor color to visualize the visible part
* \param obstructedColor color to visualize the obstructed part
*/
virtual void setPoints(const Point3D &observer,
const Point3D &obstacle,
const Point3D &target,
const QColor &visibleColor = Qt::green,
const QColor &obstructedColor = Qt::red) = 0;
//@}
// void setPositions(const PositionCont& posCont) //SHOULD NEVER BE CALLED
};
} // namespace SituationMap