| 1 |
|
/*========================================================================= |
| 2 |
|
|
| 3 |
|
Program: Insight Segmentation & Registration Toolkit |
| 4 |
|
Module: $RCSfile: itkBloxPixel.h.html,v $ |
| 5 |
|
Language: C++ |
| 6 |
|
Date: $Date: 2006/01/17 19:15:33 $ |
| 7 |
|
Version: $Revision: 1.4 $ |
| 8 |
|
|
| 9 |
|
Copyright (c) Insight Software Consortium. All rights reserved. |
| 10 |
|
See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details. |
| 11 |
|
|
| 12 |
|
This software is distributed WITHOUT ANY WARRANTY; without even |
| 13 |
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 14 |
|
PURPOSE. See the above copyright notices for more information. |
| 15 |
|
|
| 16 |
|
=========================================================================*/ |
| 17 |
|
#ifndef __itkBloxPixel_h |
| 18 |
|
#define __itkBloxPixel_h |
| 19 |
|
|
| 20 |
|
#include <list> |
| 21 |
|
|
| 22 |
|
#include "itkBloxItem.h" |
| 23 |
|
|
| 24 |
|
namespace itk |
| 25 |
|
{ |
| 26 |
|
|
| 27 |
|
/** |
| 28 |
|
* \class BloxPixel |
| 29 |
|
* \brief Holds a linked list of BloxItem's |
| 30 |
|
* |
| 31 |
|
* itk::BloxPixel is a specialized "value added" version of the basic STL list |
| 32 |
LEN |
* intended as a base class for all pixels stored in itk::BloxImage derived classes. |
| 33 |
|
* A particular type of itk::BloxImage is fully specialized by setting the type |
| 34 |
|
* of itk::BloxPixel that it holds, so in some sense this is the most important |
| 35 |
|
* class in the blox hierarchy. |
| 36 |
|
* |
| 37 |
LEN |
* It is assumed that particular itk::BloxPixel derived types will add functionality |
| 38 |
|
* to this base class; for example, eigenanalysis of core atom populations in |
| 39 |
|
* itk::BloxCoreAtomPixel |
| 40 |
|
* |
| 41 |
|
* \ingroup ImageObjects |
| 42 |
|
* */ |
| 43 |
|
|
| 44 |
|
template <typename TItemType> |
| 45 |
|
class BloxPixel : public std::list<TItemType*> |
| 46 |
|
{ |
| 47 |
|
public: |
| 48 |
|
|
| 49 |
|
/** Delete all entries in the list, then clear the list. */ |
| 50 |
|
void DeleteListEntries(); |
| 51 |
|
|
| 52 |
|
/** Get the number of items stored in the blox. */ |
| 53 |
|
unsigned long int GetSize() |
| 54 |
|
{return static_cast<unsigned long>( this->size() ); } |
| 55 |
|
|
| 56 |
|
BloxPixel(); |
| 57 |
|
~BloxPixel(); |
| 58 |
|
}; |
| 59 |
|
|
| 60 |
|
|
| 61 |
|
} // end namespace itk |
| 62 |
|
|
| 63 |
|
#ifndef ITK_MANUAL_INSTANTIATION |
| 64 |
|
#include "itkBloxPixel.txx" |
| 65 |
|
#endif |
| 66 |
|
|
| 67 |
|
#endif |
| 68 |
|
|