00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkContourSpatialObjectPoint.h,v $ 00005 Language: C++ 00006 Date: $Date: 2006/03/21 16:46:25 $ 00007 Version: $Revision: 1.1 $ 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 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 00049 ContourSpatialObjectPoint( void ); 00050 00052 virtual ~ContourSpatialObjectPoint( void ); 00053 00055 const PointType & GetPickedPoint( void ) const; 00056 00058 void SetPickedPoint(const PointType & point); 00059 void SetPickedPoint(const double pointx, const double pointy); 00060 void SetPickedPoint(const double pointx, const double pointy, const double pointz); 00062 00064 const VectorType & GetNormal( void ) const; 00065 00067 void SetNormal(const VectorType & normal); 00068 void SetNormal(const double normalx, const double normaly); 00069 void SetNormal(const double normalx, const double normaly, const double normalz); 00071 00073 Self & operator=(const ContourSpatialObjectPoint & rhs); 00074 00075 protected: 00076 00077 VectorType m_Normal; 00078 PointType m_PickedPoint; 00079 00081 virtual void PrintSelf( std::ostream& os, Indent indent ) const; 00082 }; 00083 00084 } // end of namespace itk 00085 00086 #ifndef ITK_MANUAL_INSTANTIATION 00087 #include "itkContourSpatialObjectPoint.txx" 00088 #endif 00089 00090 #endif // __itkContourSpatialObjectPoint_h 00091