ITK  6.0.0
Insight Toolkit
itkImageRegionSplitterDirection.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkImageRegionSplitterDirection_h
19#define itkImageRegionSplitterDirection_h
20
22
23namespace itk
24{
35{
36public:
37 ITK_DISALLOW_COPY_AND_MOVE(ImageRegionSplitterDirection);
38
44
46 itkNewMacro(Self);
47
49 itkOverrideGetNameOfClassMacro(ImageRegionSplitterDirection);
50
55 itkGetConstMacro(Direction, unsigned int);
56 itkSetMacro(Direction, unsigned int);
60protected:
62
63
64 unsigned int
65 GetNumberOfSplitsInternal(unsigned int dim,
66 const IndexValueType regionIndex[],
67 const SizeValueType regionSize[],
68 unsigned int requestedNumber) const override;
69
70 unsigned int
71 GetSplitInternal(unsigned int dim,
72 unsigned int i,
73 unsigned int numberOfPieces,
74 IndexValueType regionIndex[],
75 SizeValueType regionSize[]) const override;
76
77 void
78 PrintSelf(std::ostream & os, Indent indent) const override;
79
80private:
81 unsigned int m_Direction{};
82};
83} // end namespace itk
84
85#endif
Divide an image region into several pieces.
unsigned int GetSplitInternal(unsigned int dim, unsigned int i, unsigned int numberOfPieces, IndexValueType regionIndex[], SizeValueType regionSize[]) const override
unsigned int GetNumberOfSplitsInternal(unsigned int dim, const IndexValueType regionIndex[], const SizeValueType regionSize[], unsigned int requestedNumber) const override
void PrintSelf(std::ostream &os, Indent indent) const override
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Base class for most ITK classes.
Definition: itkObject.h:62
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
long IndexValueType
Definition: itkIntTypes.h:93
unsigned long SizeValueType
Definition: itkIntTypes.h:86