29 template<
unsigned int VOffsetDimension >
54 template<
unsigned int VOffsetDimension = 2 >
62 itkStaticConstMacro(
Dimension,
unsigned int, VOffsetDimension);
80 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
81 { result[i] =
m_Offset[i] + offset[i]; }
91 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
92 { result[i] =
m_Offset[i] + size[i]; }
100 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
110 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
122 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
131 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
141 for (
unsigned int i = 0; i < VOffsetDimension; i++ )
153 for (
unsigned int i = 0; i < VOffsetDimension && same; i++ )
164 for (
unsigned int i = 0; i < VOffsetDimension && same; i++ )
199 {
for (
unsigned int i = 0; i < VOffsetDimension; ++i ) {
m_Offset[i] = value; } }
210 #if defined( CABLE_CONFIGURATION )
213 void operator=(
const Self &);
228 template<
unsigned int VOffsetDimension >
235 for (
unsigned int i = 0; i < VOffsetDimension; ++i )
251 template<
unsigned int VOffsetDimension >
252 Offset< VOffsetDimension >
263 template<
unsigned int VOffsetDimension >
264 std::ostream & operator<<(std::ostream & os, const Offset< VOffsetDimension > & ind)
267 unsigned int dimlim = VOffsetDimension - 1;
268 for (
unsigned int i = 0; i < dimlim; ++i )
270 os << ind[i] <<
", ";
272 if ( VOffsetDimension >= 1 )
274 os << ind[VOffsetDimension - 1];