Skip to content

shapeworks::ShapeGradientMatrix

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 <ShapeGradientMatrix.h>

Inherits from vnl_matrix< double >, shapeworks::Observer

Public Types

Name
typedef double DataType
typedef ShapeGradientMatrix Self
typedef Observer Superclass
typedef itk::SmartPointer< Self > Pointer
typedef itk::SmartPointer< const Self > ConstPointer
typedef itk::WeakPointer< const Self > ConstWeakPointer
typedef ParticleSystem ParticleSystemType

Public Functions

Name
itkNewMacro(Self )
itkTypeMacro(ShapeGradientMatrix , Observer )
virtual void BeforeIteration()
virtual void AfterIteration()
void SetDomainsPerShape(int i)
int GetDomainsPerShape() const
void SetAttributesPerDomain(const std::vector< int > & i)
void SetAttributeScales(const std::vector< double > & s)
void SetXYZ(int i, bool val)
void SetNormals(int i, bool val)
virtual void SetMatrix(const vnl_matrix< double > & m)
virtual void ResizeMatrix(int rs, int cs)
void SetValues(const ParticleSystemType * ps, int idx, int d)
virtual void DomainAddEventCallback(Object * , const itk::EventObject & )
virtual void PositionAddEventCallback(Object * o, const itk::EventObject & e)
virtual void PositionSetEventCallback(Object * o, const itk::EventObject & e)
virtual void PositionRemoveEventCallback(Object * , const itk::EventObject & )

Protected Functions

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

Protected Attributes

Name
int m_DomainsPerShape

Additional inherited members

Public Classes inherited from shapeworks::Observer

Name
struct DefinedCallbacksStruct

Public Functions inherited from shapeworks::Observer

Name
virtual void TransformSetEventCallback(Object * , const itk::EventObject & )
virtual void PrefixTransformSetEventCallback(Object * , const itk::EventObject & )

Protected Functions inherited from shapeworks::Observer

Name
Observer()
virtual ~Observer()

Public Attributes inherited from shapeworks::Observer

Name
DefinedCallbacksStruct m_DefinedCallbacks

Detailed Description

cpp class shapeworks::ShapeGradientMatrix;

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

cpp typedef double shapeworks::ShapeGradientMatrix::DataType;

Standard class typedefs

typedef Self

cpp typedef ShapeGradientMatrix shapeworks::ShapeGradientMatrix::Self;

typedef Superclass

cpp typedef Observer shapeworks::ShapeGradientMatrix::Superclass;

typedef Pointer

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

typedef ConstPointer

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

typedef ConstWeakPointer

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

typedef ParticleSystemType

cpp typedef ParticleSystem shapeworks::ShapeGradientMatrix::ParticleSystemType;

Public Functions Documentation

function itkNewMacro

cpp itkNewMacro( Self )

function itkTypeMacro

cpp itkTypeMacro( ShapeGradientMatrix , Observer )

function BeforeIteration

cpp inline virtual void BeforeIteration()

function AfterIteration

cpp inline virtual void AfterIteration()

function SetDomainsPerShape

cpp 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

cpp inline int GetDomainsPerShape() const

function SetAttributesPerDomain

cpp inline void SetAttributesPerDomain( const std::vector< int > & i )

function SetAttributeScales

cpp inline void SetAttributeScales( const std::vector< double > & s )

function SetXYZ

cpp inline void SetXYZ( int i, bool val )

function SetNormals

cpp inline void SetNormals( int i, bool val )

function SetMatrix

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

function ResizeMatrix

cpp inline virtual void ResizeMatrix( int rs, int cs )

function SetValues

cpp void SetValues( const ParticleSystemType * ps, int idx, int d )

function DomainAddEventCallback

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

Reimplements: shapeworks::Observer::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 PositionAddEventCallback

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

Reimplements: shapeworks::Observer::PositionAddEventCallback

function PositionSetEventCallback

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

Reimplements: shapeworks::Observer::PositionSetEventCallback

function PositionRemoveEventCallback

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

Reimplements: shapeworks::Observer::PositionRemoveEventCallback

Protected Functions Documentation

function ShapeGradientMatrix

cpp inline ShapeGradientMatrix()

function ~ShapeGradientMatrix

cpp inline virtual ~ShapeGradientMatrix()

function PrintSelf

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

Protected Attributes Documentation

variable m_DomainsPerShape

cpp int m_DomainsPerShape;


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