Skip to content

ENH: Make the histogram generator set up method private#1734

Merged
jhlegarreta merged 1 commit intoInsightSoftwareConsortium:masterfrom
jhlegarreta:MakeHistogramGeneratorSetUpMethodPrivate
Mar 30, 2020
Merged

ENH: Make the histogram generator set up method private#1734
jhlegarreta merged 1 commit intoInsightSoftwareConsortium:masterfrom
jhlegarreta:MakeHistogramGeneratorSetUpMethodPrivate

Conversation

@jhlegarreta
Copy link
Copy Markdown
Member

@jhlegarreta jhlegarreta commented Mar 29, 2020

Make the itk::HistogramThresholdImageFilter::SetUpHistogramGenerator
method introduced in commit 4217cc0 be private: no child classes should
be able to call the method since it is an essential step in the parent's
GenerateData method.

PR Checklist

  • No API changes were made (or the changes have been approved)
  • No major design changes were made (or the changes have been approved)
  • Added test (or behavior not changed)
  • Updated API documentation (or API not changed)
  • Added license to new files (if any)
  • Added Python wrapping to new files (if any) as described in ITK Software Guide Section 9.5
  • Added ITK examples for all new major features (if any)

@jhlegarreta jhlegarreta added type:Enhancement Improvement of existing methods or implementation area:Filtering Issues affecting the Filtering module labels Mar 29, 2020
@jhlegarreta jhlegarreta changed the title ENH: Make the histogram generator method private ENH: Make the histogram generator set up method private Mar 29, 2020
@jhlegarreta jhlegarreta force-pushed the MakeHistogramGeneratorSetUpMethodPrivate branch from 23938f7 to 6322100 Compare March 29, 2020 00:22
Copy link
Copy Markdown
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method was introduced a few days ago, right?

Make the `itk::HistogramThresholdImageFilter::SetUpHistogramGenerator`
method introduced in commit 4217cc0 be `private`: no child classes should
be able to call the method since it is an essential step in the parent's
`GenerateData` method.
@jhlegarreta jhlegarreta force-pushed the MakeHistogramGeneratorSetUpMethodPrivate branch from 6322100 to 8f8b7ca Compare March 29, 2020 01:15
@jhlegarreta
Copy link
Copy Markdown
Member Author

This method was introduced a few days ago, right?

Yes, less than a day ago:
#1732

That's why I marked that the PR does not involve changing the API.

Copy link
Copy Markdown
Member

@blowekamp blowekamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jhlegarreta jhlegarreta merged commit cb71284 into InsightSoftwareConsortium:master Mar 30, 2020
@jhlegarreta jhlegarreta deleted the MakeHistogramGeneratorSetUpMethodPrivate branch March 30, 2020 13:45
hjmjohnson pushed a commit to hjmjohnson/ITK that referenced this pull request May 6, 2026
…keHistogramGeneratorSetUpMethodPrivate

ENH: Make the histogram generator set up method private
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Filtering Issues affecting the Filtering module type:Enhancement Improvement of existing methods or implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants