SphericalSurfaceMapper.h
1 /*
2  * Medical Image Registration ToolKit (MIRTK)
3  *
4  * Copyright 2016 Imperial College London
5  * Copyright 2016 Andreas Schuh
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 
20 #ifndef MIRTK_SphericalSurfaceMapper_H
21 #define MIRTK_SphericalSurfaceMapper_H
22 
23 #include "mirtk/SurfaceMapper.h"
24 
25 
26 namespace mirtk {
27 
28 
29 /**
30  * Base class of solvers computing a parameterization of a spherical surface
31  *
32  * Solvers of this type compute a surface parameterization of a closed surface
33  * genus-0 mesh, i.e., a surface that is topologically equivalent to a sphere.
34  */
36 {
37  mirtkAbstractMacro(SphericalSurfaceMapper);
38 
39  // ---------------------------------------------------------------------------
40  // Attributes
41 
42  /// Copy attributes of this class from another instance
43  void CopyAttributes(const SphericalSurfaceMapper &);
44 
45  // ---------------------------------------------------------------------------
46  // Construction/Destruction
47 
48 protected:
49 
50  /// Default constructor
52 
53  /// Copy constructor
55 
56  /// Assignment operator
58 
59 public:
60 
61  /// Destructor
62  virtual ~SphericalSurfaceMapper();
63 
64  // ---------------------------------------------------------------------------
65  // Execution
66 
67 protected:
68 
69  /// Initialize filter after input and parameters are set
70  virtual void Initialize();
71 
72  // ---------------------------------------------------------------------------
73  // Auxiliaries
74 
75 public:
76 
77  /// Dimension of map codomain
78  int NumberOfComponents() const;
79 
80 };
81 
82 ////////////////////////////////////////////////////////////////////////////////
83 // Inline
84 ////////////////////////////////////////////////////////////////////////////////
85 
86 // -----------------------------------------------------------------------------
88 {
89  return 2;
90 }
91 
92 
93 } // namespace mirtk
94 
95 #endif // MIRTK_SphericalSurfaceMapper_H
virtual ~SphericalSurfaceMapper()
Destructor.
SphericalSurfaceMapper & operator=(const SphericalSurfaceMapper &)
Assignment operator.
int NumberOfComponents() const
Dimension of map codomain.
Definition: IOConfig.h:41
virtual void Initialize()
Initialize filter after input and parameters are set.
SphericalSurfaceMapper()
Default constructor.