opensurgsim
|
A Location defines a local position w.r.t. More...
#include <Location.h>
Public Types | |
enum | Type { TRIANGLE, ELEMENT } |
Public Member Functions | |
Location () | |
Default constructor. | |
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 |
Public Attributes | |
SurgSim::DataStructures::OptionalValue< SurgSim::Math::Vector3d > | rigidLocalPosition |
SurgSim::DataStructures::OptionalValue< SurgSim::DataStructures::OctreePath > | octreeNodePath |
SurgSim::DataStructures::OptionalValue< size_t > | index |
SurgSim::DataStructures::OptionalValue< SurgSim::DataStructures::IndexedLocalCoordinate > | triangleMeshLocalCoordinate |
SurgSim::DataStructures::OptionalValue< SurgSim::DataStructures::IndexedLocalCoordinate > | elementMeshLocalCoordinate |
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 |
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) |