![]() |
Implementation of Localization for Fem2DRepresentation. More...
#include <SurgSim/Physics/Fem2DRepresentationLocalization.h>
Public Member Functions | |
Fem2DRepresentationLocalization (std::shared_ptr< Representation > representation, const SurgSim::DataStructures::IndexedLocalCoordinate &localCoordinate) | |
Constructor. More... | |
virtual | ~Fem2DRepresentationLocalization () |
Destructor. More... | |
void | setLocalPosition (const SurgSim::DataStructures::IndexedLocalCoordinate &localCoordinate) |
Sets the local position. More... | |
const SurgSim::DataStructures::IndexedLocalCoordinate & | getLocalPosition () const |
Gets the local position. More... | |
virtual bool | isValidRepresentation (std::shared_ptr< Representation > representation) override |
Query if 'representation' is valid representation. More... | |
![]() | |
Localization () | |
Default constructor. More... | |
Localization (std::shared_ptr< Representation > representation) | |
Constructor. More... | |
virtual | ~Localization () |
Destructor. More... | |
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) |
Calculates the global position of this localization. More... | |
Private Member Functions | |
SurgSim::Math::Vector3d | doCalculatePosition (double time) |
Calculates the global position of this localization. More... | |
Private Attributes | |
SurgSim::DataStructures::IndexedLocalCoordinate | m_position |
Barycentric position in local coordinates. More... | |
Implementation of Localization for Fem2DRepresentation.
Fem2DRepresentationLocalization tracks the global coordinates of an IndexedLocalCoordinate associated with an Fem2DRepresentation.
SurgSim::Physics::Fem2DRepresentationLocalization::Fem2DRepresentationLocalization | ( | std::shared_ptr< Representation > | representation, |
const SurgSim::DataStructures::IndexedLocalCoordinate & | localCoordinate | ||
) |
Constructor.
representation | The representation to assign to this localization. |
localCoordinate | The indexed local coordinate relative to the representation. |
|
virtual |
Destructor.
|
privatevirtual |
Calculates the global position of this localization.
time | The time in [0..1] at which the position should be calculated. |
Implements SurgSim::Physics::Localization.
const SurgSim::DataStructures::IndexedLocalCoordinate & SurgSim::Physics::Fem2DRepresentationLocalization::getLocalPosition | ( | ) | const |
Gets the local position.
|
overridevirtual |
Query if 'representation' is valid representation.
representation | The representation. |
Reimplemented from SurgSim::Physics::Localization.
void SurgSim::Physics::Fem2DRepresentationLocalization::setLocalPosition | ( | const SurgSim::DataStructures::IndexedLocalCoordinate & | localCoordinate | ) |
Sets the local position.
localCoordinate | The local position to set the localization at. |
|
private |
Barycentric position in local coordinates.