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

COMP: Use C++11 override directly. #10

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions include/itkMetamorphosisImageRegistrationMethodv4.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ public TimeVaryingVelocityFieldImageRegistrationMethodv4<TFixedImage, TMovingIma
FieldPointer GetMetricDerivative(FieldPointer field, bool useImageGradients);
void UpdateControls();
void StartOptimization();
void GenerateData();
void PrintSelf(std::ostream& os, Indent indent) const;
void GenerateData() override;
void PrintSelf(std::ostream& os, Indent indent) const override;

private:
MetamorphosisImageRegistrationMethodv4(const Self&); // Intentionally not implemened
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ class TimeVaryingVelocityFieldSemiLagrangianIntegrationImageFilter :
TimeVaryingVelocityFieldSemiLagrangianIntegrationImageFilter();
~TimeVaryingVelocityFieldSemiLagrangianIntegrationImageFilter();

void PrintSelf( std::ostream & os, Indent indent ) const ITK_OVERRIDE;
virtual void BeforeThreadedGenerateData() ITK_OVERRIDE;
virtual void ThreadedGenerateData( const OutputRegionType &, ThreadIdType ) ITK_OVERRIDE;
void PrintSelf( std::ostream & os, Indent indent ) const override;
void BeforeThreadedGenerateData() override;
void ThreadedGenerateData( const OutputRegionType &, ThreadIdType ) override;
VectorType IntegrateVelocityAtPoint( const PointType &initialSpatialPoint, const TimeVaryingVelocityFieldType * inputField );

DisplacementFieldExtrapolatorPointer m_DisplacementFieldExtrapolator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class TimeVaryingVelocityFieldSemiLagrangianTransform :

/** Trigger the computation of the displacement field by integrating
* the time-varying velocity field. */
virtual void IntegrateVelocityField() ITK_OVERRIDE;
void IntegrateVelocityField() override;
itkBooleanMacro(UseInverse);
itkSetMacro(UseInverse, bool);
itkGetConstMacro(UseInverse, bool);
Expand Down
8 changes: 4 additions & 4 deletions include/itkWrapExtrapolateImageFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class WrapExtrapolateImageFunction:
* Returns the extrapolated image intensity at a
* specified position
*/
virtual OutputType EvaluateAtContinuousIndex(
OutputType EvaluateAtContinuousIndex(
const ContinuousIndexType & index) const ITK_OVERRIDE
{

Expand Down Expand Up @@ -129,8 +129,8 @@ class WrapExtrapolateImageFunction:
* Returns the extrapolated image intensity at a
* specified position.
*/
virtual OutputType EvaluateAtIndex(
const IndexType & index) const ITK_OVERRIDE
OutputType EvaluateAtIndex(
const IndexType & index) const override
{
IndexType nindex;

Expand All @@ -156,7 +156,7 @@ class WrapExtrapolateImageFunction:
WrapExtrapolateImageFunction()
{ m_Interpolator = dynamic_cast<InterpolatorType*>(LinearInterpolatorType::New().GetPointer()); }
~WrapExtrapolateImageFunction(){}
void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE
void PrintSelf(std::ostream & os, Indent indent) const override
{
Superclass::PrintSelf(os, indent);
os << indent << "Interpolator: " << this->m_Interpolator << std::endl;
Expand Down