UsTK : Ultrasound ToolKit  version 2.0.1 under development (2024-12-17)
usVirtualSpring Class Reference

#include <visp3/ustk_needle_modeling/usVirtualSpring.h>

+ Inheritance diagram for usVirtualSpring:

Public Member Functions

 usVirtualSpring ()
 
 usVirtualSpring (const usVirtualSpring &spring)
 
 usVirtualSpring (const vpColVector &p, const vpColVector &d, double K)
 
virtual ~usVirtualSpring ()
 
const usVirtualSpringoperator= (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)
 

Detailed Description

Definition at line 42 of file usVirtualSpring.h.

Constructor & Destructor Documentation

◆ usVirtualSpring() [1/3]

usVirtualSpring::usVirtualSpring ( )

Constructors, destructor.

Definition at line 35 of file usVirtualSpring.cpp.

◆ usVirtualSpring() [2/3]

usVirtualSpring::usVirtualSpring ( const usVirtualSpring spring)

Definition at line 43 of file usVirtualSpring.cpp.

◆ usVirtualSpring() [3/3]

usVirtualSpring::usVirtualSpring ( const vpColVector &  p,
const vpColVector &  d,
double  K 
)

Definition at line 54 of file usVirtualSpring.cpp.

References setStiffness().

◆ ~usVirtualSpring()

usVirtualSpring::~usVirtualSpring ( )
virtual

Definition at line 63 of file usVirtualSpring.cpp.

Member Function Documentation

◆ Activate()

void usVirtualSpring::Activate ( )

Definition at line 93 of file usVirtualSpring.cpp.

References m_IsActive.

◆ addStiffness()

void usVirtualSpring::addStiffness ( double  dK)

Definition at line 87 of file usVirtualSpring.cpp.

References m_stiffness.

◆ AllowDirectionUpdate()

void usVirtualSpring::AllowDirectionUpdate ( bool  flag)

◆ AllowPositionUpdate()

void usVirtualSpring::AllowPositionUpdate ( bool  flag)

◆ AllowRemoval()

void usVirtualSpring::AllowRemoval ( bool  flag)

Definition at line 99 of file usVirtualSpring.cpp.

References m_IsRemovable.

◆ AllowStiffnessUpdate()

void usVirtualSpring::AllowStiffnessUpdate ( bool  flag)

◆ Deactivate()

void usVirtualSpring::Deactivate ( )

Definition at line 95 of file usVirtualSpring.cpp.

References m_IsActive.

◆ getDirection()

◆ getPose()

vpPoseVector usOrientedPlane3D::getPose ( ) const
inherited

◆ getPosition()

◆ getStiffness()

double usVirtualSpring::getStiffness ( ) const

Definition at line 85 of file usVirtualSpring.cpp.

References m_stiffness.

◆ IsActive()

bool usVirtualSpring::IsActive ( ) const

Definition at line 97 of file usVirtualSpring.cpp.

References m_IsActive.

◆ IsDirectionUpdateAllowed()

bool usVirtualSpring::IsDirectionUpdateAllowed ( ) const

Definition at line 109 of file usVirtualSpring.cpp.

References m_AllowDirectionUpdate.

◆ IsPositionUpdateAllowed()

bool usVirtualSpring::IsPositionUpdateAllowed ( ) const

Definition at line 105 of file usVirtualSpring.cpp.

References m_AllowPositionUpdate.

Referenced by usNeedleModelingDisplayTools::display().

◆ IsRemovable()

bool usVirtualSpring::IsRemovable ( ) const

Definition at line 101 of file usVirtualSpring.cpp.

References m_IsRemovable.

◆ IsStiffnessUpdateAllowed()

bool usVirtualSpring::IsStiffnessUpdateAllowed ( ) const

Definition at line 113 of file usVirtualSpring.cpp.

References m_AllowStiffnessUpdate.

◆ moveInLocalFrame() [1/2]

void usOrientedPlane3D::moveInLocalFrame ( const vpHomogeneousMatrix &  H)
inherited

◆ moveInLocalFrame() [2/2]

void usOrientedPlane3D::moveInLocalFrame ( double  x,
double  y,
double  z,
double  tx,
double  ty,
double  tz 
)
inherited

Definition at line 123 of file usOrientedPlane3D.cpp.

References usOrientedPlane3D::moveInLocalFrame().

◆ moveInWorldFrame() [1/2]

◆ moveInWorldFrame() [2/2]

void usOrientedPlane3D::moveInWorldFrame ( double  x,
double  y,
double  z,
double  tx,
double  ty,
double  tz 
)
inherited

Definition at line 133 of file usOrientedPlane3D.cpp.

References usOrientedPlane3D::moveInWorldFrame().

◆ operator=()

◆ setDirection()

◆ setPose()

void usOrientedPlane3D::setPose ( const vpPoseVector &  pose)
inherited

◆ setPosition()

◆ setStiffness()

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().

Friends And Related Function Documentation

◆ operator<<

VISP_EXPORT std::ostream& operator<< ( std::ostream &  s,
const usVirtualSpring spg 
)
friend

Data saving.

Text

Definition at line 115 of file usVirtualSpring.cpp.

◆ operator<<=

VISP_EXPORT std::ostream& operator<<= ( std::ostream &  s,
const usVirtualSpring spg 
)
friend

Binary.

Definition at line 154 of file usVirtualSpring.cpp.

◆ operator>>

VISP_EXPORT std::istream& operator>> ( std::istream &  s,
usVirtualSpring spg 
)
friend

Definition at line 131 of file usVirtualSpring.cpp.

◆ operator>>=

VISP_EXPORT std::istream& operator>>= ( std::istream &  s,
usVirtualSpring spg 
)
friend

Definition at line 168 of file usVirtualSpring.cpp.

Member Data Documentation

◆ m_AllowDirectionUpdate

bool usVirtualSpring::m_AllowDirectionUpdate
protected

Definition at line 50 of file usVirtualSpring.h.

Referenced by AllowDirectionUpdate(), IsDirectionUpdateAllowed(), and operator=().

◆ m_AllowPositionUpdate

bool usVirtualSpring::m_AllowPositionUpdate
protected

Definition at line 49 of file usVirtualSpring.h.

Referenced by AllowPositionUpdate(), IsPositionUpdateAllowed(), and operator=().

◆ m_AllowStiffnessUpdate

bool usVirtualSpring::m_AllowStiffnessUpdate
protected

Definition at line 51 of file usVirtualSpring.h.

Referenced by AllowStiffnessUpdate(), IsStiffnessUpdateAllowed(), and operator=().

◆ m_direction

vpColVector usOrientedPlane3D::m_direction
protectedinherited

◆ m_IsActive

bool usVirtualSpring::m_IsActive
protected

Definition at line 47 of file usVirtualSpring.h.

Referenced by Activate(), Deactivate(), IsActive(), and operator=().

◆ m_IsRemovable

bool usVirtualSpring::m_IsRemovable
protected

Definition at line 48 of file usVirtualSpring.h.

Referenced by AllowRemoval(), IsRemovable(), and operator=().

◆ m_pose

◆ m_stiffness

double usVirtualSpring::m_stiffness
protected

Definition at line 45 of file usVirtualSpring.h.

Referenced by addStiffness(), getStiffness(), operator=(), and setStiffness().