00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
#ifndef __itkLineCell_h
00018
#define __itkLineCell_h
00019
00020
#include "itkCellInterface.h"
00021
#include "itkVertexCell.h"
00022
00023
namespace itk
00024 {
00025
00041
template <
typename TCellInterface >
00042 class ITK_EXPORT LineCell:
public TCellInterface
00043 {
00044
public:
00046
itkCellCommonTypedefs(LineCell);
00047
itkCellInheritedTypedefs(TCellInterface);
00048
00050
itkTypeMacro(LineCell,
CellInterface);
00051
00053
typedef VertexCell< TCellInterface > VertexType;
00054 typedef typename VertexType::SelfAutoPointer
VertexAutoPointer;
00055
00057
enum { NumberOfPoints = 2,
00058 NumberOfVertices = 2,
00059 CellDimension = 1 };
00060
00062
virtual CellGeometry GetType(
void)
const
00063 {
return Superclass::LINE_CELL;}
00064
virtual void MakeCopy( CellAutoPointer & ) const;
00065 virtual
unsigned int GetDimension(
void) const;
00066 virtual
unsigned int GetNumberOfPoints(
void) const;
00067 virtual CellFeatureCount GetNumberOfBoundaryFeatures(
int dimension) const;
00068 virtual
bool GetBoundaryFeature(
int dimension, CellFeatureIdentifier,CellAutoPointer &);
00069 virtual
void SetPointIds(PointIdConstIterator first);
00070 virtual
void SetPointIds(PointIdConstIterator first,
00071 PointIdConstIterator last);
00072 virtual
void SetPointId(
int localId, PointIdentifier);
00073 virtual PointIdIterator PointIdsBegin(
void);
00074 virtual PointIdConstIterator PointIdsBegin(
void) const;
00075 virtual PointIdIterator PointIdsEnd(
void);
00076 virtual PointIdConstIterator PointIdsEnd(
void) const;
00077
00079 virtual CellFeatureCount GetNumberOfVertices(
void) const;
00080 virtual
bool GetVertex(CellFeatureIdentifier, VertexAutoPointer &);
00081
00083 itkCellVisitMacro(LINE_CELL);
00084
00085 LineCell() {}
00086 ~LineCell() {}
00087
00088 protected:
00090 PointIdentifier m_PointIds[NumberOfPoints];
00091
00092
private:
00093 LineCell(
const Self&);
00094
void operator=(
const Self&);
00095 };
00096
00097
00098 }
00099
00100
#ifndef ITK_MANUAL_INSTANTIATION
00101
#include "itkLineCell.txx"
00102
#endif
00103
00104
#endif