00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkContourSpatialObjectPoint.h,v $ 00005 Language: C++ 00006 Date: $Date: 2009-04-07 14:33:56 $ 00007 Version: $Revision: 1.4 $ 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 __itkContourSpatialObjectPoint_h 00019 #define __itkContourSpatialObjectPoint_h 00020 00021 #include "itkSpatialObjectPoint.h" 00022 #include "itkCovariantVector.h" 00023 00024 namespace itk 00025 { 00026 00036 template < unsigned int TPointDimension = 3 > 00037 class ITK_EXPORT ContourSpatialObjectPoint 00038 : public SpatialObjectPoint<TPointDimension> 00039 { 00040 00041 public: 00042 00043 typedef ContourSpatialObjectPoint Self; 00044 typedef SpatialObjectPoint<TPointDimension> Superclass; 00045 typedef Point< double, TPointDimension > PointType; 00046 typedef CovariantVector<double,TPointDimension> VectorType; 00047 00050 ContourSpatialObjectPoint( void ); 00051 00053 virtual ~ContourSpatialObjectPoint( void ); 00054 00056 const PointType & GetPickedPoint( void ) const; 00057 00059 void SetPickedPoint(const PointType & point); 00060 void SetPickedPoint(const double pointx, const double pointy); 00061 void SetPickedPoint(const double pointx, 00062 const double pointy, const double pointz); 00064 00066 const VectorType & GetNormal( void ) const; 00067 00069 void SetNormal(const VectorType & normal); 00070 void SetNormal(const double normalx, const double normaly); 00071 void SetNormal(const double normalx, 00072 const double normaly, const double normalz); 00074 00076 Self & operator=(const ContourSpatialObjectPoint & rhs); 00077 00078 protected: 00079 00080 VectorType m_Normal; 00081 PointType m_PickedPoint; 00082 00084 virtual void PrintSelf( std::ostream& os, Indent indent ) const; 00085 }; 00086 00087 } // end of namespace itk 00088 00089 #ifndef ITK_MANUAL_INSTANTIATION 00090 #include "itkContourSpatialObjectPoint.txx" 00091 #endif 00092 00093 #endif // __itkContourSpatialObjectPoint_h 00094