00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkLineSpatialObjectPoint.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-04-07 14:34:04 $ 00007 Version: $Revision: 1.11 $ 00008 00009 Copyright (c) Insight Software Consortium. All rights reserved. 00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 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 { 00027 00037 template < unsigned int TPointDimension = 3 > 00038 class ITK_EXPORT LineSpatialObjectPoint 00039 : public SpatialObjectPoint<TPointDimension> 00040 { 00041 00042 public: 00043 00044 typedef LineSpatialObjectPoint Self; 00045 typedef SpatialObjectPoint<TPointDimension> Superclass; 00046 typedef Point< double, TPointDimension > PointType; 00047 typedef CovariantVector<double,TPointDimension> VectorType; 00048 typedef FixedArray<VectorType,TPointDimension-1> NormalArrayType; 00049 00051 LineSpatialObjectPoint( void ); 00052 00054 virtual ~LineSpatialObjectPoint( void ); 00055 00057 const VectorType & GetNormal( unsigned int index ) const; 00058 00060 void SetNormal(VectorType & normal, unsigned int index); 00061 00063 Self & operator=(const LineSpatialObjectPoint & rhs); 00064 00065 protected: 00066 00067 NormalArrayType m_NormalArray; 00068 00070 virtual void PrintSelf( std::ostream& os, Indent indent ) const; 00071 }; 00072 00073 } // end of namespace itk 00074 00075 #ifndef ITK_MANUAL_INSTANTIATION 00076 #include "itkLineSpatialObjectPoint.txx" 00077 #endif 00078 00079 #endif // __itkLineSpatialObjectPoint_h 00080