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

itkTubeSpatialObjectPoint.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkTubeSpatialObjectPoint.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-04-07 14:34:18 $
00007   Version:   $Revision: 1.15 $
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 __itkTubeSpatialObjectPoint_h
00019 #define __itkTubeSpatialObjectPoint_h
00020 
00021 #include "itkSpatialObjectPoint.h"
00022 #include "itkCovariantVector.h"
00023 #include "vnl/vnl_vector_fixed.h"
00024 
00025 namespace itk 
00026 {
00027 
00037 template < unsigned int TPointDimension = 3 >
00038 class ITK_EXPORT TubeSpatialObjectPoint 
00039   : public SpatialObjectPoint<TPointDimension>
00040 {
00041 
00042 public:
00043 
00044   typedef TubeSpatialObjectPoint                    Self;
00045   typedef SpatialObjectPoint<TPointDimension>       Superclass;
00046   typedef Point< double, TPointDimension >          PointType;
00047   typedef Vector<double, TPointDimension >          VectorType;
00048   typedef CovariantVector<double, TPointDimension > CovariantVectorType;
00049  
00052   TubeSpatialObjectPoint( void );
00053 
00055   virtual ~TubeSpatialObjectPoint( void );
00056 
00058   const VectorType & GetTangent( void ) const;
00059 
00061   void SetTangent(const VectorType & newT);
00062   void SetTangent(const double t0, const double t1);
00063   void SetTangent(const double t0, const double t1, const double t2);
00065 
00067   const CovariantVectorType & GetNormal1( void ) const;
00068 
00070   void SetNormal1(const CovariantVectorType & newV1);
00071   void SetNormal1(const double v10, const double v11);
00072   void SetNormal1(const double v10, const double v11, const double v12);
00074 
00076   const CovariantVectorType & GetNormal2( void ) const;
00077 
00079   void SetNormal2(const CovariantVectorType & newV2);
00080   void SetNormal2(const double v20, const double v21);
00081   void SetNormal2(const double v20, const double v21, const double v22);
00083 
00085   float GetRadius( void ) const;
00086 
00088   void SetRadius(const float newR);
00089 
00091   unsigned short int GetNumDimensions( void ) const;
00092 
00094   Self & operator=(const TubeSpatialObjectPoint & rhs);
00095 
00096 protected:
00097 
00098   VectorType          m_T;
00099   CovariantVectorType m_Normal1;
00100   CovariantVectorType m_Normal2;
00101 
00103   float m_R;
00104 
00106   unsigned short int m_NumDimensions;
00107 
00109   void PrintSelf( std::ostream & os, Indent indent) const;
00110 };
00111 
00112 } // end of namespace itk
00113 
00114 #ifndef ITK_MANUAL_INSTANTIATION
00115 #include "itkTubeSpatialObjectPoint.txx"
00116 #endif
00117 
00118 #endif // __itkTubeSpatialObjectPoint_h
00119 

Generated at Tue Sep 15 05:11:07 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000