Skip to content

itk::Constraint

Inherited by itk::FreeFormConstraint, itk::PlaneConstraint, itk::SphereConstraint

Public Functions

Name
virtual bool isViolated(const vnl_vector< double > & pt) const =0
virtual bool isViolated(const Eigen::Vector3d & pt) const =0
virtual void printC() const =0
shapeworks::ConstraintType GetConstraintType()
void setConstraintType(shapeworks::ConstraintType inType)
void SetZ(double inz)
double GetZ()
void SetMu(double inmu)
double GetMu()
void SetLambda(double inLambda)
double GetLambda()
virtual Eigen::Vector3d ConstraintGradient(const Eigen::Vector3d & pt) const =0
virtual double ConstraintEval(const Eigen::Vector3d & pt) const =0
void UpdateZ(const Eigen::Vector3d & pt, double C)
void UpdateMu(const Eigen::Vector3d & pt, double C)
Eigen::Vector3d LagragianGradient(const Eigen::Vector3d & pt, double C)

Protected Functions

Name
int sgn(double val)

Protected Attributes

Name
shapeworks::ConstraintType type
double mu
double z
double lambda

Public Functions Documentation

function isViolated

virtual bool isViolated(
    const vnl_vector< double > & pt
) const =0

Reimplemented by: itk::FreeFormConstraint::isViolated, itk::PlaneConstraint::isViolated, itk::SphereConstraint::isViolated

function isViolated

virtual bool isViolated(
    const Eigen::Vector3d & pt
) const =0

Reimplemented by: itk::FreeFormConstraint::isViolated, itk::PlaneConstraint::isViolated, itk::SphereConstraint::isViolated

function printC

virtual void printC() const =0

Reimplemented by: itk::FreeFormConstraint::printC, itk::PlaneConstraint::printC, itk::SphereConstraint::printC

function GetConstraintType

inline shapeworks::ConstraintType GetConstraintType()

function setConstraintType

inline void setConstraintType(
    shapeworks::ConstraintType inType
)

function SetZ

inline void SetZ(
    double inz
)

function GetZ

inline double GetZ()

function SetMu

inline void SetMu(
    double inmu
)

function GetMu

inline double GetMu()

function SetLambda

inline void SetLambda(
    double inLambda
)

function GetLambda

inline double GetLambda()

function ConstraintGradient

virtual Eigen::Vector3d ConstraintGradient(
    const Eigen::Vector3d & pt
) const =0

Reimplemented by: itk::FreeFormConstraint::ConstraintGradient, itk::PlaneConstraint::ConstraintGradient, itk::SphereConstraint::ConstraintGradient

function ConstraintEval

virtual double ConstraintEval(
    const Eigen::Vector3d & pt
) const =0

Reimplemented by: itk::FreeFormConstraint::ConstraintEval, itk::PlaneConstraint::ConstraintEval, itk::SphereConstraint::ConstraintEval

function UpdateZ

inline void UpdateZ(
    const Eigen::Vector3d & pt,
    double C
)

function UpdateMu

inline void UpdateMu(
    const Eigen::Vector3d & pt,
    double C
)

function LagragianGradient

inline Eigen::Vector3d LagragianGradient(
    const Eigen::Vector3d & pt,
    double C
)

Protected Functions Documentation

function sgn

inline int sgn(
    double val
)

Protected Attributes Documentation

variable type

shapeworks::ConstraintType type;

variable mu

double mu;

variable z

double z;

variable lambda

double lambda;

Updated on 2022-03-31 at 09:51:18 -0600