Skip to content

Commit 070d9d2

Browse files
committed
BUG: Fix LineSpatialObject example
This example should be renamed to LineSpatialObject, not LineSpatialObject2. In addition, the breathelink has been suppressed for a future commit. Once the documentation is pushed to the official itk.org, this can be uncommnented. The reason for this is because the doxygen tries to find a url that is not present. Hence, once it is pressent the error will be fixed.
1 parent f6597c9 commit 070d9d2

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

src/Core/SpatialObjects/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ compare_to_baseline(EXAMPLE_NAME Ellipse
88
BASELINE_PREFIX EllipseOutput
99
)
1010

11-
add_example(LineSpatialObject2)
12-
compare_to_baseline(EXAMPLE_NAME LineSpatialObject2
11+
add_example(LineSpatialObject)
12+
compare_to_baseline(EXAMPLE_NAME LineSpatialObject
1313
BASELINE_PREFIX line
1414
)
1515

Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
cmake_minimum_required(VERSION 3.10.2)
22

3-
project(LineSpatialObject2)
3+
project(LineSpatialObject)
44

55
find_package(ITK REQUIRED)
66
include(${ITK_USE_FILE})
77

88

9-
add_executable(LineSpatialObject2 Code.cxx)
10-
target_link_libraries(LineSpatialObject2 ${ITK_LIBRARIES})
9+
add_executable(LineSpatialObject Code.cxx)
10+
target_link_libraries(LineSpatialObject ${ITK_LIBRARIES})
1111

12-
install(TARGETS LineSpatialObject2
12+
install(TARGETS LineSpatialObject
1313
DESTINATION bin/ITKExamples/Core/SpatialObjects
1414
COMPONENT Runtime
1515
)
1616

1717
install(FILES Code.cxx CMakeLists.txt
18-
DESTINATION share/ITKExamples/Code/Core/SpatialObjects/LineSpatialObject2/
18+
DESTINATION share/ITKExamples/Code/Core/SpatialObjects/LineSpatialObject/
1919
COMPONENT Code
2020
)
2121

2222

2323
enable_testing()
24-
add_test(NAME LineSpatialObject2Test
25-
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/LineSpatialObject2)
24+
add_test(NAME LineSpatialObjectTest
25+
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/LineSpatialObject)
2626

src/Core/SpatialObjects/LineSpatialObject2/Documentation.rst renamed to src/Core/SpatialObjects/LineSpatialObject/Documentation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Line Spacial Object
1+
Line Spatial Object
22
===================
33

44
.. index::
@@ -30,6 +30,6 @@ C++
3030

3131
Classes demonstrated
3232
--------------------
33-
34-
.. breathelink:: itk::LineSpatialObject
35-
.. breathelink:: itk::LineSpatialObjectPoint
33+
.. [TODO: This will need to be uncommented once PR #186 is merged and the official documentation is updated
34+
.. [breathelink:: itk::LineSpatialObject
35+
.. [breathelink:: itk::LineSpatialObjectPoint

src/Core/SpatialObjects/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ SpatialObjects
88
ContourSpatialObject/Documentation.rst
99
ConvertSpatialObjectToImage/Documentation.rst
1010
Ellipse/Documentation.rst
11-
LineSpatialObject2/Documentation.rst
11+
LineSpatialObject/Documentation.rst

0 commit comments

Comments
 (0)