33 #include <visp3/ustk_needle_modeling/usTissueModelSpline.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());
109 for (
int i = 0; i < 3; i++)
118 s <<
"usTissueModelSpline\n";
130 if (c !=
"usTissueModelSpline") {
131 vpException e(vpException::ioError,
"Stream does not contain usTissueModelSpline data");
141 s.write(
"usTissueModelSpline", 20);
153 if (strcmp(c,
"usTissueModelSpline")) {
154 vpException e(vpException::ioError,
"Stream does not contain usTissueModelSpline data");
int getNbSegments() const
Parameters setters and getters.
bool move(const vpHomogeneousMatrix &H)
Move.
vpColVector getPoint(double param) const
Measure curve information.
void moveInWorldFrame(const vpHomogeneousMatrix &H)
vpPoseVector getPose() const
const usBSpline3D & accessPath() const
const usTissueModelSpline & operator=(const usTissueModelSpline &tissue)
usTissueModelSpline()
Constructors, destructor.
bool moveInWorldFrame(const vpHomogeneousMatrix &H)
bool setPose(const vpPoseVector &p)
vpPoseVector getPose() const
usOrientedPlane3D m_surface
Tissue parameters.
bool move(const vpHomogeneousMatrix &H)
const usOrientedPlane3D & accessSurface() const
Parameters setters and getters.
virtual ~usTissueModelSpline()
virtual usTissueModelSpline * clone() const