|
opensurgsim
|
This class localize a point on a representation (representation specific) More...
#include <Localization.h>
Public Member Functions | |
| Localization () | |
| Default constructor. | |
| Localization (std::shared_ptr< Representation > representation) | |
| Constructor. More... | |
| virtual | ~Localization () |
| Destructor. | |
| void | setRepresentation (std::shared_ptr< Representation > representation) |
| Sets the representation. More... | |
| std::shared_ptr< Representation > | getRepresentation () const |
| Gets the representation. More... | |
| SurgSim::Math::Vector3d | calculatePosition (double time=1.0) const |
| Calculates the global position of this localization. More... | |
| SurgSim::Math::Vector3d | calculateVelocity (double time=1.0) const |
| Calculates the global velocity of this localization. More... | |
| virtual bool | isValidRepresentation (std::shared_ptr< Representation > representation) |
| virtual Math::RigidTransform3d | getElementPose () |
| Find a pose that the localization is represented with respect to. More... | |
| virtual bool | moveClosestTo (const Math::Vector3d &point, bool *hasReachedEnd) |
| std::shared_ptr< Localization > | copy () const |
This class localize a point on a representation (representation specific)
|
explicit |
Constructor.
| representation | The representation on which the localization is defined |
| Math::Vector3d SurgSim::Physics::Localization::calculatePosition | ( | double | time = 1.0 | ) | const |
Calculates the global position of this localization.
| time | The time in [0..1] at which the position should be calculated |
| SurgSim::Framework::AssertionFailure | if time is out-of-range [0..1] |
| Math::Vector3d SurgSim::Physics::Localization::calculateVelocity | ( | double | time = 1.0 | ) | const |
Calculates the global velocity of this localization.
| time | The time in [0..1] at which the velocity should be calculated |
| SurgSim::Framework::AssertionFailure | if time is out-of-range [0..1] |
| std::shared_ptr< Localization > SurgSim::Physics::Localization::copy | ( | ) | const |
|
virtual |
Find a pose that the localization is represented with respect to.
In the case of a rigid representation, the pose of the representation is the pose returned. In case of a fem representation, the pose is calculated from the fem element which this localization is a part of.
Reimplemented in SurgSim::Physics::Fem2DLocalization.
| std::shared_ptr< Representation > SurgSim::Physics::Localization::getRepresentation | ( | ) | const |
Gets the representation.
|
virtual |
| point | Move this localization closest to this point |
| hasReachedEnd | [out] Flag to set, when the localization reaches the end of the representation. |
Reimplemented in SurgSim::Physics::MassSpringLocalization, and SurgSim::Physics::Fem1DLocalization.
| void SurgSim::Physics::Localization::setRepresentation | ( | std::shared_ptr< Representation > | representation | ) |
Sets the representation.
| representation | The representation on which the localization is defined |
1.8.12