ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkLineSpatialObjectPoint.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 __itkLineSpatialObjectPoint_h
00019 #define __itkLineSpatialObjectPoint_h
00020 
00021 #include "itkSpatialObjectPoint.h"
00022 #include "itkCovariantVector.h"
00023 #include "itkFixedArray.h"
00024 
00025 namespace itk
00026 {
00041 template< unsigned int TPointDimension = 3 >
00042 class ITK_EXPORT LineSpatialObjectPoint:
00043   public SpatialObjectPoint< TPointDimension >
00044 {
00045 public:
00046 
00047   typedef LineSpatialObjectPoint                        Self;
00048   typedef SpatialObjectPoint< TPointDimension >         Superclass;
00049   typedef Point< double, TPointDimension >              PointType;
00050   typedef CovariantVector< double, TPointDimension >    VectorType;
00051   typedef FixedArray< VectorType, TPointDimension - 1 > NormalArrayType;
00052 
00054   LineSpatialObjectPoint(void);
00055 
00057   virtual ~LineSpatialObjectPoint(void);
00058 
00060   const VectorType & GetNormal(unsigned int index) const;
00061 
00063   void SetNormal(VectorType & normal, unsigned int index);
00064 
00066   Self & operator=(const LineSpatialObjectPoint & rhs);
00067 
00068 protected:
00069 
00070   NormalArrayType m_NormalArray;
00071 
00073   virtual void PrintSelf(std::ostream & os, Indent indent) const;
00074 };
00075 } // end of namespace itk
00076 
00077 #ifndef ITK_MANUAL_INSTANTIATION
00078 #include "itkLineSpatialObjectPoint.hxx"
00079 #endif
00080 
00081 #endif // __itkLineSpatialObjectPoint_h
00082