ITK  5.4.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 
23 namespace itk
24 {
35 {
36 public:
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);
60 protected:
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 
80 private:
81  unsigned int m_Direction{};
82 };
83 } // end namespace itk
84 
85 #endif
itk::ImageRegionSplitterDirection
Definition: itkImageRegionSplitterDirection.h:34
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::IndexValueType
long IndexValueType
Definition: itkIntTypes.h:90
itk::ImageRegionSplitterBase
Divide an image region into several pieces.
Definition: itkImageRegionSplitterBase.h:58
itkImageRegionSplitterBase.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::Object
Base class for most ITK classes.
Definition: itkObject.h:61
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:83