Skip to content

PrintSelf methods are getting the wrong documentation #3401

Closed

Description

@jhlegarreta

Description

Some PrintSelf methods are getting the wrong documentation, e.g.
https://itk.org/Doxygen/html/classitk_1_1DemonsImageToImageMetricv4.html#aadc94300c4c450bce2be16537ffaa89d
https://itk.org/Doxygen/html/classitk_1_1SphereSpatialFunction.html#a92b3d53d4c74be128644a8df65d62c2e

Expected information

The PrintSelf methods should all have the same documentation, i.e. that of the base class, as it is a method that performs the basic same operation in all child classes.

Actual information

For the above cases, the PrintSelf method is getting the documentation of the immediate next method member, which in the above cases happen to be two private ivars:
https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Registration/Metricsv4/include/itkDemonsImageToImageMetricv4.h#L146
https://github.com/InsightSoftwareConsortium/ITK/blob/master/Modules/Core/Common/include/itkSphereSpatialFunction.h#L77

Versions

ITK 5.3.0

Very likely master as well.

Additional Information

This is likely to be happening for many other methods.

Activity

  1. added
    type:Documentation
    on Apr 30, 2022
  2. jhlegarreta commented on May 2, 2022

    @jhlegarreta
    MemberAuthor

    @blowekamp OK, I see that both are fixed in the linked documentation. Thanks for doing this.

    I was pointing to the "official" documentation, but looks like we have nightly documentation now, which is wonderful.

    It'd be good to be able to see the documentation of previous releases, and the nightly to be marked with the appropriate "post-" or commit version.

    Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:Documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions