Fem1DRepresentationLocalization.h
Go to the documentation of this file.
1 // This file is a part of the OpenSurgSim project.
2 // Copyright 2013, SimQuest Solutions Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 
16 #ifndef SURGSIM_PHYSICS_FEM1DREPRESENTATIONLOCALIZATION_H
17 #define SURGSIM_PHYSICS_FEM1DREPRESENTATIONLOCALIZATION_H
18 
21 
22 namespace SurgSim
23 {
24 
25 namespace Physics
26 {
27 
33 {
34 public:
38  Fem1DRepresentationLocalization(std::shared_ptr<Representation> representation,
40 
43 
47 
51 
55  virtual bool isValidRepresentation(std::shared_ptr<Representation> representation) override;
56 
57 private:
63 
66 };
67 
68 } // namespace Physics
69 
70 } // namespace SurgSim
71 
72 #endif // SURGSIM_PHYSICS_FEM1DREPRESENTATIONLOCALIZATION_H
Definition: DriveElementFromInputBehavior.cpp:27
A generic (size_t index, Vector coordinate) pair.
Definition: IndexedLocalCoordinate.h:29
virtual ~Fem1DRepresentationLocalization()
Destructor.
Definition: Fem1DRepresentationLocalization.cpp:37
const SurgSim::DataStructures::IndexedLocalCoordinate & getLocalPosition() const
Gets the local position.
Definition: Fem1DRepresentationLocalization.cpp:56
void setLocalPosition(const SurgSim::DataStructures::IndexedLocalCoordinate &localCoordinate)
Sets the local position.
Definition: Fem1DRepresentationLocalization.cpp:42
SurgSim::DataStructures::IndexedLocalCoordinate m_position
Barycentric position in local coordinates.
Definition: Fem1DRepresentationLocalization.h:65
Implementation of Localization for Fem1DRepresentation.
Definition: Fem1DRepresentationLocalization.h:32
SurgSim::Math::Vector3d doCalculatePosition(double time)
Calculates the global position of this localization.
Definition: Fem1DRepresentationLocalization.cpp:61
virtual bool isValidRepresentation(std::shared_ptr< Representation > representation) override
Query if 'representation' is valid representation.
Definition: Fem1DRepresentationLocalization.cpp:88
This class localize a point on a representation (representation specific)
Definition: Localization.h:33
Eigen::Matrix< double, 3, 1 > Vector3d
A 3D vector of doubles.
Definition: Vector.h:56
Fem1DRepresentationLocalization(std::shared_ptr< Representation > representation, const SurgSim::DataStructures::IndexedLocalCoordinate &localCoordinate)
Constructor.
Definition: Fem1DRepresentationLocalization.cpp:28