[Insight-users] Get-methods in itk::BoundingBox
Ivo Wolf
i.wolf at dkfz-heidelberg.de
Fri, 30 Jan 2004 22:12:24 +0100
Hello,
most of the Get-methods of itk::BoundingBox are not const.
The reason is probably that they are calling ComputeBoundingBox(),
which changes m_Bounds and therefore cannot be const
(as long as m_Bounds is not defined mutable).
Two methods do not call ComputeBoundingBox():
GetBounds (which is const and generated by a macro) and IsInside.
Is this deliberately so?
It would be nice to some const Get-methods (or at least keep GetBounds
const), because otherwise the bounding-box can not be used in
other const-methods.
Regards,
Ivo