Permalink
Browse files

STYLE: Force making files more const compliant

Whenever possible, const should be used to prevent accidental
secondary effects from occuring when a reference to an
internal process object member variable can have it's
value changed outside of the process objects interface.

By using const versions of the itkGetConstObjectMacro,
the API can better restrict this from accidently happening.
  • Loading branch information...
1 parent 61c4fb2 commit 061ba22cb1c257bd061bbdf2ed33ca3793b3b3c9 @hjmjohnson hjmjohnson committed Dec 3, 2012
Showing with 117 additions and 100 deletions.
  1. +2 −2 BRAINSCommonLib/ApplyField.h
  2. +2 −3 BRAINSCommonLib/BRAINSFitHelper.h
  3. +2 −1 BRAINSCommonLib/BRAINSFitHelperTemplate.h
  4. +3 −4 BRAINSCommonLib/BRAINSFitHelperTemplate.hxx
  5. +5 −5 BRAINSCommonLib/CreateField.h
  6. +1 −1 BRAINSCommonLib/genericRegistrationHelper.h
  7. +2 −1 BRAINSCommonLib/itkFindCenterOfBrainFilter.h
  8. +3 −3 BRAINSCommonLib/itkOtsuHistogramMatchingImageFilter.h
  9. +6 −3 BRAINSConstellationDetector/src/BRAINSConstellationDetector2.h
  10. +4 −2 BRAINSConstellationDetector/src/BRAINSHoughEyeDetector.h
  11. +2 −2 BRAINSConstellationDetector/src/itkHoughTransformRadialVotingImageFilter.h
  12. +3 −4 BRAINSCut/BRAINSFeatureCreators/HistogramMatchingFilter/HistogramMatchingFilter.cxx
  13. +8 −3 BRAINSDemonWarp/DemonsPreprocessor.h
  14. +1 −1 BRAINSDemonWarp/DemonsRegistrator.h
  15. +2 −1 BRAINSDemonWarp/VDemonsPreprocessor.h
  16. +1 −1 BRAINSDemonWarp/VDemonsRegistrator.h
  17. +2 −1 BRAINSDemonWarp/VValidationInputParser.h
  18. +5 −2 BRAINSDemonWarp/ValidationInputParser.h
  19. +1 −1 BRAINSDemonWarp/itkSimpleDiffeomorphicRegistration.h
  20. +5 −4 BRAINSDemonWarp/itkVectorMultiResolutionPDEDeformableRegistration.h
  21. +3 −3 BRAINSSurfaceTools/BRAINSSurfaceCommon/itkHistogramMatchingQuadEdgeMeshFilter.h
  22. +1 −1 BRAINSSurfaceTools/BRAINSSurfaceCommon/itkMeshToMeshMetric.h
  23. +4 −4 BRAINSSurfaceTools/BRAINSSurfaceCommon/itkMeshToMeshRegistrationMethod.h
  24. +2 −2 ...rfaceTools/BRAINSSurfaceCommon/itkMultiResolutionQuadEdgeMeshSphericalDiffeomorphicDemonsFilter.h
  25. +1 −1 BRAINSSurfaceTools/BRAINSSurfaceFlattening/itkQuadEdgeMeshParam.h
  26. +1 −1 GTRACT/Common/itkAnatomicalBSplineFilter.h
  27. +1 −1 GTRACT/Common/itkAnatomicalVersorRigidFilter.h
  28. +1 −1 GTRACT/Common/itkComputeDiffusionTensorImageFilter.h
  29. +1 −1 GTRACT/Common/itkCreateSpatialObjectFilter.h
  30. +3 −3 GTRACT/Common/itkDtiFastMarchingCostFilter.h
  31. +2 −2 GTRACT/Common/itkDtiFastMarchingTrackingFilter.h
  32. +1 −1 GTRACT/Common/itkDwiToVectorImageFilter.h
  33. +1 −1 GTRACT/Common/itkEigenVectorToColorImageFilter.h
  34. +1 −1 GTRACT/Common/itkFastMarchingCostFunction.h
  35. +1 −1 GTRACT/Common/itkFixDicomImageFilter.h
  36. +5 −5 GTRACT/Common/itkGtractImageIO.h
  37. +1 −1 GTRACT/Common/itkGtractInverseDisplacementFieldImageFilter.h
  38. +4 −4 GTRACT/Common/itkGtractTransformIO.h
  39. +1 −1 GTRACT/Common/itkInvertBSplineFilter.h
  40. +1 −1 GTRACT/Common/itkOrient4dImageFilter.h
  41. +1 −1 GTRACT/Common/itkTensorToAnisotropyImageFilter.h
  42. +1 −1 GTRACT/Common/itkTimeSeriesVersorRigidFilter.h
  43. +1 −1 GTRACT/Common/itkTimeSeriesVersorScaleSkewFilter.h
  44. +1 −1 GTRACT/Common/itkVectorImageRegisterAffineFilter.h
  45. +1 −1 GTRACT/Common/itkVectorImageRegisterVersorRigidFilter.h
  46. +1 −1 GTRACT/Common/itkVectorImageRegisterVersorScaleSkewFilter.h
  47. +7 −3 ICCDEF/IccdefPreprocessor.h
  48. +1 −1 ICCDEF/IccdefRegistrator.h
  49. +7 −9 ICCDEF/itkMultiResolutionICCDeformableRegistration.h
@@ -32,8 +32,8 @@ class ApplyField : public Object
itkStaticConstMacro(ImageDimension, unsigned int, TInputImage::ImageDimension);
itkSetObjectMacro(InputImage, InputImageType);
- itkGetObjectMacro(InputImage, InputImageType);
- itkGetObjectMacro(OutputImage, OutputImageType);
+ itkGetConstObjectMacro(InputImage, InputImageType);
+ itkGetConstObjectMacro(OutputImage, OutputImageType);
/** Set/Get value to replace thresholded pixels. Pixels that lie *
* within Lower and Upper (inclusive) will be replaced with this
@@ -87,7 +87,7 @@ class BRAINSFitHelper : public Object
/** The preprocessedMoving volume SHOULD NOT BE SET, you can get it out of the
* algorithm.*/
- itkGetObjectMacro(PreprocessedMovingVolume, MovingVolumeType);
+ itkGetConstObjectMacro(PreprocessedMovingVolume, MovingVolumeType);
itkSetObjectMacro(FixedBinaryVolume, FixedBinaryVolumeType);
itkGetConstObjectMacro(FixedBinaryVolume, FixedBinaryVolumeType);
@@ -418,8 +418,7 @@ BRAINSFitHelper::GetCostMetric()
{
typedef typename TLocalCostMetric::FixedImageType FixedImageType;
typedef typename TLocalCostMetric::MovingImageType MovingImageType;
- typedef typename itk::BRAINSFitHelperTemplate<FixedImageType, MovingImageType>
- HelperType;
+ typedef typename itk::BRAINSFitHelperTemplate<FixedImageType, MovingImageType> HelperType;
typedef typename HelperType::MetricType GenericMetricType;
const typename HelperType::Pointer myHelper( dynamic_cast<HelperType *>(this->m_Helper.GetPointer() ) );
@@ -114,7 +114,8 @@ class BRAINSFitHelperTemplate : public Object
itkGetConstMacro(OutputMovingVolumeROI, std::string);
itkSetObjectMacro(CostMetricObject, MetricType);
- itkGetObjectMacro(CostMetricObject, MetricType);
+ itkGetObjectMacro(CostMetricObject, MetricType); //HACK: Should not provide this interface
+ itkGetConstObjectMacro(CostMetricObject, MetricType);
// TODO: This should be converted to use the
// interpolation mechanisms from GenericTransform
@@ -229,9 +229,8 @@ typename TransformType::Pointer
typename ImageMaskSpatialObjectType::Pointer mask = ImageMaskSpatialObjectType::New();
mask->SetImage( movingFindCenter->GetClippedImageMask() );
- typename CHMMaskImageType::Pointer ClippedMask = movingFindCenter->GetClippedImageMask();
- // itkUtil::WriteImage<CHMMaskImageType>( ClippedMask ,
- // std::string("MOVING_MASK.nii.gz"));
+ //typename CHMMaskImageType::ConstPointer ClippedMask = movingFindCenter->GetClippedImageMask();
+ // itkUtil::WriteImage<CHMMaskImageType>( ClippedMask , std::string("MOVING_MASK.nii.gz"));
mask->ComputeObjectToWorldTransform();
typename SpatialObjectType::Pointer p = dynamic_cast<SpatialObjectType *>( mask.GetPointer() );
@@ -263,7 +262,7 @@ typename TransformType::Pointer
typename ImageMaskSpatialObjectType::Pointer mask = ImageMaskSpatialObjectType::New();
mask->SetImage( fixedFindCenter->GetClippedImageMask() );
- typename CHMMaskImageType::Pointer ClippedMask = fixedFindCenter->GetClippedImageMask();
+ //typename CHMMaskImageType::ConstPointer ClippedMask = fixedFindCenter->GetClippedImageMask();
mask->ComputeObjectToWorldTransform();
typename SpatialObjectType::Pointer p = dynamic_cast<SpatialObjectType *>( mask.GetPointer() );
@@ -39,8 +39,8 @@ class CreateField : public Object
typedef typename ImageType::Pointer ImagePointer;
itkStaticConstMacro(ImageDimension, unsigned int, TImage::ImageDimension);
typedef Array<unsigned int> IterationsArrayType;
- itkGetObjectMacro(ImageOne, ImageType);
- itkGetObjectMacro(ImageTwo, ImageType);
+ itkGetConstObjectMacro(ImageOne, ImageType);
+ itkGetConstObjectMacro(ImageTwo, ImageType);
itkSetObjectMacro(ImageOne, ImageType);
itkSetObjectMacro(ImageTwo, ImageType);
itkSetMacro(NumberOfHistogramLevels, unsigned long);
@@ -61,8 +61,8 @@ class CreateField : public Object
typedef TImage InputImageType;
typedef typename InputImageType::PixelType InputPixelType;
typedef T2Image OutputImageType;
- itkGetObjectMacro(FixedImage, OutputImageType);
- itkGetObjectMacro(MovingImage, OutputImageType);
+ itkGetConstObjectMacro(FixedImage, OutputImageType);
+ itkGetConstObjectMacro(MovingImage, OutputImageType);
itkGetMacro(FixedImageMinimum, InputPixelType);
itkGetMacro(MovingImageMinimum, InputPixelType);
@@ -86,7 +86,7 @@ class CreateField : public Object
itkSetClampMacro( NumberOfLevels, unsigned short, 1,
NumericTraits<unsigned short>::max() );
itkSetMacro(NumberOfIterations, UnsignedIntArray);
- itkGetObjectMacro(DisplacementField, TDisplacementField);
+ itkGetConstObjectMacro(DisplacementField, TDisplacementField);
void StartNewLevel();
void Execute();
@@ -453,7 +453,7 @@ class ITK_EXPORT MultiModal3DMutualRegistrationHelper : public ProcessObject
// itkSetMacro( PermitParameterVariation, std::vector<int> );
itkSetObjectMacro(CostMetricObject, MetricType);
- itkGetObjectMacro(CostMetricObject, MetricType);
+ itkGetConstObjectMacro(CostMetricObject, MetricType);
itkSetMacro(NumberOfSamples, unsigned int);
itkSetMacro(NumberOfHistogramBins, unsigned int);
@@ -60,12 +60,13 @@ class ITK_EXPORT FindCenterOfBrainFilter :
itkGetConstMacro(CenterOfBrain, PointType);
itkGetObjectMacro(TrimmedImage, TInputImage);
+ itkGetConstObjectMacro(TrimmedImage, TInputImage);
itkSetConstObjectMacro(ImageMask, TMaskImage);
itkGetConstObjectMacro(ImageMask, TMaskImage);
// THIS IS OUTPUT ONLY itkSetObjectMacro(ClippedImageMask, TMaskImage);
- itkGetObjectMacro(ClippedImageMask, TMaskImage);
+ itkGetConstObjectMacro(ClippedImageMask, TMaskImage);
// DEBUGGING STUFF
itkSetMacro(GenerateDebugImages, bool);
@@ -142,9 +142,9 @@ class ITK_EXPORT OtsuHistogramMatchingImageFilter :
/** Methods to get the histograms of the source, reference, and
* output. Objects are only valid after Update() has been called
* on this filter. */
- itkGetObjectMacro(SourceHistogram, HistogramType);
- itkGetObjectMacro(ReferenceHistogram, HistogramType);
- itkGetObjectMacro(OutputHistogram, HistogramType);
+ itkGetConstObjectMacro(SourceHistogram, HistogramType);
+ itkGetConstObjectMacro(ReferenceHistogram, HistogramType);
+ itkGetConstObjectMacro(OutputHistogram, HistogramType);
#ifdef ITK_USE_CONCEPT_CHECKING
/** Begin concept checking */
@@ -154,13 +154,15 @@ class ITK_EXPORT BRAINSConstellationDetector2 :
/** Set the original input image before the Hough eye detector */
itkSetObjectMacro(OriginalInputImage, SImageType);
- itkGetObjectMacro(OriginalInputImage, SImageType);
+ itkGetConstObjectMacro(OriginalInputImage, SImageType);
// Get Basic Outputs
/** Get the versor transform */
itkGetObjectMacro(VersorTransform, VersorTransformType);
+ itkGetConstObjectMacro(VersorTransform, VersorTransformType);
itkGetObjectMacro(InvVersorTransform, VersorTransformType);
+ itkGetConstObjectMacro(InvVersorTransform, VersorTransformType);
/** Get the named points in original space */
const LandmarksMapType & GetOriginalPoints()
@@ -181,13 +183,14 @@ class ITK_EXPORT BRAINSConstellationDetector2 :
}
/** Get the interpolated output isotropic image */
- itkGetObjectMacro(OutputResampledImage, SImageType);
+ itkGetConstObjectMacro(OutputResampledImage, SImageType);
/** Get the output untransformed clipped volume */
- itkGetObjectMacro(OutputUntransformedClippedVolume, SImageType);
+ itkGetConstObjectMacro(OutputUntransformedClippedVolume, SImageType);
/** Get the Hough eye transform */
itkGetObjectMacro(HoughEyeTransform, VersorTransformType);
+ itkGetConstObjectMacro(HoughEyeTransform, VersorTransformType);
/** Set the Hough eye failure report */
void SetHoughEyeFailure(const bool failure)
@@ -146,10 +146,10 @@ class ITK_EXPORT BRAINSHoughEyeDetector :
itkSetMacro(WritedebuggingImagesLevel, unsigned int);
/** Get the accumulator image */
- itkGetObjectMacro(AccumulatorImage, TInputImage);
+ itkGetConstObjectMacro(AccumulatorImage, TInputImage);
/** Get the RoI image */
- itkGetObjectMacro(RoIImage, TInputImage);
+ itkGetConstObjectMacro(RoIImage, TInputImage);
/** Get the rotation angle of the alignment process */
itkGetMacro(RotAngle, InputPointType);
@@ -165,7 +165,9 @@ class ITK_EXPORT BRAINSHoughEyeDetector :
/** Get the versor transform of the detector */
itkGetObjectMacro(VersorTransform, VersorTransformType);
+ itkGetConstObjectMacro(VersorTransform, VersorTransformType);
itkGetObjectMacro(InvVersorTransform, VersorTransformType);
+ itkGetConstObjectMacro(InvVersorTransform, VersorTransformType);
/** Get/Set the failure report */
itkGetConstMacro(Failure, bool);
@@ -194,10 +194,10 @@ class ITK_EXPORT HoughTransformRadialVotingImageFilter :
itkGetConstMacro(GradientThreshold, InputCoordType);
/** Get the radius image */
- itkGetObjectMacro(RadiusImage, InternalImageType);
+ itkGetConstObjectMacro(RadiusImage, InternalImageType);
/** Get the accumulator image */
- itkGetObjectMacro(AccumulatorImage, InternalImageType);
+ itkGetConstObjectMacro(AccumulatorImage, InternalImageType);
/** Set the scale of the derivative function (using DoG) */
itkSetMacro(SigmaGradient, double);
@@ -247,14 +247,13 @@ main(int argc, char *argv[])
// //
typedef OtsuHistogramMatchingType::HistogramType HistogramType;
- HistogramType::Pointer srcHG = OHFilter->GetSourceHistogram();
- HistogramType::Pointer refHG = OHFilter->GetReferenceHistogram();
- HistogramType::Pointer outHG = OHFilter->GetOutputHistogram();
+ HistogramType::ConstPointer srcHG = OHFilter->GetSourceHistogram();
+ HistogramType::ConstPointer refHG = OHFilter->GetReferenceHistogram();
+ HistogramType::ConstPointer outHG = OHFilter->GetOutputHistogram();
HistogramType::ConstIterator srcIt = srcHG->Begin();
HistogramType::ConstIterator refIt = refHG->Begin();
HistogramType::ConstIterator outIt = outHG->Begin();
-
HistogramType::ConstIterator endIt = srcHG->End();
std::ofstream histFileStream;
@@ -81,7 +81,8 @@ class ITK_EXPORT DemonsPreprocessor : public Object
/** Set the initial Displacement Field. */
itkSetObjectMacro(InitialDisplacementField, TDisplacementField);
- itkGetObjectMacro(InitialDisplacementField, TDisplacementField);
+ itkGetObjectMacro(InitialDisplacementField, TDisplacementField); // Should provide modifiable form of this
+ itkGetConstObjectMacro(InitialDisplacementField, TDisplacementField);
/** Set the number of histogram levels to use. */
itkSetMacro(NumberOfHistogramLevels, unsigned long);
@@ -93,16 +94,20 @@ class ITK_EXPORT DemonsPreprocessor : public Object
virtual void Execute();
/** Get the output fixed image. */
- itkGetObjectMacro(OutputFixedImage, OutputImageType);
+ itkGetObjectMacro(OutputFixedImage, OutputImageType); //Hack should provide modifiable form of this
+ itkGetConstObjectMacro(OutputFixedImage, OutputImageType);
/** Get the output moving image. */
- itkGetObjectMacro(OutputMovingImage, OutputImageType);
+ itkGetObjectMacro(OutputMovingImage, OutputImageType); // HACK should provide modifiable form of this
+ itkGetConstObjectMacro(OutputMovingImage, OutputImageType);
/** Get the output moving image. */
itkGetObjectMacro(UnNormalizedMovingImage, OutputImageType);
+ itkGetConstObjectMacro(UnNormalizedMovingImage, OutputImageType);
/** Get the output moving image. */
itkGetObjectMacro(UnNormalizedFixedImage, OutputImageType);
+ itkGetConstObjectMacro(UnNormalizedFixedImage, OutputImageType);
/** Get minimum value of original fixed image. */
itkGetMacro(FixedImageMinimum, InputPixelType);
@@ -165,7 +165,7 @@ class DemonsRegistrator : public Object
virtual void Execute();
/** Get the deformation field. */
- itkGetObjectMacro(DisplacementField, TDisplacementField);
+ itkGetConstObjectMacro(DisplacementField, TDisplacementField);
/** Initialize registration at the start of new level. */
void StartNewLevel();
@@ -90,7 +90,8 @@ class ITK_EXPORT VDemonsPreprocessor : public Object
/** Set the initial Displacement Field. */
itkSetObjectMacro(InitialDisplacementField, TDisplacementField);
- itkGetObjectMacro(InitialDisplacementField, TDisplacementField);
+ itkGetObjectMacro(InitialDisplacementField, TDisplacementField); //HACK: Should provide modifiable form of this
+ itkGetConstObjectMacro(InitialDisplacementField, TDisplacementField);
/** Set the number of histogram levels to use. */
itkSetMacro(NumberOfHistogramLevels, unsigned long);
@@ -190,7 +190,7 @@ class VDemonsRegistrator : public Object
virtual void Execute();
/** Get the deformation field. */
- itkGetObjectMacro(DisplacementField, TDisplacementField);
+ itkGetConstObjectMacro(DisplacementField, TDisplacementField);
/** Initialize registration at the start of new level. */
void StartNewLevel();
@@ -116,7 +116,8 @@ class ITK_EXPORT VValidationInputParser : public Object
itkGetConstMacro(ForceCoronalZeroOrigin, bool);
/** Get pointer to the subject image. */
- itkGetObjectMacro(InitialDisplacementField, TDisplacementField);
+ itkGetObjectMacro(InitialDisplacementField, TDisplacementField); //HACK: Should provide modifiable form of this.
+ itkGetConstObjectMacro(InitialDisplacementField, TDisplacementField);
/** Get the number of histogram bins. */
itkGetConstMacro(NumberOfHistogramLevels, unsigned long);
@@ -121,16 +121,19 @@ class ITK_EXPORT ValidationInputParser : public Object
/** Get pointer to the atlas image. */
itkGetObjectMacro(TheMovingImage, ImageType);
+ itkGetConstObjectMacro(TheMovingImage, ImageType);
/** Get pointer to the subject image. */
- itkGetObjectMacro(TheFixedImage, ImageType);
+ itkGetObjectMacro(TheFixedImage, ImageType); // HACK: should provide modifieable version of this
+ itkGetConstObjectMacro(TheFixedImage, ImageType);
/**force Centered Image.*/
itkSetMacro(ForceCoronalZeroOrigin, bool);
itkGetConstMacro(ForceCoronalZeroOrigin, bool);
/** Get pointer to the subject image. */
- itkGetObjectMacro(InitialDisplacementField, TDisplacementField);
+ itkGetObjectMacro(InitialDisplacementField, TDisplacementField); //HACK: Should provide modifiable version of this
+ itkGetConstObjectMacro(InitialDisplacementField, TDisplacementField);
/** Get the number of histogram bins. */
itkGetConstMacro(NumberOfHistogramLevels, unsigned long);
@@ -41,7 +41,7 @@ class itkSimpleDiffeomorphicRegistration : public itk::Object
itkSetStringMacro(DisplacementFieldName);
itkSetStringMacro(DeformedImageName);
itkGetStringMacro(DeformedImageName);
- itkGetObjectMacro(DisplacementField, TDisplacementField);
+ itkGetConstObjectMacro(DisplacementField, TDisplacementField);
void Update();
protected:
@@ -189,19 +189,19 @@ class ITK_EXPORT VectorMultiResolutionPDEDeformableRegistration :
itkSetObjectMacro(RegistrationFilter, RegistrationType);
/** Get the internal registrator. */
- itkGetObjectMacro(RegistrationFilter, RegistrationType);
+ itkGetConstObjectMacro(RegistrationFilter, RegistrationType);
/** Set the fixed image pyramid. */
itkSetObjectMacro(FixedImagePyramid, FixedImagePyramidType);
/** Get the fixed image pyramid. */
- itkGetObjectMacro(FixedImagePyramid, FixedImagePyramidType);
+ itkGetConstObjectMacro(FixedImagePyramid, FixedImagePyramidType);
/** Set the moving image pyramid. */
itkSetObjectMacro(MovingImagePyramid, MovingImagePyramidType);
/** Get the moving image pyramid. */
- itkGetObjectMacro(MovingImagePyramid, MovingImagePyramidType);
+ itkGetConstObjectMacro(MovingImagePyramid, MovingImagePyramidType);
/** Set number of multi-resolution levels. */
virtual void SetNumberOfLevels(unsigned int num);
@@ -219,7 +219,8 @@ class ITK_EXPORT VectorMultiResolutionPDEDeformableRegistration :
itkSetObjectMacro(FieldExpander, FieldExpanderType);
/** Get the moving image pyramid. */
- itkGetObjectMacro(FieldExpander, FieldExpanderType);
+ itkGetObjectMacro(FieldExpander, FieldExpanderType); //HACK: This should use the future implemented itkGetModifiableObjectMacro
+ itkGetConstObjectMacro(FieldExpander, FieldExpanderType);
/** Get number of iterations per multi-resolution levels. */
virtual const unsigned int * GetNumberOfIterations() const
@@ -107,9 +107,9 @@ class HistogramMatchingQuadEdgeMeshFilter :
/** Methods to get the histograms of the source, reference, and
* output. Objects are only valid after Update() has been called
* on this filter. */
- itkGetObjectMacro(SourceHistogram, HistogramType);
- itkGetObjectMacro(ReferenceHistogram, HistogramType);
- itkGetObjectMacro(OutputHistogram, HistogramType);
+ itkGetConstObjectMacro(SourceHistogram, HistogramType);
+ itkGetConstObjectMacro(ReferenceHistogram, HistogramType);
+ itkGetConstObjectMacro(OutputHistogram, HistogramType);
protected:
HistogramMatchingQuadEdgeMeshFilter();
@@ -129,7 +129,7 @@ class ITK_EXPORT MeshToMeshMetric : public SingleValuedCostFunction
itkSetObjectMacro( Transform, TransformType );
/** Get a pointer to the Transform. */
- itkGetObjectMacro( Transform, TransformType );
+ itkGetConstObjectMacro( Transform, TransformType );
/** Set the parameters defining the Transform. */
void SetTransformParameters( const ParametersType & parameters ) const;
@@ -121,19 +121,19 @@ class ITK_EXPORT MeshToMeshRegistrationMethod : public ProcessObject
/** Set/Get the Optimizer. */
itkSetObjectMacro( Optimizer, OptimizerType );
- itkGetObjectMacro( Optimizer, OptimizerType );
+ itkGetConstObjectMacro( Optimizer, OptimizerType );
/** Set/Get the Metric. */
itkSetObjectMacro( Metric, MetricType );
- itkGetObjectMacro( Metric, MetricType );
+ itkGetConstObjectMacro( Metric, MetricType );
/** Set/Get the Transfrom. */
itkSetObjectMacro( Transform, TransformType );
- itkGetObjectMacro( Transform, TransformType );
+ itkGetConstObjectMacro( Transform, TransformType );
/** Set/Get the Interpolator. */
itkSetObjectMacro( Interpolator, InterpolatorType );
- itkGetObjectMacro( Interpolator, InterpolatorType );
+ itkGetConstObjectMacro( Interpolator, InterpolatorType );
/** Set/Get the initial transformation parameters. */
virtual void SetInitialTransformParameters( const ParametersType & param );
Oops, something went wrong.

0 comments on commit 061ba22

Please sign in to comment.