Skip to content

Commit 96bd3fc

Browse files
committed
Wrapped all internal API sections in doxygen conditions OPENVDB_DOCS_INTERNAL
Signed-off-by: Nick Avramoussis <[email protected]>
1 parent ead4ca6 commit 96bd3fc

Some content is hidden

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

47 files changed

+158
-48
lines changed

CHANGES

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,8 +1544,7 @@ Version 3.2.0 - August 10, 2016
15441544
- Fixed isApproxZero() so that it works correctly when tolerance is zero.
15451545
[Reported by Joshua Olson]
15461546
- Fixed bugs in tree::NodeUnion that could cause crashes.
1547-
- Fixed memory leak in
1548-
tools::mesh_to_volume_internal::ExpandNarrowband
1547+
- Fixed memory leak in a tools::meshToVolume sub-tool (expandNarrowband).
15491548
[Reported by Kévin Dietrich]
15501549
- Fixed parameter type inconsistencies in math/Stencils.h and
15511550
tools/RayIntersector.h.

doc/CMakeLists.txt

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ include(GNUInstallDirs)
1919
# with OPENVDB_BUILD_DOCS=ON and either OPENVDB_BUILD_HOUDINI_PLUGIN=ON or
2020
# USE_HOUDINI=ON will define Houdini_VERSION. If Houdini_VERSION is not set,
2121
# all documentation is included.
22-
option(OPENVDB_DOXYGEN_HOUDINI "Build Houdini documentation" ON)
2322
option(OPENVDB_DOXYGEN_AX "Build AX documentation" ON)
23+
option(OPENVDB_DOXYGEN_HOUDINI "Build Houdini documentation" ON)
24+
option(OPENVDB_DOXYGEN_INTERNAL [=[
25+
Enable documentation of methods and classes which have been explicitly marked as internal
26+
]=] OFF)
2427

2528
find_package(Doxygen REQUIRED doxygen)
2629
if(MINIMUM_DOXYGEN_VERSION)
@@ -59,10 +62,12 @@ set(DOXYGEN_FILE_PATTERNS *.h *h.in) # headers only
5962
set(DOXYGEN_EXTENSION_MAPPING .in=C) # parse CMake config headers as C
6063
set(DOXYGEN_IMAGE_PATH "doc/img")
6164
set(DOXYGEN_RECURSIVE NO)
65+
set(DOXYGEN_QUIET YES)
6266

6367
set(DOXYGEN_GENERATE_HTML YES)
6468
set(DOXYGEN_GENERATE_MAN NO)
6569
set(DOXYGEN_GENERATE_LATEX NO)
70+
set(DOXYGEN_GENERATE_TODOLIST NO)
6671

6772
set(DOXYGEN_HTML_COLORSTYLE_HUE 4)
6873
set(DOXYGEN_HTML_COLORSTYLE_SAT 222)
@@ -72,18 +77,32 @@ set(DOXYGEN_EXTRACT_ALL YES)
7277
set(DOXYGEN_EXTRACT_STATIC YES)
7378
set(DOXYGEN_EXTRACT_LOCAL_CLASSES NO)
7479

80+
# Allow for root directory paths to be listed (e.g. openvdb/io/File.h)
81+
# Rather than just the file names (e.g. File.h). This makes it far
82+
# easier to navigate the docs
83+
set(DOXYGEN_FULL_PATH_NAMES YES)
84+
# Should be the same as the WORKING_DIRECTORY argument to doxygen_add_docs
85+
set(DOXYGEN_STRIP_FROM_PATH "${CMAKE_SOURCE_DIR}")
86+
set(DOXYGEN_STRIP_FROM_INC_PATH
87+
"${CMAKE_SOURCE_DIR}/openvdb"
88+
"${CMAKE_SOURCE_DIR}/openvdb_ax"
89+
"${CMAKE_SOURCE_DIR}/openvdb_houdini")
90+
# Shows which source files generated the respected doxygen docs
91+
# at the bottom of each html page. Don't bother listing these.
92+
set(DOXYGEN_SHOW_USED_FILES NO)
93+
# When doxygen adds the source code for each header (see VERBATIM_HEADERS)
94+
# don't remove the actual doxygen comments
95+
set(DOXYGEN_STRIP_CODE_COMMENTS NO)
96+
# Don't add an alpha index of all classes (it's not particularly useful)
7597
set(DOXYGEN_ALPHABETICAL_INDEX NO)
7698
set(DOXYGEN_DISTRIBUTE_GROUP_DOC YES)
77-
set(DOXYGEN_FULL_PATH_NAMES NO)
78-
set(DOXYGEN_GENERATE_TODOLIST NO)
7999
set(DOXYGEN_HIDE_IN_BODY_DOCS YES)
80100
set(DOXYGEN_HIDE_SCOPE_NAMES YES)
81101
set(DOXYGEN_INLINE_INHERITED_MEMB YES)
82102
set(DOXYGEN_MACRO_EXPANSION YES)
83-
set(DOXYGEN_CLASS_DIAGRAMS NO) # @todo use dot with class diagrams for relevant classes
84-
set(DOXYGEN_ENABLED_SECTIONS "")
103+
# @todo use dot with class diagrams for relevant classes
104+
set(DOXYGEN_CLASS_DIAGRAMS NO)
85105

86-
set(DOXYGEN_QUIET YES)
87106

88107
set(DOXYGEN_ALIASES
89108
[[ijk="(<i>i</i>,&nbsp;<i>j</i>,&nbsp;<i>k</i>)"]]
@@ -117,6 +136,12 @@ set(DOXYGEN_PREDEFINED
117136
[[__declspec(x):= __attribute__(x):=]]
118137
"OPENVDB_USE_LOG4CPLUS=")
119138

139+
set(DOXYGEN_ENABLED_SECTIONS "")
140+
141+
if(OPENVDB_DOXYGEN_INTERNAL)
142+
list(APPEND DOXYGEN_ENABLED_SECTIONS "OPENVDB_DOCS_INTERNAL")
143+
endif()
144+
120145
if(OPENVDB_DOXYGEN_HOUDINI)
121146
# Append Houdini-specific settings to the Doxygen config file.
122147
if(Houdini_VERSION)

doc/changes.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,9 +1954,8 @@ Bug fixes:
19541954
<I>[Reported by Joshua&nbsp;Olson]</I>
19551955
- Fixed bugs in @vdblink::tree::NodeUnion NodeUnion@endlink that could cause
19561956
crashes.
1957-
- Fixed memory leak in
1958-
@vdblink::tools::mesh_to_volume_internal::ExpandNarrowband
1959-
tools::mesh_to_volume_internal::ExpandNarrowband@endlink
1957+
- Fixed memory leak in a @vdblink::tools::meshToVolume tools::meshToVolume@endlink
1958+
sub-tool (expandNarrowband).
19601959
<I>[Reported by K&eacute;vin&nbsp;Dietrich]</I>
19611960
- Fixed parameter type inconsistencies in @link math/Stencils.h@endlink and
19621961
@link tools/RayIntersector.h@endlink.

openvdb/openvdb/Grid.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,6 +1779,7 @@ createLevelSet(Real voxelSize, Real halfWidth)
17791779

17801780
////////////////////////////////////////
17811781

1782+
/// @cond OPENVDB_DOCS_INTERNAL
17821783

17831784
namespace internal {
17841785

@@ -1803,6 +1804,7 @@ struct GridApplyImpl<OpT, GridBaseT, TypeList<GridT, GridTs...>>
18031804

18041805
} // namespace internal
18051806

1807+
/// @endcond
18061808

18071809
template<typename GridTypeListT, typename OpT>
18081810
inline bool

openvdb/openvdb/Platform.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010

1111
/// @name Utilities
1212
/// @{
13-
/// @cond OPENVDB_VERSION_INTERNAL
13+
/// @cond OPENVDB_DOCS_INTERNAL
1414
#define OPENVDB_PREPROC_STRINGIFY_(x) #x
1515
/// @endcond
1616
/// @brief Return @a x as a string literal. If @a x is a macro,
1717
/// return its value as a string literal.
1818
/// @hideinitializer
1919
#define OPENVDB_PREPROC_STRINGIFY(x) OPENVDB_PREPROC_STRINGIFY_(x)
2020

21-
/// @cond OPENVDB_VERSION_INTERNAL
21+
/// @cond OPENVDB_DOCS_INTERNAL
2222
#define OPENVDB_PREPROC_CONCAT_(x, y) x ## y
2323
/// @endcond
2424
/// @brief Form a new token by concatenating two existing tokens.

openvdb/openvdb/TypeList.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace openvdb {
2121
OPENVDB_USE_VERSION_NAMESPACE
2222
namespace OPENVDB_VERSION_NAME {
2323

24-
/// @cond OPENVDB_TYPES_INTERNAL
24+
/// @cond OPENVDB_DOCS_INTERNAL
2525

2626
template<typename... Ts> struct TypeList; // forward declaration
2727

openvdb/openvdb/Types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ template<typename FromType, typename ToType> struct CopyConstness {
317317
using Type = typename std::remove_const<ToType>::type;
318318
};
319319

320-
/// @cond OPENVDB_TYPES_INTERNAL
320+
/// @cond OPENVDB_DOCS_INTERNAL
321321
template<typename FromType, typename ToType> struct CopyConstness<const FromType, ToType> {
322322
using Type = const ToType;
323323
};

openvdb/openvdb/math/LegacyFrustum.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ namespace openvdb {
1717
OPENVDB_USE_VERSION_NAMESPACE
1818
namespace OPENVDB_VERSION_NAME {
1919
namespace math {
20+
21+
/// @cond OPENVDB_DOCS_INTERNAL
22+
2023
namespace internal {
2124

2225
/// @brief LegacyFrustum class used at DreamWorks for converting old vdb files.
@@ -158,6 +161,9 @@ class LegacyFrustum
158161
};
159162

160163
} // namespace internal
164+
165+
/// @endcond
166+
161167
} // namespace math
162168
} // namespace OPENVDB_VERSION_NAME
163169
} // namespace openvdb

openvdb/openvdb/math/Operators.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ struct OpMagnitude {
7575
}
7676
};
7777

78+
/// @cond OPENVDB_DOCS_INTERNAL
7879

7980
namespace internal {
8081

@@ -87,6 +88,8 @@ struct ReturnValue {
8788

8889
} // namespace internal
8990

91+
/// @endcond
92+
9093
// ---- Operators defined in index space
9194

9295

openvdb/openvdb/points/IndexFilter.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace points {
6363

6464
////////////////////////////////////////
6565

66-
66+
/// @cond OPENVDB_DOCS_INTERNAL
6767

6868
namespace index_filter_internal {
6969

@@ -97,6 +97,8 @@ generateRandomSubset(const unsigned int seed, const IntType n, const IntType m)
9797

9898
} // namespace index_filter_internal
9999

100+
/// @endcond
101+
100102

101103
/// Index filtering on active / inactive state of host voxel
102104
template <bool On>

0 commit comments

Comments
 (0)