ITK  4.9.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor > Class Template Reference

#include <itkCellInterfaceVisitor.h>

+ Inheritance diagram for itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >:
+ Collaboration diagram for itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >:

Detailed Description

template<typename TPixelType, typename TCellTraits, typename CellTopology, typename UserVisitor>
class itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >

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*)

Examples:
Examples/DataRepresentation/Mesh/MeshCellVisitor.cxx, Examples/DataRepresentation/Mesh/MeshCellVisitor2.cxx, and WikiExamples/Meshes/ConvertToVTK.cxx.

Definition at line 111 of file itkCellInterfaceVisitor.h.

Public Types

typedef TCellTraits::CellIdentifier CellIdentifier
 
typedef SmartPointer< SelfPointer
 
typedef
CellInterfaceVisitorImplementation 
Self
 
- Public Types inherited from itk::CellInterfaceVisitor< TPixelType, TCellTraits >
typedef TCellTraits::CellIdentifier CellIdentifier
 
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef CellInterfaceVisitor Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual int GetCellTopologyId () override
 
virtual const char * GetNameOfClass () const
 
void VisitFromCell (CellIdentifier cellId, CellInterface< TPixelType, TCellTraits > *c) override
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 
virtual void Register () const
 
virtual void SetReferenceCount (int)
 
virtual void UnRegister () const noexcept
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

 CellInterfaceVisitorImplementation ()
 
 ~CellInterfaceVisitorImplementation ()
 
- Protected Member Functions inherited from itk::CellInterfaceVisitor< TPixelType, TCellTraits >
 CellInterfaceVisitor ()
 
 ~CellInterfaceVisitor ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintSelf (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

 CellInterfaceVisitorImplementation (const Self &) ITK_DELETE_FUNCTION
 
void operator= (const Self &) ITK_DELETE_FUNCTION
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
AtomicInt< int > m_ReferenceCount
 

Member Typedef Documentation

template<typename TPixelType , typename TCellTraits , typename CellTopology , typename UserVisitor >
typedef TCellTraits::CellIdentifier itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::CellIdentifier

Definition at line 118 of file itkCellInterfaceVisitor.h.

template<typename TPixelType , typename TCellTraits , typename CellTopology , typename UserVisitor >
typedef SmartPointer< Self > itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::Pointer

Definition at line 117 of file itkCellInterfaceVisitor.h.

template<typename TPixelType , typename TCellTraits , typename CellTopology , typename UserVisitor >
typedef CellInterfaceVisitorImplementation itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::Self

Standard class typedefs.

Definition at line 116 of file itkCellInterfaceVisitor.h.

Constructor & Destructor Documentation

template<typename TPixelType , typename TCellTraits , typename CellTopology , typename UserVisitor >
itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::CellInterfaceVisitorImplementation ( )
inlineprotected

Definition at line 139 of file itkCellInterfaceVisitor.h.

template<typename TPixelType , typename TCellTraits , typename CellTopology , typename UserVisitor >
itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::~CellInterfaceVisitorImplementation ( )
inlineprotected

Definition at line 140 of file itkCellInterfaceVisitor.h.

template<typename TPixelType , typename TCellTraits , typename CellTopology , typename UserVisitor >
itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::CellInterfaceVisitorImplementation ( const Self )
private

Member Function Documentation

template<typename TPixelType , typename TCellTraits , typename CellTopology , typename UserVisitor >
virtual::itk::LightObject::Pointer itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::CreateAnother ( ) 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.

template<typename TPixelType , typename TCellTraits , typename CellTopology , typename UserVisitor >
virtual int itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::GetCellTopologyId ( )
inlineoverridevirtual

Call the static method GetTopologyId for the CellTopology type that we are templated over.

Implements itk::CellInterfaceVisitor< TPixelType, TCellTraits >.

Definition at line 128 of file itkCellInterfaceVisitor.h.

template<typename TPixelType , typename TCellTraits , typename CellTopology , typename UserVisitor >
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 >.

template<typename TPixelType , typename TCellTraits , typename CellTopology , typename UserVisitor >
static Pointer itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::New ( )
static

Method for creation through the object factory.

template<typename TPixelType , typename TCellTraits , typename CellTopology , typename UserVisitor >
void itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::operator= ( const Self )
private
template<typename TPixelType , typename TCellTraits , typename CellTopology , typename UserVisitor >
void itk::CellInterfaceVisitorImplementation< TPixelType, TCellTraits, CellTopology, UserVisitor >::VisitFromCell ( CellIdentifier  cellId,
CellInterface< TPixelType, TCellTraits > *  c 
)
inlineoverridevirtual

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 132 of file itkCellInterfaceVisitor.h.


The documentation for this class was generated from the following file: