#include <Constraints.h>
Public Member Functions | |
Constraint () | |
virtual double | error () |
int | getTag () |
virtual ConstraintType | getTypeId () |
virtual double | grad (double *) |
virtual double | maxStep (MAP_pD_D &dir, double lim=1.) |
VEC_pD | params () |
void | redirectParams (MAP_pD_pD redirectionmap) |
virtual void | rescale (double coef=1.) |
void | revertParams () |
void | setTag (int tagId) |
Protected Attributes | |
VEC_pD | origpvec |
VEC_pD | pvec |
double | scale |
int | tag |
Definition at line 50 of file Constraints.h.
GCS::Constraint::Constraint | ( | ) |
Definition at line 33 of file Constraints.cpp.
double GCS::Constraint::error | ( | ) | [virtual] |
Reimplemented in GCS::ConstraintEqual, GCS::ConstraintDifference, GCS::ConstraintP2PDistance, GCS::ConstraintP2PAngle, GCS::ConstraintP2LDistance, GCS::ConstraintPointOnLine, GCS::ConstraintParallel, GCS::ConstraintPerpendicular, GCS::ConstraintL2LAngle, and GCS::ConstraintMidpointOnLine.
Definition at line 64 of file Constraints.cpp.
int GCS::Constraint::getTag | ( | ) | [inline] |
Definition at line 65 of file Constraints.h.
References tag.
ConstraintType GCS::Constraint::getTypeId | ( | void | ) | [virtual] |
Reimplemented in GCS::ConstraintEqual, GCS::ConstraintDifference, GCS::ConstraintP2PDistance, GCS::ConstraintP2PAngle, GCS::ConstraintP2LDistance, GCS::ConstraintPointOnLine, GCS::ConstraintParallel, GCS::ConstraintPerpendicular, GCS::ConstraintL2LAngle, and GCS::ConstraintMidpointOnLine.
Definition at line 54 of file Constraints.cpp.
References GCS::None.
double GCS::Constraint::grad | ( | double * | param | ) | [virtual] |
Reimplemented in GCS::ConstraintEqual, GCS::ConstraintDifference, GCS::ConstraintP2PDistance, GCS::ConstraintP2PAngle, GCS::ConstraintP2LDistance, GCS::ConstraintPointOnLine, GCS::ConstraintParallel, GCS::ConstraintPerpendicular, GCS::ConstraintL2LAngle, and GCS::ConstraintMidpointOnLine.
Definition at line 69 of file Constraints.cpp.
double GCS::Constraint::maxStep | ( | MAP_pD_D & | dir, | |
double | lim = 1. | |||
) | [virtual] |
Reimplemented in GCS::ConstraintP2PDistance, GCS::ConstraintP2PAngle, GCS::ConstraintP2LDistance, and GCS::ConstraintL2LAngle.
Definition at line 74 of file Constraints.cpp.
VEC_pD GCS::Constraint::params | ( | ) | [inline] |
Definition at line 60 of file Constraints.h.
References pvec.
Referenced by GCS::System::addConstraint().
void GCS::Constraint::redirectParams | ( | MAP_pD_pD | redirectionmap | ) |
Definition at line 38 of file Constraints.cpp.
void GCS::Constraint::rescale | ( | double | coef = 1. |
) | [virtual] |
Reimplemented in GCS::ConstraintEqual, GCS::ConstraintDifference, GCS::ConstraintP2PDistance, GCS::ConstraintP2PAngle, GCS::ConstraintP2LDistance, GCS::ConstraintPointOnLine, GCS::ConstraintParallel, GCS::ConstraintPerpendicular, GCS::ConstraintL2LAngle, and GCS::ConstraintMidpointOnLine.
Definition at line 59 of file Constraints.cpp.
References scale.
void GCS::Constraint::revertParams | ( | ) |
Definition at line 49 of file Constraints.cpp.
void GCS::Constraint::setTag | ( | int | tagId | ) | [inline] |
Definition at line 64 of file Constraints.h.
References tag.
Referenced by GCS::System::addConstraintDifference(), GCS::System::addConstraintEqual(), GCS::System::addConstraintL2LAngle(), GCS::System::addConstraintMidpointOnLine(), GCS::System::addConstraintP2LDistance(), GCS::System::addConstraintP2PAngle(), GCS::System::addConstraintP2PDistance(), GCS::System::addConstraintParallel(), GCS::System::addConstraintPerpendicular(), and GCS::System::addConstraintPointOnLine().
VEC_pD GCS::Constraint::origpvec [protected] |
Definition at line 53 of file Constraints.h.
Referenced by GCS::ConstraintDifference::ConstraintDifference(), GCS::ConstraintEqual::ConstraintEqual(), GCS::ConstraintL2LAngle::ConstraintL2LAngle(), GCS::ConstraintMidpointOnLine::ConstraintMidpointOnLine(), GCS::ConstraintP2LDistance::ConstraintP2LDistance(), GCS::ConstraintP2PAngle::ConstraintP2PAngle(), GCS::ConstraintP2PDistance::ConstraintP2PDistance(), GCS::ConstraintParallel::ConstraintParallel(), GCS::ConstraintPerpendicular::ConstraintPerpendicular(), GCS::ConstraintPointOnLine::ConstraintPointOnLine(), redirectParams(), and revertParams().
VEC_pD GCS::Constraint::pvec [protected] |
Definition at line 54 of file Constraints.h.
Referenced by GCS::ConstraintDifference::ConstraintDifference(), GCS::ConstraintEqual::ConstraintEqual(), GCS::ConstraintL2LAngle::ConstraintL2LAngle(), GCS::ConstraintMidpointOnLine::ConstraintMidpointOnLine(), GCS::ConstraintP2LDistance::ConstraintP2LDistance(), GCS::ConstraintP2PAngle::ConstraintP2PAngle(), GCS::ConstraintP2PDistance::ConstraintP2PDistance(), GCS::ConstraintParallel::ConstraintParallel(), GCS::ConstraintPerpendicular::ConstraintPerpendicular(), GCS::ConstraintPointOnLine::ConstraintPointOnLine(), params(), redirectParams(), and revertParams().
double GCS::Constraint::scale [protected] |
Definition at line 55 of file Constraints.h.
Referenced by GCS::ConstraintMidpointOnLine::error(), GCS::ConstraintL2LAngle::error(), GCS::ConstraintPerpendicular::error(), GCS::ConstraintParallel::error(), GCS::ConstraintPointOnLine::error(), GCS::ConstraintP2LDistance::error(), GCS::ConstraintP2PAngle::error(), GCS::ConstraintP2PDistance::error(), GCS::ConstraintDifference::error(), GCS::ConstraintEqual::error(), GCS::ConstraintMidpointOnLine::grad(), GCS::ConstraintL2LAngle::grad(), GCS::ConstraintPerpendicular::grad(), GCS::ConstraintParallel::grad(), GCS::ConstraintPointOnLine::grad(), GCS::ConstraintP2LDistance::grad(), GCS::ConstraintP2PAngle::grad(), GCS::ConstraintP2PDistance::grad(), GCS::ConstraintDifference::grad(), GCS::ConstraintEqual::grad(), GCS::ConstraintMidpointOnLine::rescale(), GCS::ConstraintL2LAngle::rescale(), GCS::ConstraintPerpendicular::rescale(), GCS::ConstraintParallel::rescale(), GCS::ConstraintPointOnLine::rescale(), GCS::ConstraintP2LDistance::rescale(), GCS::ConstraintP2PAngle::rescale(), GCS::ConstraintP2PDistance::rescale(), GCS::ConstraintDifference::rescale(), GCS::ConstraintEqual::rescale(), and rescale().
int GCS::Constraint::tag [protected] |
Definition at line 56 of file Constraints.h.