Skip to content

shapeworks::Observer

This class is an observer interface for classes to monitor for changes to the optimizer (observer pattern)

#include <Observer.h>

Inherits from itk::DataObject

Inherited by shapeworks::GenericContainerArray< TNumericType >, shapeworks::GenericContainerArray< T >, shapeworks::LegacyShapeMatrix, shapeworks::ShapeGradientMatrix, shapeworks::ShapeMatrix

Public Classes

Name
struct DefinedCallbacksStruct

Public Types

Name
typedef Observer Self
typedef DataObject Superclass
typedef itk::SmartPointer< Self > Pointer
typedef itk::SmartPointer< const Self > ConstPointer
typedef itk::WeakPointer< const Self > ConstWeakPointer

Public Functions

Name
itkNewMacro(Self )
itkTypeMacro(Observer , DataObject )
virtual void DomainAddEventCallback(Object * , const itk::EventObject & )
virtual void TransformSetEventCallback(Object * , const itk::EventObject & )
virtual void PrefixTransformSetEventCallback(Object * , const itk::EventObject & )
virtual void PositionSetEventCallback(Object * , const itk::EventObject & )
virtual void PositionAddEventCallback(Object * , const itk::EventObject & )
virtual void PositionRemoveEventCallback(Object * , const itk::EventObject & )

Protected Functions

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

Public Attributes

Name
DefinedCallbacksStruct m_DefinedCallbacks

Public Types Documentation

typedef Self

cpp typedef Observer shapeworks::Observer::Self;

Standard class typedefs

typedef Superclass

cpp typedef DataObject shapeworks::Observer::Superclass;

typedef Pointer

cpp typedef itk::SmartPointer<Self> shapeworks::Observer::Pointer;

typedef ConstPointer

cpp typedef itk::SmartPointer<const Self> shapeworks::Observer::ConstPointer;

typedef ConstWeakPointer

cpp typedef itk::WeakPointer<const Self> shapeworks::Observer::ConstWeakPointer;

Public Functions Documentation

function itkNewMacro

cpp itkNewMacro( Self )

Method for creation through the object factory.

function itkTypeMacro

cpp itkTypeMacro( Observer , DataObject )

Run-time type information (and related methods).

function DomainAddEventCallback

cpp inline virtual void DomainAddEventCallback( Object * , const itk::EventObject & )

Reimplemented by: shapeworks::GenericContainerArray::DomainAddEventCallback, shapeworks::GenericContainerArray::DomainAddEventCallback, shapeworks::LegacyShapeMatrix::DomainAddEventCallback, shapeworks::LinearRegressionShapeMatrix::DomainAddEventCallback, shapeworks::MixedEffectsShapeMatrix::DomainAddEventCallback, shapeworks::ShapeGradientMatrix::DomainAddEventCallback, shapeworks::ShapeMatrix::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 TransformSetEventCallback

cpp inline virtual void TransformSetEventCallback( Object * , const itk::EventObject & )

function PrefixTransformSetEventCallback

cpp inline virtual void PrefixTransformSetEventCallback( Object * , const itk::EventObject & )

function PositionSetEventCallback

cpp inline virtual void PositionSetEventCallback( Object * , const itk::EventObject & )

Reimplemented by: shapeworks::LegacyShapeMatrix::PositionSetEventCallback, shapeworks::LinearRegressionShapeMatrix::PositionSetEventCallback, shapeworks::MixedEffectsShapeMatrix::PositionSetEventCallback, shapeworks::ShapeGradientMatrix::PositionSetEventCallback, shapeworks::ShapeMatrix::PositionSetEventCallback

function PositionAddEventCallback

cpp inline virtual void PositionAddEventCallback( Object * , const itk::EventObject & )

Reimplemented by: shapeworks::GenericContainerArray::PositionAddEventCallback, shapeworks::GenericContainerArray::PositionAddEventCallback, shapeworks::LegacyShapeMatrix::PositionAddEventCallback, shapeworks::LinearRegressionShapeMatrix::PositionAddEventCallback, shapeworks::MixedEffectsShapeMatrix::PositionAddEventCallback, shapeworks::ShapeGradientMatrix::PositionAddEventCallback, shapeworks::ShapeMatrix::PositionAddEventCallback

function PositionRemoveEventCallback

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

Reimplemented by: shapeworks::GenericContainerArray::PositionRemoveEventCallback, shapeworks::GenericContainerArray::PositionRemoveEventCallback, shapeworks::LegacyShapeMatrix::PositionRemoveEventCallback, shapeworks::LinearRegressionShapeMatrix::PositionRemoveEventCallback, shapeworks::MixedEffectsShapeMatrix::PositionRemoveEventCallback, shapeworks::ShapeGradientMatrix::PositionRemoveEventCallback, shapeworks::ShapeMatrix::PositionRemoveEventCallback

Protected Functions Documentation

function Observer

cpp inline Observer()

function ~Observer

cpp inline virtual ~Observer()

function PrintSelf

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

Public Attributes Documentation

variable m_DefinedCallbacks

cpp DefinedCallbacksStruct m_DefinedCallbacks;


Updated on 2026-03-31 at 16:02:10 +0000