ITK  5.1.0
Insight Toolkit
itkMetaArrowConverter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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 itkMetaArrowConverter_h
19 #define itkMetaArrowConverter_h
20 
21 #include "itkMetaConverterBase.h"
22 #include "itkArrowSpatialObject.h"
23 #include "metaArrow.h"
24 
25 namespace itk
26 {
33 template <unsigned int NDimensions = 3>
34 class ITK_TEMPLATE_EXPORT MetaArrowConverter : public MetaConverterBase<NDimensions>
35 {
36 public:
37  ITK_DISALLOW_COPY_AND_ASSIGN(MetaArrowConverter);
38 
44 
46  itkNewMacro(Self);
47 
50 
51  using SpatialObjectType = typename Superclass::SpatialObjectType;
52  using SpatialObjectPointer = typename SpatialObjectType::Pointer;
53  using MetaObjectType = typename Superclass::MetaObjectType;
54 
59  using ArrowMetaObjectType = MetaArrow;
60 
63  MetaObjectToSpatialObject(const MetaObjectType * mo) override;
64 
67  SpatialObjectToMetaObject(const SpatialObjectType * spatialObject) override;
68 
69 protected:
72  CreateMetaObject() override;
73 
74  MetaArrowConverter() = default;
75  ~MetaArrowConverter() override = default;
76 };
77 
78 } // end namespace itk
79 
80 #ifndef ITK_MANUAL_INSTANTIATION
81 # include "itkMetaArrowConverter.hxx"
82 #endif
83 
84 #endif
itk::MetaArrowConverter::MetaObjectType
typename Superclass::MetaObjectType MetaObjectType
Definition: itkMetaArrowConverter.h:53
itk::MetaArrowConverter
converts between MetaObject<->SpatialObject.
Definition: itkMetaArrowConverter.h:34
itk::MetaArrowConverter::ArrowSpatialObjectConstPointer
typename ArrowSpatialObjectType::ConstPointer ArrowSpatialObjectConstPointer
Definition: itkMetaArrowConverter.h:58
itk::MetaArrowConverter::SpatialObjectType
typename Superclass::SpatialObjectType SpatialObjectType
Definition: itkMetaArrowConverter.h:51
itk::SmartPointer< Self >
itk::MetaArrowConverter::SpatialObjectPointer
typename SpatialObjectType::Pointer SpatialObjectPointer
Definition: itkMetaArrowConverter.h:52
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::MetaArrowConverter::ArrowMetaObjectType
MetaArrow ArrowMetaObjectType
Definition: itkMetaArrowConverter.h:59
itk::MetaConverterBase
Base class for MetaObject<->SpatialObject converters.
Definition: itkMetaConverterBase.h:41
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkArray.h:26
itkArrowSpatialObject.h
itk::ArrowSpatialObject
Representation of a Arrow based on the spatial object classes.
Definition: itkArrowSpatialObject.h:37
itkMetaConverterBase.h
itk::MetaArrowConverter::ArrowSpatialObjectPointer
typename ArrowSpatialObjectType::Pointer ArrowSpatialObjectPointer
Definition: itkMetaArrowConverter.h:57