Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reformat all Imath header comments to doxygen style #81

Merged
merged 5 commits into from
Feb 1, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docs/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,20 @@ GENERATE_LATEX = NO
GENERATE_MAN = NO
GENERATE_RTF = NO
CASE_SENSE_NAMES = NO
INPUT = ../src/Imath ../src/Half
INPUT = ../src/Imath/
RECURSIVE = YES
QUIET = YES
JAVADOC_AUTOBRIEF = YES
GENERATE_HTML = NO
GENERATE_XML = YES
DISTRIBUTE_GROUP_DOC = YES
MACRO_EXPANSION = YES
ENABLE_PREPROCESSING = YES
PREDEFINED = IMATH_CONSTEXPR14=constexpr \
IMATH_HOSTDEVICE=
IMATH_HOSTDEVICE= \
IMATH_INTERNAL_NAMESPACE=Imath \
IMATH_INTERNAL_NAMESPACE_SOURCE_ENTER="namespace Imath {" \
IMATH_INTERNAL_NAMESPACE_SOURCE_EXIT="}" \
IMATH_INTERNAL_NAMESPACE_HEADER_ENTER="namespace Imath {" \
IMATH_INTERNAL_NAMESPACE_HEADER_EXIT="}"

6 changes: 3 additions & 3 deletions docs/classes/Box.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ Example:
.. doxygentypedef:: Box3d

.. doxygenclass:: Imath::Box
:members:
:undoc-members:
:members:

.. doxygenclass:: Imath::Box< Vec2< T > >
:members:
:undoc-members:
:members:

.. doxygenclass:: Imath::Box< Vec3< T > >
:members:
:undoc-members:
:members:



4 changes: 2 additions & 2 deletions docs/classes/Color3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Color3
The ``Color3`` class template represents a 3-component color, with
pre-defined typedefs of ``unsigned char``, ``half``, and ``float``.

The ``Color3`` class is derived from ``Imath::Vec3`` and thus has
The ``Color3`` class inherits from ``Vec3`` and thus has
fields named ``x``, ``y``, and ``z``. The class itself implies no
specific interpretation of the values.

Expand All @@ -26,6 +26,6 @@ Example:
.. doxygentypedef:: C3f

.. doxygenclass:: Imath::Color3
:members:
:undoc-members:
:members:

6 changes: 3 additions & 3 deletions docs/classes/Color4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ The ``Color4`` class template represents a 4-component color (red,
green, blue, and alpha), with pre-defined typedefs of ``unsigned
char``, ``half``, and ``float``.

The ``Color4`` class is *not* derived from ``Imath::Vec4``. Its
fields are named ``r``, ``g``, ``b``, and ``a``. The class itself implies no
The ``Color4`` class is *not* derived from ``Vec4``. Its fields are
named ``r``, ``g``, ``b``, and ``a``. The class itself implies no
specific interpretation of the values.

Example:
Expand All @@ -27,6 +27,6 @@ Example:
.. doxygentypedef:: C4f

.. doxygenclass:: Imath::Color4
:members:
:undoc-members:
:members:

2 changes: 1 addition & 1 deletion docs/classes/Euler.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Example:
.. doxygentypedef:: Eulerd

.. doxygenclass:: Imath::Euler
:members:
:undoc-members:
:members:



2 changes: 1 addition & 1 deletion docs/classes/Frustum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Example:
.. doxygentypedef:: Frustumd

.. doxygenclass:: Imath::Frustum
:members:
:undoc-members:
:members:


2 changes: 1 addition & 1 deletion docs/classes/Interval.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Example:
.. doxygentypedef:: Intervald

.. doxygenclass:: Imath::Interval
:members:
:undoc-members:
:members:


2 changes: 1 addition & 1 deletion docs/classes/Line3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Example:
.. doxygentypedef:: Line3d

.. doxygenclass:: Imath::Line3
:members:
:undoc-members:
:members:



2 changes: 1 addition & 1 deletion docs/classes/Matrix22.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ Example:
.. doxygentypedef:: M22d

.. doxygenclass:: Imath::Matrix22
:members:
:undoc-members:
:members:

2 changes: 1 addition & 1 deletion docs/classes/Matrix44.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ Example:
.. doxygentypedef:: M44d

.. doxygenclass:: Imath::Matrix44
:members:
:undoc-members:
:members:

2 changes: 1 addition & 1 deletion docs/classes/Plane3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Example:
.. doxygentypedef:: Plane3d

.. doxygenclass:: Imath::Plane3
:members:
:undoc-members:
:members:



2 changes: 1 addition & 1 deletion docs/classes/Quat.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ Example:
.. doxygentypedef:: Quatf

.. doxygenclass:: Imath::Quat
:members:
:undoc-members:
:members:
2 changes: 1 addition & 1 deletion docs/classes/Rand32.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ generates a uniformly distributed sequence with a period length of
2^32.

.. doxygenclass:: Imath::Rand32
:members:
:undoc-members:
:members:



2 changes: 1 addition & 1 deletion docs/classes/Rand48.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ the C Standard Library functions erand48(), nrand48() & company. It
generates a uniformly distributed sequence.

.. doxygenclass:: Imath::Rand48
:members:
:undoc-members:
:members:


2 changes: 1 addition & 1 deletion docs/classes/Shear6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Example:
.. doxygentypedef:: Shear6f

.. doxygenclass:: Imath::Shear6
:members:
:undoc-members:
:members:

2 changes: 1 addition & 1 deletion docs/classes/Sphere3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Example:
.. doxygentypedef:: Sphere3f

.. doxygenclass:: Imath::Sphere3
:members:
:undoc-members:
:members:

1 change: 1 addition & 0 deletions docs/classes/Vec2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ Example:
.. doxygentypedef:: V2d

.. doxygenclass:: Imath::Vec2
:undoc-members:
:members:

1 change: 1 addition & 0 deletions docs/classes/Vec3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ Example:
.. doxygentypedef:: V3d

.. doxygenclass:: Imath::Vec3
:undoc-members:
:members:

1 change: 1 addition & 0 deletions docs/classes/Vec4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ Example:
.. doxygentypedef:: V4d

.. doxygenclass:: Imath::Vec4
:undoc-members:
:members:

2 changes: 1 addition & 1 deletion docs/classes/half.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ Example:
:language: c++

.. doxygenclass:: Imath::half
:members:
:undoc-members:
:members:
12 changes: 6 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@

# General information about the project.
project = 'Imath'
copyright = '2020, Contributors to the OpenEXR Project'
copyright = '2021, Contributors to the OpenEXR Project'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '3.0'
version = '1.0'
# The full version, including alpha/beta/rc tags.
release = '3.0.0'
release = '1.0.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -116,10 +116,10 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#html_theme = 'agogo'
#html_theme = 'default'
#html_theme = 'default' # good
#html_theme = 'nature' # too green
#html_theme = 'bizstyle' # OK
html_theme = 'sphinxdoc'
html_theme = 'bizstyle' # OK
#html_theme = 'sphinxdoc'

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down
20 changes: 20 additions & 0 deletions docs/functions/box.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Box
###

Functions to operate on bounding boxes.

.. doxygenfunction:: clip

.. doxygenfunction:: closestPointInBox

.. doxygenfunction:: transform

.. doxygenfunction:: affineTransform

.. doxygenfunction:: findEntryAndExitPoints

.. doxygenfunction:: intersects




22 changes: 22 additions & 0 deletions docs/functions/color.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Color
#####

Functions that operate on colors.

.. doxygenfunction:: hsv2rgb

.. doxygenfunction:: template<class T> constexpr Color4<T> hsv2rgb(const Color4<T> &hsv) noexcept

.. doxygenfunction:: template<class T> constexpr Vec3<T> hsv2rgb(const Vec3<T> &hsv) noexcept

.. doxygenfunction:: template<class T> constexpr Color4<T> rgb2hsv(const Color4<T> &rgb) noexcept

.. doxygenfunction:: template<class T> constexpr Vec3<T> rgb2hsv(const Vec3<T> &rgb) noexcept

.. doxygenfunction:: template<class T> constexpr PackedColor rgb2packed(const Color4<T> &c) noexcept

.. doxygenfunction:: template<class T> constexpr PackedColor rgb2packed(const Vec3<T> &c) noexcept

.. doxygenfunction:: template<class T> void packed2rgb(PackedColor packed, Color4<T> &out) noexcept

.. doxygenfunction:: template<class T> void packed2rgb(PackedColor packed, Vec3<T> &out) noexcept
50 changes: 0 additions & 50 deletions docs/functions/limits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,53 +9,3 @@ template specializations for most basic types.
:members:
:undoc-members:

.. doxygenstruct:: Imath::limits< char >
:members:
:undoc-members:

.. doxygenstruct:: Imath::limits< signed char >
:members:
:undoc-members:

.. doxygenstruct:: Imath::limits< unsigned char >
:members:
:undoc-members:

.. doxygenstruct:: Imath::limits< short >
:members:
:undoc-members:

.. doxygenstruct:: Imath::limits< unsigned short >
:members:
:undoc-members:

.. doxygenstruct:: Imath::limits< int >
:members:
:undoc-members:

.. doxygenstruct:: Imath::limits< unsigned int >
:members:
:undoc-members:

.. doxygenstruct:: Imath::limits< long >
:members:
:undoc-members:

.. doxygenstruct:: Imath::limits< unsigned long >
:members:
:undoc-members:

.. doxygenstruct:: Imath::limits< float >
:members:
:undoc-members:

.. doxygenstruct:: Imath::limits< double >
:members:
:undoc-members:

.. doxygenstruct:: Imath::limits< long double >
:members:
:undoc-members:



8 changes: 4 additions & 4 deletions docs/functions/roots.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ Roots

Functions to compute roots of simple equations.

.. doxygenfunction:: solveLinear(T a, T b, T& x)
.. doxygenfunction:: solveLinear

.. doxygenfunction:: solveQuadratic(T a, T b, T c, T x[2])
.. doxygenfunction:: solveQuadratic

.. doxygenfunction:: solveNormalizedCubic(T r, T s, T t, T x[3])
.. doxygenfunction:: solveNormalizedCubic

.. doxygenfunction:: solveCubic(T a, T b, T c, T d, T x[3])
.. doxygenfunction:: solveCubic



Expand Down
2 changes: 2 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Imath Documentation
:caption: Imath Functions
:maxdepth: 3

functions/box
functions/color
functions/frame
functions/gl
functions/glu
Expand Down
Loading