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

itkPolygonGroupSpatialObject.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Insight Segmentation & Registration Toolkit 00004 Module: $RCSfile: itkPolygonGroupSpatialObject.h,v $ 00005 Language: C++ 00006 Date: $Date: 2003/09/10 14:29:49 $ 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 #ifndef __itkPolygonGroupSpatialObject_h 00018 #define __itkPolygonGroupSpatialObject_h 00019 #include "itkGroupSpatialObject.h" 00020 #include "itkPolygonGroupOrientation.h" 00021 #include "itkPolygonSpatialObject.h" 00022 00023 namespace itk 00024 { 00025 00026 00049 template <unsigned int TDimension = 3> class 00050 PolygonGroupSpatialObject 00051 :public GroupSpatialObject<TDimension> 00052 { 00053 public: 00054 typedef PolygonGroupSpatialObject< TDimension > Self; 00055 typedef BlobSpatialObject< TDimension > Superclass; 00056 typedef SmartPointer < Self > Pointer; 00057 typedef SmartPointer < const Self > ConstPointer; 00058 typedef typename Superclass::PointType PointType; 00059 typedef typename Superclass::BoundingBoxType BoundingBoxType; 00061 itkNewMacro( Self ); 00062 00064 itkTypeMacro( Self, Superclass ); 00065 00069 bool AddStrand(PolygonSpatialObject<TDimension> *toAdd); 00070 00074 bool DeleteStrand(PolygonSpatialObject<TDimension> *toDelete); 00075 00080 bool ReplaceStrand(PolygonSpatialObject<TDimension> *toReplace, 00081 PolygonSpatialObject<TDimension> *replacement); 00082 00084 bool IsClosed(); 00086 unsigned int NumberOfStrands(); 00090 double Volume(); 00092 double MeasureVolume(); 00094 virtual bool IsInside( const PointType & point, 00095 unsigned int depth=0, 00096 char * name = NULL) const; 00097 }; 00098 } 00099 #ifndef ITK_MANUAL_INSTANTIATION 00100 #include "itkPolygonGroupSpatialObject.txx" 00101 #endif 00102 00103 #endif

Generated at Sat Mar 31 02:27:25 2007 for ITK by doxygen 1.3.8 written by Dimitri van Heesch, © 1997-2000