Splitting radar logic out of render layer into manager and view classes

This commit is contained in:
Dan Paulat 2021-07-24 21:32:57 -05:00
parent 59be110c10
commit 30fadcfbb6
12 changed files with 410 additions and 133 deletions

View file

@ -0,0 +1,16 @@
#pragma once
#include <cstdint>
namespace scwx
{
namespace common
{
constexpr uint32_t MAX_1_DEGREE_RADIALS = 360;
constexpr uint32_t MAX_0_5_DEGREE_RADIALS = 720;
constexpr uint32_t MAX_RADIALS = MAX_0_5_DEGREE_RADIALS;
constexpr uint32_t MAX_DATA_MOMENT_GATES = 1840;
} // namespace common
} // namespace scwx

View file

@ -0,0 +1,15 @@
#pragma once
namespace scwx
{
namespace common
{
enum class RadialSize
{
_0_5Degree,
_1Degree
};
} // namespace common
} // namespace scwx

View file

@ -2,7 +2,9 @@ project(scwx-data)
find_package(Boost)
set(HDR_COMMON include/scwx/common/color_table.hpp)
set(HDR_COMMON include/scwx/common/color_table.hpp
include/scwx/common/constants.hpp
include/scwx/common/types.hpp)
set(SRC_COMMON source/scwx/common/color_table.cpp)
set(HDR_UTIL include/scwx/util/rangebuf.hpp
include/scwx/util/vectorbuf.hpp)
@ -58,6 +60,15 @@ if(MSVC)
target_compile_options(wxdata PRIVATE /W3)
endif()
target_link_libraries(wxdata INTERFACE Boost::iostreams
Boost::log
BZip2::BZip2
hsluv-c)
if (WIN32)
target_link_libraries(wxdata INTERFACE Ws2_32)
endif()
set_target_properties(wxdata PROPERTIES CXX_STANDARD 20
CXX_STANDARD_REQUIRED ON
CXX_EXTENSIONS OFF)