ITK  4.0.0
Insight Segmentation and Registration Toolkit
itkQuadEdgeMeshPoint.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkQuadEdgeMeshPoint_h
00019 #define __itkQuadEdgeMeshPoint_h
00020 
00021 #include "itkPoint.h"
00022 #include "itkConceptChecking.h"
00023 #include "itkGeometricalQuadEdge.h"
00024 
00025 namespace itk
00026 {
00034 template< class TCoordRep, unsigned int VPointDimension, typename TQuadEdge =
00035             GeometricalQuadEdge< unsigned long, unsigned long, bool, bool, true > >
00036 class ITK_EXPORT QuadEdgeMeshPoint:public Point< TCoordRep, VPointDimension >
00037 {
00038 public:
00039 
00041   typedef QuadEdgeMeshPoint                   Self;
00042   typedef Point< TCoordRep, VPointDimension > Superclass;
00043 
00045   itkStaticConstMacro(PointDimension, unsigned int,
00046                       VPointDimension);
00047 
00048   typedef typename Superclass::ValueType     ValueType;
00049   typedef typename Superclass::CoordRepType  CoordRepType;
00050   typedef typename Superclass::RealType      RealType;
00051   typedef typename Superclass::BaseArray     BaseArray;
00052   typedef typename Superclass::Iterator      Iterator;
00053   typedef typename Superclass::ConstIterator ConstIterator;
00054   typedef typename Superclass::VectorType    VectorType;
00055 
00056   typedef ValueType ValueArrayType[itkGetStaticConstMacro(PointDimension)];
00057 
00058 #ifdef ITK_USE_CONCEPT_CHECKING
00059 
00062 #endif
00063 public:
00064   QuadEdgeMeshPoint();
00065   virtual ~QuadEdgeMeshPoint() {}
00066   QuadEdgeMeshPoint(const Self & r);
00067   QuadEdgeMeshPoint(const Superclass & r);
00068   QuadEdgeMeshPoint(const ValueType r[VPointDimension]):Superclass(r)
00069   {
00070     this->Initialize();
00071   }
00073 
00074   Self & operator=(const Self & r);
00075 
00076   Self & operator=(const Superclass & r);
00077 
00078   Self & operator=(const ValueType r[VPointDimension]);
00079 
00081   void SetEdge(TQuadEdge *inputEdge);
00082 
00084   void SetPoint(const Superclass & point);
00085 
00087   TQuadEdge * GetEdge();
00088 
00089   TQuadEdge * GetEdge() const;
00090 
00092   bool IsInternal() const;
00093 
00095   int GetValence() const;
00096 
00097 protected:
00098   void Initialize();
00099 
00100 protected:
00102 };
00103 } // end namespace itk
00104 
00105 #ifndef ITK_MANUAL_INSTANTIATION
00106 #include "itkQuadEdgeMeshPoint.hxx"
00107 #endif
00108 
00109 #endif
00110