33 #include <visp3/ustk_needle_modeling/usTissueModelPolynomial.h>
38 : m_surface(tissue.m_surface), m_path(tissue.m_path)
77 vpPoseVector ptu(this->
getPose());
79 vpHomogeneousMatrix M(ptu);
80 M = M * H * M.inverse();
89 return this->
move(vpHomogeneousMatrix(x, y, z, tx, ty, tz));
94 vpPoseVector ptu(this->
getPose());
96 vpHomogeneousMatrix M(vpHomogeneousMatrix(p) * vpHomogeneousMatrix(ptu).inverse());
108 for (
int i = 0; i < 3; i++)
116 s <<
"usTissueModelPolynomial\n";
128 if (c !=
"usTissueModelPolynomial") {
129 vpException e(vpException::ioError,
"Stream does not contain usTissueModelPolynomial data");
139 s.write(
"usTissueModelPolynomial", 24);
151 if (strcmp(c,
"usTissueModelPolynomial")) {
152 vpException e(vpException::ioError,
"Stream does not contain usTissueModelPolynomial data");
void moveInWorldFrame(const vpHomogeneousMatrix &H)
vpPoseVector getPose() const
vpColVector getPoint(double parameter) const
void move(const vpHomogeneousMatrix &H)
vpPoseVector getPose() const
usPolynomialCurve3D m_path
const usOrientedPlane3D & accessSurface() const
Parameters setters and getters.
usTissueModelPolynomial()
Constructors, destructor.
const usTissueModelPolynomial & operator=(const usTissueModelPolynomial &tissue)
virtual usTissueModelPolynomial * clone() const
bool setPose(const vpPoseVector &p)
virtual ~usTissueModelPolynomial()
bool moveInWorldFrame(const vpHomogeneousMatrix &H)
usOrientedPlane3D m_surface
Tissue parameters.
bool move(const vpHomogeneousMatrix &H)
const usPolynomialCurve3D & accessPath() const