ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkCellInterfaceVisitor.h>
Public Types | |
typedef TCellTraits::CellIdentifier | CellIdentifier |
typedef SmartPointer< Self > | Pointer |
typedef CellInterfaceVisitorImplementation | Self |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual int | GetCellTopologyId () |
virtual const char * | GetNameOfClass () const |
void | VisitFromCell (CellIdentifier cellId, CellInterface< TPixelType, TCellTraits > *c) |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
CellInterfaceVisitorImplementation () | |
~CellInterfaceVisitorImplementation () | |
Private Member Functions | |
CellInterfaceVisitorImplementation (const Self &) | |
void | operator= (const Self &) |
A template class used to implement a visitor object.
A template class used to implement a visitor object.
The Visitor implementation does the down cast to the specific cell type that is being visited. After the cast, a member of the UserVisitor type called Visit is passed the exact cell type being visited. To use this class, write a class that implements a function Visit(int id, CellTopology*). Then, use that as the UserVisitor template parameter.
Template parameters for CellInterfaceVisitorImplementation: TPixelType = see CellInterface
TCellTraits = see CellInterface
CellTopology = The specific type of cell that needs to be visited.
UserVisitor = A user supplied class that implements the function Visit(int id, CellTopology*)
Definition at line 110 of file itkCellInterfaceVisitor.h.
typedef TCellTraits::CellIdentifier itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::CellIdentifier |
Reimplemented from itk::CellInterfaceVisitor< TPixelType, TCellTraits >.
Definition at line 117 of file itkCellInterfaceVisitor.h.
typedef SmartPointer< Self > itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::Pointer |
Reimplemented from itk::CellInterfaceVisitor< TPixelType, TCellTraits >.
Definition at line 116 of file itkCellInterfaceVisitor.h.
typedef CellInterfaceVisitorImplementation itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::Self |
Standard class typedefs.
Reimplemented from itk::CellInterfaceVisitor< TPixelType, TCellTraits >.
Definition at line 115 of file itkCellInterfaceVisitor.h.
itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::CellInterfaceVisitorImplementation | ( | ) | [inline, protected] |
Definition at line 138 of file itkCellInterfaceVisitor.h.
itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::~CellInterfaceVisitorImplementation | ( | ) | [inline, protected] |
Definition at line 139 of file itkCellInterfaceVisitor.h.
itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::CellInterfaceVisitorImplementation | ( | const Self & | ) | [private] |
virtual::itk::LightObject::Pointer itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::CreateAnother | ( | void | ) | const [virtual] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::LightObject.
virtual int itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::GetCellTopologyId | ( | ) | [inline, virtual] |
Call the static method GetTopologyId for the CellTopology type that we are templated over.
Implements itk::CellInterfaceVisitor< TPixelType, TCellTraits >.
Definition at line 127 of file itkCellInterfaceVisitor.h.
virtual const char* itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::CellInterfaceVisitor< TPixelType, TCellTraits >.
static Pointer itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::New | ( | ) | [static] |
Method for creation through the object factory.
Reimplemented from itk::LightObject.
void itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::operator= | ( | const Self & | ) | [private] |
Reimplemented from itk::CellInterfaceVisitor< TPixelType, TCellTraits >.
void itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::VisitFromCell | ( | CellIdentifier | cellId, |
CellInterface< TPixelType, TCellTraits > * | c | ||
) | [inline, virtual] |
Call the method Visit from the UserVisitor template parameter that this class inherits from. I am my own gradpa...
Implements itk::CellInterfaceVisitor< TPixelType, TCellTraits >.
Definition at line 131 of file itkCellInterfaceVisitor.h.