Skip to content

itk::ParticleShapeMatrixAttribute

Each column describes a shape. A shape may be composed of m_DomainsPerShape domains (default 1). ALL DOMAINS ARE NOT ASSUMED TO HAVE THE SAME NUMBER OF PARTICLES! More...

#include <itkParticleShapeMatrixAttribute.h>

Inherits from vnl_matrix< T >, itk::ParticleAttribute< VDimension >

Inherited by itk::ParticleShapeLinearRegressionMatrixAttribute< T, VDimension >, itk::ParticleShapeMixedEffectsMatrixAttribute< T, VDimension >

Public Types

Name
typedef T DataType
typedef ParticleShapeMatrixAttribute Self
typedef ParticleAttribute< VDimension > Superclass
typedef SmartPointer< Self > Pointer
typedef SmartPointer< const Self > ConstPointer
typedef WeakPointer< const Self > ConstWeakPointer

Public Functions

Name
itkNewMacro(Self )
virtual ParticleAttribute void DomainAddEventCallback(Object * , const EventObject & e)
virtual void ResizeMatrix(int rs, int cs)
virtual void PositionAddEventCallback(Object * o, const EventObject & e)
virtual void PositionSetEventCallback(Object * o, const EventObject & e)
virtual void PositionRemoveEventCallback(Object * , const EventObject & )
void PrintMatrix()
bool CheckForNans()
void SetDomainsPerShape(int i)
int GetDomainsPerShape() const
virtual void BeforeIteration()
virtual void AfterIteration()
virtual void SetMatrix(const vnl_matrix< T > & m)

Protected Functions

Name
ParticleShapeMatrixAttribute()
virtual ~ParticleShapeMatrixAttribute()
void PrintSelf(std::ostream & os, Indent indent) const

Protected Attributes

Name
int m_DomainsPerShape

Additional inherited members

Public Classes inherited from itk::ParticleAttribute< VDimension >

Name
struct DefinedCallbacksStruct

Public Functions inherited from itk::ParticleAttribute< VDimension >

Name
itkTypeMacro(ParticleAttribute , DataObject )
virtual void EventCallback(Object * , const EventObject & )
virtual void EventWithIndexCallback(Object * , const EventObject & )
virtual void TransformSetEventCallback(Object * , const EventObject & )
virtual void PrefixTransformSetEventCallback(Object * , const EventObject & )
virtual void NeighborhoodSetEventCallback(Object * , const EventObject & )

Protected Functions inherited from itk::ParticleAttribute< VDimension >

Name
ParticleAttribute()
virtual ~ParticleAttribute()

Public Attributes inherited from itk::ParticleAttribute< VDimension >

Name
DefinedCallbacksStruct m_DefinedCallbacks

Detailed Description

template <class T ,
unsigned int VDimension>
class itk::ParticleShapeMatrixAttribute;

Each column describes a shape. A shape may be composed of m_DomainsPerShape domains (default 1). ALL DOMAINS ARE NOT ASSUMED TO HAVE THE SAME NUMBER OF PARTICLES!

Each column represents a single shape.

Public Types Documentation

typedef DataType

typedef T itk::ParticleShapeMatrixAttribute< T, VDimension >::DataType;

Standard class typedefs

typedef Self

typedef ParticleShapeMatrixAttribute itk::ParticleShapeMatrixAttribute< T, VDimension >::Self;

typedef Superclass

typedef ParticleAttribute<VDimension> itk::ParticleShapeMatrixAttribute< T, VDimension >::Superclass;

typedef Pointer

typedef SmartPointer<Self> itk::ParticleShapeMatrixAttribute< T, VDimension >::Pointer;

typedef ConstPointer

typedef SmartPointer<const Self> itk::ParticleShapeMatrixAttribute< T, VDimension >::ConstPointer;

typedef ConstWeakPointer

typedef WeakPointer<const Self> itk::ParticleShapeMatrixAttribute< T, VDimension >::ConstWeakPointer;

Public Functions Documentation

function itkNewMacro

itkNewMacro(
    Self 
)

Method for creation through the object factory. Run-time type information (and related methods).

function DomainAddEventCallback

inline virtual ParticleAttribute void DomainAddEventCallback(
    Object * ,
    const EventObject & e
)

Reimplements: itk::ParticleAttribute::DomainAddEventCallback

Reimplemented by: itk::ParticleShapeLinearRegressionMatrixAttribute::DomainAddEventCallback, itk::ParticleShapeLinearRegressionMatrixAttribute::DomainAddEventCallback, itk::ParticleShapeMixedEffectsMatrixAttribute::DomainAddEventCallback, itk::ParticleShapeMixedEffectsMatrixAttribute::DomainAddEventCallback

Callbacks that may be defined by a subclass. If a subclass defines one of these callback methods, the corresponding flag in m_DefinedCallbacks should be set to true so that the ParticleSystem will know to register the appropriate event with this method.

function ResizeMatrix

inline virtual void ResizeMatrix(
    int rs,
    int cs
)

function PositionAddEventCallback

inline virtual void PositionAddEventCallback(
    Object * o,
    const EventObject & e
)

Reimplements: itk::ParticleAttribute::PositionAddEventCallback

Reimplemented by: itk::ParticleShapeLinearRegressionMatrixAttribute::PositionAddEventCallback, itk::ParticleShapeLinearRegressionMatrixAttribute::PositionAddEventCallback, itk::ParticleShapeMixedEffectsMatrixAttribute::PositionAddEventCallback, itk::ParticleShapeMixedEffectsMatrixAttribute::PositionAddEventCallback

function PositionSetEventCallback

inline virtual void PositionSetEventCallback(
    Object * o,
    const EventObject & e
)

Reimplements: itk::ParticleAttribute::PositionSetEventCallback

Reimplemented by: itk::ParticleShapeLinearRegressionMatrixAttribute::PositionSetEventCallback, itk::ParticleShapeLinearRegressionMatrixAttribute::PositionSetEventCallback, itk::ParticleShapeMixedEffectsMatrixAttribute::PositionSetEventCallback, itk::ParticleShapeMixedEffectsMatrixAttribute::PositionSetEventCallback

function PositionRemoveEventCallback

inline virtual void PositionRemoveEventCallback(
    Object * ,
    const EventObject & 
)

Reimplements: itk::ParticleAttribute::PositionRemoveEventCallback

Reimplemented by: itk::ParticleShapeLinearRegressionMatrixAttribute::PositionRemoveEventCallback, itk::ParticleShapeLinearRegressionMatrixAttribute::PositionRemoveEventCallback, itk::ParticleShapeMixedEffectsMatrixAttribute::PositionRemoveEventCallback, itk::ParticleShapeMixedEffectsMatrixAttribute::PositionRemoveEventCallback

function PrintMatrix

inline void PrintMatrix()

function CheckForNans

inline bool CheckForNans()

function SetDomainsPerShape

inline void SetDomainsPerShape(
    int i
)

Set/Get the number of domains per shape. This can only be safely done before shapes are initialized with points!

function GetDomainsPerShape

inline int GetDomainsPerShape() const

function BeforeIteration

inline virtual void BeforeIteration()

Reimplemented by: itk::ParticleShapeLinearRegressionMatrixAttribute::BeforeIteration, itk::ParticleShapeLinearRegressionMatrixAttribute::BeforeIteration, itk::ParticleShapeMixedEffectsMatrixAttribute::BeforeIteration, itk::ParticleShapeMixedEffectsMatrixAttribute::BeforeIteration

function AfterIteration

inline virtual void AfterIteration()

function SetMatrix

inline virtual void SetMatrix(
    const vnl_matrix< T > & m
)

Protected Functions Documentation

function ParticleShapeMatrixAttribute

inline ParticleShapeMatrixAttribute()

function ~ParticleShapeMatrixAttribute

inline virtual ~ParticleShapeMatrixAttribute()

function PrintSelf

inline void PrintSelf(
    std::ostream & os,
    Indent indent
) const

Protected Attributes Documentation

variable m_DomainsPerShape

int m_DomainsPerShape;

Updated on 2022-07-23 at 17:50:03 -0600