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 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)
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 & )
virtual void NeighborhoodSetEventCallback(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

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

typedef double shapeworks::ShapeMatrix::DataType;

Standard class typedefs

typedef Self

typedef ShapeMatrix shapeworks::ShapeMatrix::Self;

typedef Superclass

typedef Observer shapeworks::ShapeMatrix::Superclass;

typedef Pointer

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

typedef ConstPointer

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

typedef ConstWeakPointer

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

Public Functions Documentation

function itkNewMacro

itkNewMacro(
    Self 
)

Method for creation through the object factory.

function itkTypeMacro

itkTypeMacro(
    ShapeMatrix ,
    Observer 
)

Run-time type information (and related methods).

function BeforeIteration

inline virtual void BeforeIteration()

function AfterIteration

inline virtual void AfterIteration()

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 SetAttributesPerDomain

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

function SetAttributeScales

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

function SetXYZ

inline void SetXYZ(
    int i,
    bool val
)

function SetNormals

inline void SetNormals(
    int i,
    bool val
)

function SetMatrix

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

function ResizeMatrix

inline virtual void ResizeMatrix(
    int rs,
    int cs
)

function DomainAddEventCallback

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

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

function PositionAddEventCallback

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

Reimplements: shapeworks::Observer::PositionAddEventCallback

function PositionSetEventCallback

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

Reimplements: shapeworks::Observer::PositionSetEventCallback

function PositionRemoveEventCallback

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

Reimplements: shapeworks::Observer::PositionRemoveEventCallback

function PrintMatrix

inline void PrintMatrix()

function CheckForNans

inline bool CheckForNans()

Protected Functions Documentation

function ShapeMatrix

inline ShapeMatrix()

function ~ShapeMatrix

inline virtual ~ShapeMatrix()

function PrintSelf

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

Protected Attributes Documentation

variable m_DomainsPerShape

int m_DomainsPerShape;

Updated on 2024-03-17 at 12:58:44 -0600