UsTK : Ultrasound ToolKit
version 2.0.1 under development (2024-11-21)
|
#include <visp3/ustk_needle_modeling/usVirtualSpring.h>
Public Member Functions | |
usVirtualSpring () | |
usVirtualSpring (const usVirtualSpring &spring) | |
usVirtualSpring (const vpColVector &p, const vpColVector &d, double K) | |
virtual | ~usVirtualSpring () |
const usVirtualSpring & | operator= (const usVirtualSpring &spring) |
void | setStiffness (double K) |
double | getStiffness () const |
void | addStiffness (double dK) |
void | Activate () |
void | Deactivate () |
bool | IsActive () const |
void | AllowRemoval (bool flag) |
bool | IsRemovable () const |
void | AllowPositionUpdate (bool flag) |
bool | IsPositionUpdateAllowed () const |
void | AllowDirectionUpdate (bool flag) |
bool | IsDirectionUpdateAllowed () const |
void | AllowStiffnessUpdate (bool flag) |
bool | IsStiffnessUpdateAllowed () const |
void | setPose (const vpPoseVector &pose) |
vpPoseVector | getPose () const |
void | setPosition (const vpColVector &P) |
vpColVector | getPosition () const |
void | setDirection (const vpColVector &D) |
vpColVector | getDirection () const |
void | moveInLocalFrame (const vpHomogeneousMatrix &H) |
void | moveInLocalFrame (double x, double y, double z, double tx, double ty, double tz) |
void | moveInWorldFrame (const vpHomogeneousMatrix &H) |
void | moveInWorldFrame (double x, double y, double z, double tx, double ty, double tz) |
Protected Attributes | |
double | m_stiffness |
bool | m_IsActive |
bool | m_IsRemovable |
bool | m_AllowPositionUpdate |
bool | m_AllowDirectionUpdate |
bool | m_AllowStiffnessUpdate |
vpColVector | m_direction |
vpPoseVector | m_pose |
Friends | |
VISP_EXPORT std::ostream & | operator<< (std::ostream &s, const usVirtualSpring &spg) |
VISP_EXPORT std::istream & | operator>> (std::istream &s, usVirtualSpring &spg) |
VISP_EXPORT std::ostream & | operator<<= (std::ostream &s, const usVirtualSpring &spg) |
VISP_EXPORT std::istream & | operator>>= (std::istream &s, usVirtualSpring &spg) |
Definition at line 42 of file usVirtualSpring.h.
usVirtualSpring::usVirtualSpring | ( | ) |
Constructors, destructor.
Definition at line 35 of file usVirtualSpring.cpp.
usVirtualSpring::usVirtualSpring | ( | const usVirtualSpring & | spring | ) |
Definition at line 43 of file usVirtualSpring.cpp.
usVirtualSpring::usVirtualSpring | ( | const vpColVector & | p, |
const vpColVector & | d, | ||
double | K | ||
) |
Definition at line 54 of file usVirtualSpring.cpp.
References setStiffness().
|
virtual |
Definition at line 63 of file usVirtualSpring.cpp.
void usVirtualSpring::Activate | ( | ) |
Definition at line 93 of file usVirtualSpring.cpp.
References m_IsActive.
void usVirtualSpring::addStiffness | ( | double | dK | ) |
Definition at line 87 of file usVirtualSpring.cpp.
References m_stiffness.
void usVirtualSpring::AllowDirectionUpdate | ( | bool | flag | ) |
Definition at line 107 of file usVirtualSpring.cpp.
References m_AllowDirectionUpdate.
Referenced by usNeedleInsertionModelVirtualSprings::addMeasureSpring().
void usVirtualSpring::AllowPositionUpdate | ( | bool | flag | ) |
Definition at line 103 of file usVirtualSpring.cpp.
References m_AllowPositionUpdate.
Referenced by usNeedleInsertionModelVirtualSprings::addMeasureSpring().
void usVirtualSpring::AllowRemoval | ( | bool | flag | ) |
Definition at line 99 of file usVirtualSpring.cpp.
References m_IsRemovable.
void usVirtualSpring::AllowStiffnessUpdate | ( | bool | flag | ) |
Definition at line 111 of file usVirtualSpring.cpp.
References m_AllowStiffnessUpdate.
Referenced by usNeedleInsertionModelVirtualSprings::addMeasureSpring().
void usVirtualSpring::Deactivate | ( | ) |
Definition at line 95 of file usVirtualSpring.cpp.
References m_IsActive.
|
inherited |
Definition at line 116 of file usOrientedPlane3D.cpp.
References usOrientedPlane3D::m_direction.
Referenced by usNeedleInsertionModelVirtualSprings::addInsertionPoint(), usNeedleInsertionModelVirtualSprings::addMeasureSpring(), usNeedleInsertionModelVirtualSprings::addRemoveSprings(), usTissueTranslationEstimatorUKF::computeProcessNoiseCovarianceMatrix(), usGeometryDisplayTools::display(), usNeedleModelingDisplayTools::displayTissueLayers(), usGeometryTools::getPointPlaneDistance(), usGeometryTools::projectPointOnPlane(), usNeedleInsertionModelRayleighRitzSpline::setBasePose(), usNeedleInsertionModelRayleighRitzSpline::solveSegmentsParametersDense(), usNeedleInsertionModelRayleighRitzSpline::solveSegmentsParametersFullSparseEigen(), usNeedleInsertionModelRayleighRitzSpline::solveSegmentsParametersFullSparseEigenFixedLength(), and usNeedleInsertionModelRayleighRitzSpline::solveSegmentsParametersSparseEigen().
|
inherited |
Definition at line 70 of file usOrientedPlane3D.cpp.
References usOrientedPlane3D::m_pose.
Referenced by usTissueTranslationEstimatorUKF::applyStateToNeedle(), usTissueModelPolynomial::getPose(), and usTissueModelSpline::getPose().
|
inherited |
Definition at line 80 of file usOrientedPlane3D.cpp.
References usOrientedPlane3D::m_pose.
Referenced by usGeometryDisplayTools::display(), usNeedleModelingDisplayTools::displayTissueLayers(), usGeometryTools::getPointPlaneDistance(), and usGeometryTools::projectPointOnPlane().
double usVirtualSpring::getStiffness | ( | ) | const |
Definition at line 85 of file usVirtualSpring.cpp.
References m_stiffness.
bool usVirtualSpring::IsActive | ( | ) | const |
Definition at line 97 of file usVirtualSpring.cpp.
References m_IsActive.
bool usVirtualSpring::IsDirectionUpdateAllowed | ( | ) | const |
Definition at line 109 of file usVirtualSpring.cpp.
References m_AllowDirectionUpdate.
bool usVirtualSpring::IsPositionUpdateAllowed | ( | ) | const |
Definition at line 105 of file usVirtualSpring.cpp.
References m_AllowPositionUpdate.
Referenced by usNeedleModelingDisplayTools::display().
bool usVirtualSpring::IsRemovable | ( | ) | const |
Definition at line 101 of file usVirtualSpring.cpp.
References m_IsRemovable.
bool usVirtualSpring::IsStiffnessUpdateAllowed | ( | ) | const |
Definition at line 113 of file usVirtualSpring.cpp.
References m_AllowStiffnessUpdate.
|
inherited |
Definition at line 118 of file usOrientedPlane3D.cpp.
References usOrientedPlane3D::m_pose, and usOrientedPlane3D::setPose().
Referenced by usOrientedPlane3D::moveInLocalFrame().
|
inherited |
Definition at line 123 of file usOrientedPlane3D.cpp.
References usOrientedPlane3D::moveInLocalFrame().
|
inherited |
Definition at line 128 of file usOrientedPlane3D.cpp.
References usOrientedPlane3D::m_pose, and usOrientedPlane3D::setPose().
Referenced by usTissueModelPolynomial::move(), usTissueModelSpline::move(), usTissueModelPolynomial::moveInWorldFrame(), usTissueModelSpline::moveInWorldFrame(), usOrientedPlane3D::moveInWorldFrame(), usTissueModelPolynomial::setPose(), and usTissueModelSpline::setPose().
|
inherited |
Definition at line 133 of file usOrientedPlane3D.cpp.
References usOrientedPlane3D::moveInWorldFrame().
const usVirtualSpring & usVirtualSpring::operator= | ( | const usVirtualSpring & | spring | ) |
Definition at line 65 of file usVirtualSpring.cpp.
References m_AllowDirectionUpdate, m_AllowPositionUpdate, m_AllowStiffnessUpdate, m_IsActive, m_IsRemovable, m_stiffness, and usOrientedPlane3D::operator=().
|
inherited |
Definition at line 90 of file usOrientedPlane3D.cpp.
References usOrientedPlane3D::m_direction, and usOrientedPlane3D::m_pose.
Referenced by usNeedleInsertionModelVirtualSprings::addInsertionPoint(), usNeedleInsertionModelVirtualSprings::setSurfaceAtTip(), and usOrientedPlane3D::usOrientedPlane3D().
|
inherited |
Parameters setters and getters.
Definition at line 64 of file usOrientedPlane3D.cpp.
References usOrientedPlane3D::m_direction, and usOrientedPlane3D::m_pose.
Referenced by usOrientedPlane3D::moveInLocalFrame(), usOrientedPlane3D::moveInWorldFrame(), and usNeedleInsertionModelRayleighRitzSpline::setSurfaceAtTip().
|
inherited |
Definition at line 72 of file usOrientedPlane3D.cpp.
References usOrientedPlane3D::m_pose.
Referenced by usNeedleInsertionModelVirtualSprings::setSurfaceAtTip(), usNeedleInsertionModelRayleighRitzSpline::updateState(), and usOrientedPlane3D::usOrientedPlane3D().
void usVirtualSpring::setStiffness | ( | double | K | ) |
Parameters setters and getters.
Definition at line 79 of file usVirtualSpring.cpp.
References m_stiffness.
Referenced by usNeedleInsertionModelVirtualSprings::addInsertionPoint(), and usVirtualSpring().
|
friend |
|
friend |
Binary.
Definition at line 154 of file usVirtualSpring.cpp.
|
friend |
Definition at line 131 of file usVirtualSpring.cpp.
|
friend |
Definition at line 168 of file usVirtualSpring.cpp.
|
protected |
Definition at line 50 of file usVirtualSpring.h.
Referenced by AllowDirectionUpdate(), IsDirectionUpdateAllowed(), and operator=().
|
protected |
Definition at line 49 of file usVirtualSpring.h.
Referenced by AllowPositionUpdate(), IsPositionUpdateAllowed(), and operator=().
|
protected |
Definition at line 51 of file usVirtualSpring.h.
Referenced by AllowStiffnessUpdate(), IsStiffnessUpdateAllowed(), and operator=().
|
protectedinherited |
Definition at line 45 of file usOrientedPlane3D.h.
Referenced by usOrientedPlane3D::getDirection(), usOrientedPlane3D::operator=(), usOrientedPlane3D::setDirection(), and usOrientedPlane3D::setPose().
|
protected |
Definition at line 47 of file usVirtualSpring.h.
Referenced by Activate(), Deactivate(), IsActive(), and operator=().
|
protected |
Definition at line 48 of file usVirtualSpring.h.
Referenced by AllowRemoval(), IsRemovable(), and operator=().
|
protectedinherited |
Definition at line 46 of file usOrientedPlane3D.h.
Referenced by usOrientedPlane3D::getPose(), usOrientedPlane3D::getPosition(), usOrientedPlane3D::moveInLocalFrame(), usOrientedPlane3D::moveInWorldFrame(), usOrientedPlane3D::operator=(), usOrientedPlane3D::setDirection(), usOrientedPlane3D::setPose(), and usOrientedPlane3D::setPosition().
|
protected |
Definition at line 45 of file usVirtualSpring.h.
Referenced by addStiffness(), getStiffness(), operator=(), and setStiffness().