00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkSurfaceSpatialObjectPoint.h,v $ 00005 Language: C++ 00006 Date: $Date: 2002/07/11 20:46:41 $ 00007 Version: $Revision: 1.2 $ 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 __itkSurfaceSpatialObjectPoint_h 00019 #define __itkSurfaceSpatialObjectPoint_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 SurfaceSpatialObjectPoint 00038 : public SpatialObjectPoint<TPointDimension> 00039 { 00040 00041 public: 00042 00043 typedef SurfaceSpatialObjectPoint 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 VectorType * VectorPointer; 00050 00051 itkNewMacro( SurfaceSpatialObjectPoint ); 00052 00053 itkTypeMacro( SurfaceSpatialObjectPoint, SpatialObjectPoint ); 00054 00056 VectorPointer GetNormal( void ); 00057 00059 void SetNormal(const VectorType & normal); 00060 void SetNormal(const double normalx, const double normaly); 00061 void SetNormal(const double normalx, const double normaly, const double normalz); 00062 00064 Self & operator=(const SurfaceSpatialObjectPoint & rhs); 00065 00066 protected: 00067 00069 SurfaceSpatialObjectPoint( void ); 00070 00072 ~SurfaceSpatialObjectPoint( void ); 00073 00074 VectorType m_Normal; 00075 00077 virtual void PrintSelf( std::ostream& os, Indent indent ) const; 00078 }; 00079 00080 } // end of namespace itk 00081 00082 #ifndef ITK_MANUAL_INSTANTIATION 00083 #include "itkSurfaceSpatialObjectPoint.txx" 00084 #endif 00085 00086 #endif // __itkSurfaceSpatialObjectPoint_h