|
This class implement the localization on a RigidRepresentation, as a local position. More...
#include <SurgSim/Physics/RigidRepresentationLocalization.h>
Public Member Functions | |
| RigidRepresentationLocalization () | |
| Default constructor. More... | |
| RigidRepresentationLocalization (std::shared_ptr< Representation > representation) | |
| Constructor. More... | |
| virtual | ~RigidRepresentationLocalization () |
| Destructor. More... | |
| void | setLocalPosition (const SurgSim::Math::Vector3d &p) |
| Sets the local position. More... | |
| const SurgSim::Math::Vector3d & | getLocalPosition () const |
| Gets the local position. More... | |
| virtual bool | isValidRepresentation (std::shared_ptr< Representation > representation) override |
| Query if 'representation' is valid representation. More... | |
Public Member Functions inherited from SurgSim::Physics::Localization | |
| 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::Math::Vector3d | m_position |
| 3D position in local coordinates. More... | |
This class implement the localization on a RigidRepresentation, as a local position.
| SurgSim::Physics::RigidRepresentationLocalization::RigidRepresentationLocalization | ( | ) |
Default constructor.
|
explicit |
Constructor.
| representation | The representation to assign to this localization. |
|
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::Math::Vector3d & SurgSim::Physics::RigidRepresentationLocalization::getLocalPosition | ( | ) | const |
Gets the local position.
|
overridevirtual |
Query if 'representation' is valid representation.
| representation | The representation. |
Reimplemented from SurgSim::Physics::Localization.
| void SurgSim::Physics::RigidRepresentationLocalization::setLocalPosition | ( | const SurgSim::Math::Vector3d & | p | ) |
Sets the local position.
| p | The local position to set the localization at. |
|
private |
3D position in local coordinates.
1.8.11