Skip to content

shapeworks::ShapeMatrix

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

Inherits from vnl_matrix< double >, shapeworks::Observer

Public Types

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

Public Functions

Name
itkNewMacro(Self )
itkTypeMacro(ShapeMatrix , Observer )
virtual void before_iteration()
virtual void after_iteration()
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)
virtual void DomainAddEventCallback(Object * , const itk::EventObject & )
void SetValues(const ParticleSystem * ps, int idx, int d)
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 & )
void PrintMatrix()
bool CheckForNans()

Protected Functions

Name
ShapeMatrix()
virtual ~ShapeMatrix()
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::ShapeMatrix;

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::ShapeMatrix::DataType;

Standard class typedefs

typedef Self

cpp typedef ShapeMatrix shapeworks::ShapeMatrix::Self;

typedef Superclass

cpp typedef Observer shapeworks::ShapeMatrix::Superclass;

typedef Pointer

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

typedef ConstPointer

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

typedef ConstWeakPointer

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

Public Functions Documentation

function itkNewMacro

cpp itkNewMacro( Self )

Method for creation through the object factory.

function itkTypeMacro

cpp itkTypeMacro( ShapeMatrix , Observer )

Run-time type information (and related methods).

function before_iteration

cpp inline virtual void before_iteration()

function after_iteration

cpp inline virtual void after_iteration()

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 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 SetValues

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

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

function PrintMatrix

cpp inline void PrintMatrix()

function CheckForNans

cpp inline bool CheckForNans()

Protected Functions Documentation

function ShapeMatrix

cpp inline ShapeMatrix()

function ~ShapeMatrix

cpp inline virtual ~ShapeMatrix()

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