ITK/Deprecation Procedure: Difference between revisions
From KitwarePublic
< ITK
Jump to navigationJump to search
(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...) |
(No difference)
|
Revision as of 19:02, 1 May 2008
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 );