![]() |
A Location defines a local position w.r.t. More...
#include <SurgSim/DataStructures/Location.h>
Public Types | |
enum | Type { TRIANGLE, ELEMENT } |
Public Member Functions | |
Location () | |
Default constructor. More... | |
Location (const Location &other) | |
Copy constructor. More... | |
Location (const SurgSim::Math::Vector3d &localPosition) | |
Constructor for rigid local position. More... | |
Location (const SurgSim::DataStructures::OctreePath &nodePath) | |
Constructor for octree node path. More... | |
Location (const size_t val) | |
Constructor for an index. More... | |
Location (const SurgSim::DataStructures::IndexedLocalCoordinate &localCoordinate, Type meshType) | |
Constructor for mesh-based location. More... | |
const SurgSim::DataStructures::OptionalValue< SurgSim::DataStructures::IndexedLocalCoordinate > & | get (Type meshType) |
Gives access to the coordinates via enum rather than '. More... | |
bool | isApprox (const Location &other, double precision=std::numeric_limits< double >::epsilon()) const |
A Location defines a local position w.r.t.
any shape. Depending on the type of shape, different data is needed to specify a location on it. This structure supports:
|
inline |
Default constructor.
|
inline |
Copy constructor.
other | The location to be copied while constructing. |
|
inlineexplicit |
Constructor for rigid local position.
localPosition | The 3D local position to set this location to |
|
inlineexplicit |
Constructor for octree node path.
nodePath | The octree node path to set this location to |
|
inlineexplicit |
Constructor for an index.
val | The index to set this location to |
|
inline |
Constructor for mesh-based location.
localCoordinate | index-based local coordinate |
meshType | the type of location (a node, a triangle or an element) |
|
inline |
Gives access to the coordinates via enum rather than '.
' public member access, this can reduce complexity in the calling code
meshType | (TRIANGLE or ELEMENT) |
|
inline |
SurgSim::DataStructures::OptionalValue<SurgSim::DataStructures::IndexedLocalCoordinate> SurgSim::DataStructures::Location::elementMeshLocalCoordinate |
SurgSim::DataStructures::OptionalValue<size_t> SurgSim::DataStructures::Location::index |
SurgSim::DataStructures::OptionalValue<SurgSim::DataStructures::OctreePath> SurgSim::DataStructures::Location::octreeNodePath |
SurgSim::DataStructures::OptionalValue<SurgSim::Math::Vector3d> SurgSim::DataStructures::Location::rigidLocalPosition |
SurgSim::DataStructures::OptionalValue<SurgSim::DataStructures::IndexedLocalCoordinate> SurgSim::DataStructures::Location::triangleMeshLocalCoordinate |