mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 08:00:06 +00:00
Splitting radar logic out of render layer into manager and view classes
This commit is contained in:
parent
59be110c10
commit
30fadcfbb6
12 changed files with 410 additions and 133 deletions
16
wxdata/include/scwx/common/constants.hpp
Normal file
16
wxdata/include/scwx/common/constants.hpp
Normal 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
|
||||
15
wxdata/include/scwx/common/types.hpp
Normal file
15
wxdata/include/scwx/common/types.hpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace common
|
||||
{
|
||||
|
||||
enum class RadialSize
|
||||
{
|
||||
_0_5Degree,
|
||||
_1Degree
|
||||
};
|
||||
|
||||
} // namespace common
|
||||
} // namespace scwx
|
||||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue