Add path rendering.
This commit is contained in:
parent
f2ab532005
commit
97afa782a0
39 changed files with 1148 additions and 131 deletions
|
@ -1,11 +1,13 @@
|
|||
set(MODULE_NAME geometry)
|
||||
|
||||
set(GEOMETRY_UNIT_TEST_FILES
|
||||
geometry/TestGeometryCollection.cpp
|
||||
geometry/TestGrid.cpp
|
||||
PARENT_SCOPE
|
||||
)
|
||||
list(APPEND UNIT_TEST_FILES
|
||||
TestGeometryCollection.cpp
|
||||
TestGrid.cpp
|
||||
TestPath.cpp
|
||||
)
|
||||
|
||||
set(GEOMETRY_UNIT_TEST_DEPENDENCIES
|
||||
geometry
|
||||
PARENT_SCOPE
|
||||
)
|
||||
set(UNIT_TEST_TARGET_NAME ${MODULE_NAME}_unit_tests)
|
||||
|
||||
add_executable(${UNIT_TEST_TARGET_NAME} ${CMAKE_SOURCE_DIR}/test/test_runner.cpp ${UNIT_TEST_FILES})
|
||||
target_link_libraries(${UNIT_TEST_TARGET_NAME} PUBLIC test_utils geometry)
|
||||
set_property(TARGET ${UNIT_TEST_TARGET_NAME} PROPERTY FOLDER test/${MODULE_NAME})
|
10
test/geometry/TestPath.cpp
Normal file
10
test/geometry/TestPath.cpp
Normal file
|
@ -0,0 +1,10 @@
|
|||
#include "TestFramework.h"
|
||||
#include "TestUtils.h"
|
||||
|
||||
#include "Path.h"
|
||||
|
||||
TEST_CASE(TestPath, "geometry")
|
||||
{
|
||||
GeometryPath path;
|
||||
path.buildFromPostscript("M11 39h7.5V26.5h11V39H37V19.5L24 9.75 11 19.5Zm-3 3V18L24 6l16 12v24H26.5V29.5h-5V42Zm16-17.65Z");
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue