All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SurgSim::Physics::Fem1DRepresentationLocalization Class Reference

Implementation of Localization for Fem1DRepresentation. More...

#include <SurgSim/Physics/Fem1DRepresentationLocalization.h>

Inheritance diagram for SurgSim::Physics::Fem1DRepresentationLocalization:
Inheritance graph
[legend]
Collaboration diagram for SurgSim::Physics::Fem1DRepresentationLocalization:
Collaboration graph
[legend]

Public Member Functions

 Fem1DRepresentationLocalization (std::shared_ptr< Representation > representation, const SurgSim::DataStructures::IndexedLocalCoordinate &localCoordinate)
 Constructor. More...
 
virtual ~Fem1DRepresentationLocalization ()
 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...
 
- 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< RepresentationgetRepresentation () 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...
 

Detailed Description

Implementation of Localization for Fem1DRepresentation.

Fem1DRepresentationLocalization tracks the global coordinates of an IndexedLocalCoordinate associated with an Fem1DRepresentation.

Constructor & Destructor Documentation

SurgSim::Physics::Fem1DRepresentationLocalization::Fem1DRepresentationLocalization ( std::shared_ptr< Representation representation,
const SurgSim::DataStructures::IndexedLocalCoordinate localCoordinate 
)

Constructor.

Parameters
representationThe representation to assign to this localization.
localCoordinateThe indexed local coordinate relative to the representation.
SurgSim::Physics::Fem1DRepresentationLocalization::~Fem1DRepresentationLocalization ( )
virtual

Destructor.

Member Function Documentation

SurgSim::Math::Vector3d SurgSim::Physics::Fem1DRepresentationLocalization::doCalculatePosition ( double  time)
privatevirtual

Calculates the global position of this localization.

Parameters
timeThe time in [0..1] at which the position should be calculated.
Returns
The global position of the localization at the requested time.
Note
time can be useful when dealing with CCD.

Implements SurgSim::Physics::Localization.

const SurgSim::DataStructures::IndexedLocalCoordinate & SurgSim::Physics::Fem1DRepresentationLocalization::getLocalPosition ( ) const

Gets the local position.

Returns
The local position set for this localization.
bool SurgSim::Physics::Fem1DRepresentationLocalization::isValidRepresentation ( std::shared_ptr< Representation representation)
overridevirtual

Query if 'representation' is valid representation.

Parameters
representationThe representation.
Returns
true if valid representation, false if not.

Reimplemented from SurgSim::Physics::Localization.

void SurgSim::Physics::Fem1DRepresentationLocalization::setLocalPosition ( const SurgSim::DataStructures::IndexedLocalCoordinate localCoordinate)

Sets the local position.

Parameters
localCoordinateThe local position to set the localization at.

Member Data Documentation

SurgSim::DataStructures::IndexedLocalCoordinate SurgSim::Physics::Fem1DRepresentationLocalization::m_position
private

Barycentric position in local coordinates.


The documentation for this class was generated from the following files: