Shapeworks Studio  2.1
Shape analysis software suite
itkPSMPointIndexPair.h
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 __itkPSMPointIndexPair_h
19 #define __itkPSMPointIndexPair_h
20 
21 #include "itkPoint.h"
22 namespace itk {
33 template <unsigned int VDimension>
35 {
36  typedef itk::Point<double, VDimension> PointType;
38  PSMPointIndexPair(const PointType &p, unsigned int i=0)
39  {
40  Point = p;
41  Index = i;
42  }
44  { this->operator=(o); }
45  const PSMPointIndexPair &operator=(const PSMPointIndexPair &o)
46  {
47  Point = o.Point;
48  Index = o.Index;
49  return *this;
50  }
51  PointType Point;
52  unsigned int Index;
53 };
54 
55 }
56 #endif
57 
Struct containing a Point and an index value associated with a point. This object is used mainly by P...
Definition: Shape.h:14