ITK/Deprecation Procedure

From KitwarePublic
< ITK
Revision as of 19:02, 1 May 2008 by Ibanez (talk | contribs) (New page: This page describes the procedure to be followed when deprecating code from ITK. The overall procedure involves the following: * Use itkLegacyMacros * Leave the deprecated methods for o...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This page describes the procedure to be followed when deprecating code from ITK.

The overall procedure involves the following:

  • Use itkLegacyMacros
  • Leave the deprecated methods for one release
  • Remove at the next release.


Example

KernelTransforms case

In the KernelTransforms we replaced the method

  Matrix & ComputeG();

with the method

  void ComputeG( Matrix & m );


Insertion of Legacy Macros

 /**
  * \deprecated in ITK 3.6, please use void ComputeG(vector,gmatrix) instead.
  */
 itkLegacyMacro( virtual const GMatrixType & ComputeG(const InputVectorType& landmarkVector) const );