Skip to content

Commit ac94263

Browse files
committed
merge from master
2 parents 4a00cfc + a61883a commit ac94263

File tree

418 files changed

+8204
-3612
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

418 files changed

+8204
-3612
lines changed

.travis.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ notifications:
2727
env:
2828
- CONFIG="Debug,Magick,GMP,ITK"
2929
- CONFIG="Debug,Cairo,QGLviewer,HDF5"
30-
- CONFIG="Documentation,Debug,Cairo,GMP"
30+
- CONFIG="Documentation"
3131
- CONFIG="DGtalTools"
3232

3333
matrix:
3434
fast_finish: true
3535
exclude:
3636
- os: osx
37-
env: CONFIG="Documentation,Debug,Cairo,GMP"
37+
env: CONFIG="Documentation"
3838
- compiler: gcc
3939
os: linux
40-
env: CONFIG="Documentation,Debug,Cairo,GMP"
40+
env: CONFIG="Documentation"
4141
- compiler: gcc
4242
env: CONFIG="DGtalTools"
4343
- os: osx
@@ -70,15 +70,17 @@ addons:
7070

7171
before_install:
7272
- if [ $CXX == "g++" ]; then CCOMPILER="gcc-4.8"; CXXCOMPILER="g++-4.8"; fi
73-
- DOC="false"
73+
- BUILD_DOC="false"
74+
- UPLOAD_DOC="false"
7475
- NEEDCORE="true";
7576
- NEEDEXAMPLESANDTESTS="true";
76-
- if [ $CONFIG == "Documentation,Debug,Cairo,GMP" ]; then NEEDEXAMPLESANDTESTS="false"; NEEDCORE="false"; if [ $OriginalRepo == "true" ]; then if [ $TRAVIS_PULL_REQUEST == "false" ]; then DOC="true"; fi; fi; fi
77+
- if [ $CONFIG == "Documentation" ]; then NEEDEXAMPLESANDTESTS="false"; NEEDCORE="false"; BUILD_DOC="true"; if [ $OriginalRepo == "true" ]; then if [ $TRAVIS_PULL_REQUEST == "false" ]; then UPLOAD_DOC="true"; fi; fi; fi
7778
- if [ $CONFIG == "Debug,Magick,GMP,ITK" ]; then BTYPE="-DCMAKE_BUILD_TYPE=Debug -DWITH_MAGICK=true -DWITH_GMP=true -DBUILD_TESTING=ON -DWARNING_AS_ERROR=ON"; fi
7879
- if [ $CONFIG == "Debug,Cairo,QGLviewer,HDF5" ]; then BTYPE="-DCMAKE_BUILD_TYPE=Debug -DWITH_HDF5=true -DWITH_CAIRO=true -DWITH_QGLVIEWER=true -DBUILD_TESTING=ON -DWARNING_AS_ERROR=OFF"; fi
79-
- if [ $DOC == "true" ]; then .travis/install_doxygen.sh; BTYPE="-DDOXYGEN_EXECUTABLE=$HOME/doxygen/doxygen-1.8.10/bin/doxygen -DCMAKE_BUILD_TYPE=Debug -DWITH_CAIRO=true -DWITH_GMP=true"; DOC="true"; openssl aes-256-cbc -K $encrypted_47769ec71275_key -iv $encrypted_47769ec71275_iv -in .travis/dgtal_rsa.enc -out .travis/dgtal_rsa -d; chmod 600 .travis/dgtal_rsa; DOC="true"; fi
8080
- if [ $CONFIG == "DGtalTools" ]; then NEEDEXAMPLESANDTESTS="false"; BTYPE="-DCMAKE_BUILD_TYPE=Debug -DWITH_MAGICK=true -DWITH_GMP=true -DWITH_HDF5=true -DWITH_CAIRO=true -DWITH_QGLVIEWER=true -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=off"; fi
81-
- if [ $DOC == "true"]; then wget http://http://dgtal.org/doc/tags/DGtalTools-tagfile; fi
81+
- if [ $UPLOAD_DOC == "true" ]; then openssl aes-256-cbc -K $encrypted_47769ec71275_key -iv $encrypted_47769ec71275_iv -in .travis/dgtal_rsa.enc -out .travis/dgtal_rsa -d; chmod 600 .travis/dgtal_rsa; BUILD_DOC="true"; fi
82+
- if [ $BUILD_DOC == "true" ]; then wget http://dgtal.org/doc/tags/DGtalTools-tagfile; fi
83+
- if [ $BUILD_DOC == "true" ]; then .travis/install_doxygen.sh; BTYPE="-DDOXYGEN_EXECUTABLE=$HOME/doxygen/doxygen-1.8.10/bin/doxygen"; fi
8284

8385
########
8486
# Deps.
@@ -93,23 +95,24 @@ before_script:
9395
############
9496
script:
9597
- cmake . $BTYPE -DCMAKE_CXX_COMPILER=$CXXCOMPILER -DCMAKE_C_COMPILER=$CCOMPILER
96-
- echo $DOC
98+
- echo $BUILD_DOC
99+
- echo $UPLOAD_DOC
97100
- echo $BTYPE
98101
- if [ $NEEDCORE == "true" ]; then make -j 3 DGtal && make -j 3 DGtalIO; fi
99102
- if [ $NEEDEXAMPLESANDTESTS == "true" ]; then cd examples && make -j 3 ; fi
100103
- if [ $NEEDEXAMPLESANDTESTS == "true" ]; then cd ../tests && make -j 3 && cd .. ; fi
101104
- if [ $NEEDEXAMPLESANDTESTS == "true" ]; then make test ARGS=--output-on-failure ; fi
102105
- if [ $CONFIG == "DGtalTools" ]; then pwd ; .travis/getAndCheckDGtalTools.sh ; fi
103-
106+
- if [ $BUILD_DOC == "true" ]; then make doc; fi
107+
- if [ $CONFIG == "Documentation" ]; then ./.travis/checkDoxygenDocumentation.sh; fi
104108

105109

106110
###########
107111
## Building the documentation
108112
###########
109113
after_success:
110-
- if [ $DOC == "true" ]; then make doc; fi
111-
- if [ $DOC == "true" ]; then rsync -azv --delete --delete-after -e 'ssh -oStrictHostKeyChecking=no -i .travis/dgtal_rsa' html/ [email protected]:/home/dgtal/public_html/doc/nightly/; fi
112-
- if [ $DOC == "true" ]; then cd html; make ; wget http://dgtal.org/doc/docset/template.tgz ; tar zxvf template.tgz ; mv template/* org.dgtal.docset ; tar zcvf DGtal-devel.tgz org.dgtal.docset ; cd .. ;rsync -azv --delete --delete-after -e 'ssh -oStrictHostKeyChecking=no -i .travis/dgtal_rsa' html/DGtal-devel.tgz [email protected]:/home/dgtal/public_html/doc/docset ; fi
114+
- if [ $UPLOAD_DOC == "true" ]; then rsync -azv --delete --delete-after -e 'ssh -oStrictHostKeyChecking=no -i .travis/dgtal_rsa' html/ [email protected]:/home/dgtal/public_html/doc/nightly/; fi
115+
- if [ $UPLOAD_DOC == "true" ]; then cd html; make ; wget http://dgtal.org/doc/docset/template.tgz ; tar zxvf template.tgz ; mv template/* org.dgtal.docset ; tar zcvf DGtal-devel.tgz org.dgtal.docset ; cd .. ;rsync -azv --delete --delete-after -e 'ssh -oStrictHostKeyChecking=no -i .travis/dgtal_rsa' html/DGtal-devel.tgz [email protected]:/home/dgtal/public_html/doc/docset ; fi
113116
## We publish the DGtalTools tags
114-
- if [ $DOC == "true" ]; then scp -i .travis/dgtal_rsa DGtal-tagfile [email protected]:/home/dgtal/public_html/doc/tags/;scp -i .travis/dgtal_rsa Board-tagfile [email protected]:/home/dgtal/public_html/doc/tags/; fi
117+
- if [ $UPLOAD_DOC == "true" ]; then scp -i .travis/dgtal_rsa DGtal-tagfile [email protected]:/home/dgtal/public_html/doc/tags/;scp -i .travis/dgtal_rsa Board-tagfile [email protected]:/home/dgtal/public_html/doc/tags/; fi
115118
- echo "All done..."
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
return_code=0
4+
return_code2=0
5+
return_code3=0
6+
HOMEPATH=$PWD
7+
8+
9+
## We first check that the doxygen.log is empty
10+
if [[ -s doxygen.log ]]
11+
then
12+
return_code=1
13+
echo "Doxygen log file not empty !"
14+
echo "====================================="
15+
cat doxygen.log
16+
echo "====================================="
17+
else
18+
return_code=0
19+
fi
20+
21+
## We check src code consitency
22+
cd src/
23+
$HOMEPATH/.travis/check_src_file_tag.sh
24+
if [[ $? -ne 0 ]]
25+
then
26+
return_code2=1;
27+
fi
28+
cd ..
29+
30+
## We check examples consistency
31+
#
32+
# TODO
33+
#
34+
35+
return_code=$((return_code + return_code2 + return_code3))
36+
exit $return_code

.travis/check_examples_file_tag.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
return_code=0
4+
5+
# Checking that examples has proper @file tag
6+
for file in `find * -type f \( -name \*.c -o -name \*.cpp -o -name \*.cxx -o -name \*.h -o -name \*.hpp -o -name \*.hxx \)`
7+
do
8+
expected_name=$file
9+
if ! $(grep -aqE "^\s*(\**|//[/!]|/\*[\*!])\s*?[@\\\\]example(\s+${expected_name})?\s*$" $file)
10+
then
11+
echo -E "Error in file $file:"
12+
echo -E " expecting \" * @example ${expected_name}\""
13+
echo -E " but found \"$(grep -m 1 -aP '[@\\](example|file)' $file)\""
14+
echo
15+
16+
return_code=1
17+
fi
18+
done
19+
20+
exit $return_code

.travis/check_src_file_tag.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
return_code=0
4+
5+
# Checking that source code has proper @file tag
6+
for file in `find * -type f \( -name \*.cpp -o -name \*.h -o -name \*.ih \)`
7+
do
8+
expected_name=$(basename $file)
9+
if ! $(grep -aqE "^\s*(\**|//[/!]|/\*[\*!])\s*?[@\\\\]file(\s+${expected_name})?\s*$" $file)
10+
then
11+
echo -E "Error in file $file:"
12+
echo -E " expecting \" * @file ${expected_name}\""
13+
echo -E " or simply \" * @file\""
14+
echo -E " but found \"$(grep -m 1 -aP '[@\\]file' $file)\""
15+
echo
16+
17+
return_code=1
18+
fi
19+
done
20+
21+
exit $return_code

ChangeLog.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## New Features / Critical Changes
44

55
- *Documentation*
6+
- Fixing all doxygen warnings.
7+
(Roland Denis, [#1182](https://github.com/DGtal-team/DGtal/pull/1182))
68
- New "@seeDGtalTools" doxygen command to cite a DGtalTools tool in
79
DGtal documentation (David Coeurjolly,
810
[#1179](https://github.com/DGtal-team/DGtal/pull/1179))
@@ -12,8 +14,21 @@
1214
voting (Boulc'h & Marlet, SGP 2012).
1315
(David Coeurjolly, [#1149](https://github.com/DGtal-team/DGtal/pull/1149))
1416

17+
- *Topology Package*
18+
- Adding periodic closure for KhalimskySpaceND and per-dimension closure
19+
specification.
20+
(Roland Denis, [#1086](https://github.com/DGtal-team/DGtal/pull/1086))
21+
- Adding CPreCellularGridSpaceND concept and KhalimskyPreSpaceND model
22+
to manipulate unbounded Khalimsky space and cells.
23+
KhalimskySpaceND now checks that all given cells are within the bounds.
24+
(Roland Denis, [#1086](https://github.com/DGtal-team/DGtal/pull/1086))
25+
1526
## Changes
1627
- *Configuration/General*
28+
- Travis Continuous integration will check that doxygen raises no warnings
29+
and that the documented file names are valid.
30+
(David Coeurjolly, Roland Denis,
31+
[#1182](https://github.com/DGtal-team/DGtal/pull/1182))
1732
- Cleaning remaining preprocessor directives related to C++11 features.
1833
(Roland Denis, [#1141](https://github.com/DGtal-team/DGtal/pull/1141))
1934
- Travis Continuous integration will check that DGtalTools still compiles with
@@ -74,6 +89,8 @@
7489
when displaying a small segment. Fix a non initialized attribute with
7590
some improvements on bounding box computation with orientation check.
7691
(B. Kerautret, [#1123](https://github.com/DGtal-team/DGtal/pull/1123))
92+
- Frechet Shortcut: fix implicit rounding.
93+
(I. Sivignon, [#1180](https://github.com/DGtal-team/DGtal/pull/1180))
7794

7895
- *Image Package*
7996
- Fixing issue [#779](https://github.com/DGtal-team/DGtal/issues/779) by
@@ -104,6 +121,8 @@
104121
[#1135](https://github.com/DGtal-team/DGtal/pull/1135))
105122
- Fix the extension removal in Obj filename export in Board3D. (David
106123
Coeurjolly,[#1154](https://github.com/DGtal-team/DGtal/pull/1154)))
124+
- Fix issue when drawing DSS with both points and bounding box. (David
125+
Coeurjolly,[#1186](https://github.com/DGtal-team/DGtal/pull/1186)))
107126

108127
- *Topology Package*
109128
- Fix wrong starting point for surface tracking in example code

doc/doxy.config.Board.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ WARN_FORMAT = "$file:$line: $text"
759759
# messages should be written. If left blank the output is written to standard
760760
# error (stderr).
761761

762-
WARN_LOGFILE =
762+
WARN_LOGFILE = @top_bindir@/doxygen.Board.log
763763

764764
#---------------------------------------------------------------------------
765765
# Configuration options related to the input files
@@ -800,6 +800,7 @@ FILE_PATTERNS = *.cpp \
800800
*.hpp \
801801
*.cxx \
802802
*.h \
803+
*.ih \
803804
*.dox
804805

805806
# The RECURSIVE tag can be used to specify whether or not subdirectories should
@@ -848,7 +849,7 @@ EXCLUDE_SYMBOLS =
848849
# that contain example code fragments that are included (see the \include
849850
# command).
850851

851-
EXAMPLE_PATH = html
852+
EXAMPLE_PATH =
852853

853854
# If the value of the EXAMPLE_PATH tag contains directories, you can use the
854855
# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and

doc/doxy.config.dox.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ WARN_FORMAT = "$file:$line: $text"
761761
# messages should be written. If left blank the output is written to standard
762762
# error (stderr).
763763

764-
WARN_LOGFILE =
764+
WARN_LOGFILE = @top_bindir@/doxygen.dox.log
765765

766766
#---------------------------------------------------------------------------
767767
# Configuration options related to the input files

doc/doxy.config.in

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ STRIP_FROM_PATH =
161161
# specify the list of include paths that are normally passed to the compiler
162162
# using the -I flag.
163163

164-
STRIP_FROM_INC_PATH = @top_srcdir@/src/DGtal/
164+
STRIP_FROM_INC_PATH = @top_srcdir@/src/
165165

166166
# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but
167167
# less readable) file names. This can be useful is your file systems doesn't
@@ -763,7 +763,7 @@ WARN_FORMAT = "$file:$line: $text"
763763
# messages should be written. If left blank the output is written to standard
764764
# error (stderr).
765765

766-
WARN_LOGFILE =
766+
WARN_LOGFILE = @top_bindir@/doxygen.log
767767

768768
#---------------------------------------------------------------------------
769769
# Configuration options related to the input files
@@ -881,7 +881,6 @@ EXAMPLE_RECURSIVE = YES
881881

882882
IMAGE_PATH = @top_srcdir@/src/DGtal/doc/images \
883883
@top_srcdir@/src/DGtal/doc/tutorials/images \
884-
@top_srcdir@/src/DGtal/base/doc/images \
885884
@top_srcdir@/src/DGtal/kernel/doc/images \
886885
@top_srcdir@/src/DGtal/graph/doc/images \
887886
@top_srcdir@/src/DGtal/dec/doc/images \
@@ -891,8 +890,7 @@ IMAGE_PATH = @top_srcdir@/src/DGtal/doc/images \
891890
@top_srcdir@/src/DGtal/math/doc/images \
892891
@top_srcdir@/src/DGtal/geometry/doc/images \
893892
@top_srcdir@/src/DGtal/topology/doc/images \
894-
@top_srcdir@/src/DGtal/shapes/doc/images \
895-
@top_srcdir@/src/DGtal/helpers/doc/images
893+
@top_srcdir@/src/DGtal/shapes/doc/images
896894

897895
# The INPUT_FILTER tag can be used to specify a program that doxygen should
898896
# invoke to filter for each input file. Doxygen will invoke the filter program
@@ -2007,15 +2005,15 @@ ENABLE_PREPROCESSING = YES
20072005
# The default value is: NO.
20082006
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
20092007

2010-
MACRO_EXPANSION = NO
2008+
MACRO_EXPANSION = YES
20112009

20122010
# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
20132011
# the macro expansion is limited to the macros specified with the PREDEFINED and
20142012
# EXPAND_AS_DEFINED tags.
20152013
# The default value is: NO.
20162014
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
20172015

2018-
EXPAND_ONLY_PREDEF = NO
2016+
EXPAND_ONLY_PREDEF = YES
20192017

20202018
# If the SEARCH_INCLUDES tag is set to YES, the include files in the
20212019
# INCLUDE_PATH will be searched if a #include is found.
@@ -2047,7 +2045,17 @@ INCLUDE_FILE_PATTERNS =
20472045
# recursively expanded use the := operator instead of the = operator.
20482046
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
20492047

2050-
PREDEFINED =
2048+
PREDEFINED = "BOOST_FUSION_ADAPT_STRUCT(x,y)=" \
2049+
"WITH_GMP=" \
2050+
"WITH_CAIRO=" \
2051+
"WITH_CGAL=" \
2052+
"WITH_EIGEN=" \
2053+
"WITH_HDF5=" \
2054+
"WITH_ITK=" \
2055+
"WITH_MAGICK=" \
2056+
"WITH_PATATE=" \
2057+
"WITH_QGLVIEWER="
2058+
20512059

20522060
# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
20532061
# tag can be used to specify a list of macro names that should be expanded. The
@@ -2085,8 +2093,7 @@ SKIP_FUNCTION_MACROS = YES
20852093
# the path). If a tag file is not located in the directory in which doxygen is
20862094
# run, you must also specify the path to the tagfile here.
20872095

2088-
TAGFILES = "DGtalTools-tagfile=http://dgtal.org/doc/tools/nightly/" \
2089-
"Board-tagfile=http://dgtal.org/doc/nightly/"
2096+
TAGFILES = "DGtalTools-tagfile=http://dgtal.org/doc/tools/nightly/"
20902097

20912098
# When a file name is specified after GENERATE_TAGFILE, doxygen will create a
20922099
# tag file that is based on the input files it reads. See section "Linking to

examples/arithmetic/approximation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file approximation.cpp
2+
* @file arithmetic/approximation.cpp
33
* @ingroup Examples
44
* @author Jacques-Olivier Lachaud (\c [email protected] )
55
* Laboratory of Mathematics (CNRS, UMR 5127), University of Savoie, France

examples/arithmetic/convergents-biginteger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @file convergents-biginteger.cpp
2+
* @file arithmetic/convergents-biginteger.cpp
33
* @ingroup Examples
44
* @author Jacques-Olivier Lachaud (\c [email protected] )
55
* Laboratory of Mathematics (CNRS, UMR 5127), University of Savoie, France

0 commit comments

Comments
 (0)