Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkLineSpatialObjectPoint.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkLineSpatialObjectPoint.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/08/14 21:43:39 $
00007   Version:   $Revision: 1.3 $
00008 
00009   Copyright (c) 2002 Insight 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 
00036 template < unsigned int TPointDimension = 3 >
00037 class ITK_EXPORT LineSpatialObjectPoint 
00038 : public SpatialObjectPoint<TPointDimension>
00039 {
00040 
00041 public:
00042 
00043   typedef LineSpatialObjectPoint                      Self;
00044   typedef SpatialObjectPoint<TPointDimension>         Superclass;
00045   typedef SmartPointer<Self>                          Pointer;
00046   typedef const SmartPointer< const Self >            ConstPointer;
00047   typedef Point< double, TPointDimension >            PointType;
00048   typedef CovariantVector<double,TPointDimension>     VectorType;
00049   typedef FixedArray<VectorType,TPointDimension-1> NormalArrayType;
00050 
00051   itkNewMacro( LineSpatialObjectPoint );
00052 
00053   itkTypeMacro( LineSpatialObjectPoint, SpatialObjectPoint );
00054 
00056   const VectorType & GetNormal( unsigned int index ) const;
00057 
00059   void SetNormal(VectorType & normal, unsigned int index);
00060 
00062   Self & operator=(const LineSpatialObjectPoint & rhs);
00063 
00064 protected:
00065 
00067   LineSpatialObjectPoint( void );
00068 
00070   ~LineSpatialObjectPoint( void );
00071 
00072   NormalArrayType m_NormalArray;
00073 
00075   virtual void PrintSelf( std::ostream& os, Indent indent ) const;
00076 };
00077 
00078 } // end of namespace itk
00079 
00080 #ifndef ITK_MANUAL_INSTANTIATION
00081   #include "itkLineSpatialObjectPoint.txx"
00082 #endif
00083 
00084 #endif // __itkLineSpatialObjectPoint_h

Generated at Wed Mar 12 01:13:05 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000