11 #include "MapProjection.h" 36 std::array<GridData, 5> mGridData{{
67 explicit GridOverlay(std::shared_ptr<TimerTick> timerTick);
79 static constexpr std::string_view
id =
"GridOverlay";
80 std::string_view nodeId()
const noexcept
override {
97 static void throwContainerError() {
std::shared_ptr< TimerTick > mTimerTick
Source of timing information.
Definition: GridOverlay.h:59
TickProtocol::slot_type mGridUpdateTimer
Slot to receive celestial update time signals on.
Definition: GridOverlay.h:56
Rectangle layout(gm::Context &context, const Rectangle &screenRect) override
Layout the GridOverlay.
Definition: GridOverlay.cpp:95
Red Green Blue Alpha representation of a color.
Definition: Color.h:64
Draw grid lines to annotate the MapProjection.
Definition: GridOverlay.h:19
The Tropics of Cancer and Capricorn, Arctic and Antarctic Circles.
std::shared_ptr< Slot< Args... > > slot_type
Composed Slot type.
Definition: Signals.h:123
gm::Texture mTexture
The Texture used to render all grid lines.
Definition: GridOverlay.h:62
bool mGridOverlayObjects
True if there are elements to display.
Definition: GridOverlay.h:50
GridType
Definition: GridOverlay.h:21
Abstraction of SDL_Texture.
Definition: Texture.h:46
Context
Definition: GraphicsModel.h:76
void draw(gm::Context &context, const Position< int > &containerPosition) override
Draw the GridOverlay.
Definition: GridOverlay.cpp:16
An exception to indicate an unexpected container type at runtime.
Definition: StructuredTypes.h:41
All remaining Latitudes and Longitudes at 15 degree interval.
MapProjectionType mProjection
The map projection type.
Definition: GridOverlay.h:53
The International Date Line.
MapProjectionType
Definition: MapProjection.h:45
A composite of a Position and a Size.
Definition: Types.h:307
void addedToContainer() override
Called when added to a container.
Definition: GridOverlay.cpp:99
Definition: GridOverlay.h:29
ToDo: There is an issue that the initial scroll interaction is lost if the click/press lands on a Wid...
Definition: CelestialOverlay.cpp:13