Fem1DLocalization.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_FEM1DLOCALIZATION_H
17 #define SURGSIM_PHYSICS_FEM1DLOCALIZATION_H
18 
21 
22 namespace SurgSim
23 {
24 
25 namespace Physics
26 {
27 
34 {
35 public:
39  Fem1DLocalization(std::shared_ptr<Representation> representation,
41 
43  virtual ~Fem1DLocalization();
44 
45  bool isValidRepresentation(std::shared_ptr<Representation> representation) override;
46 
47  bool moveClosestTo(const Math::Vector3d& point, bool *hasReachedEnd) override;
48 };
49 
50 } // namespace Physics
51 
52 } // namespace SurgSim
53 
54 #endif // SURGSIM_PHYSICS_FEM1DLOCALIZATION_H
SurgSim::Physics::Fem1DLocalization::~Fem1DLocalization
virtual ~Fem1DLocalization()
Destructor.
Definition: Fem1DLocalization.cpp:36
IndexedLocalCoordinate.h
SurgSim::Math::Vector3d
Eigen::Matrix< double, 3, 1 > Vector3d
A 3D vector of doubles.
Definition: Vector.h:57
SurgSim::Physics::Fem1DLocalization::moveClosestTo
bool moveClosestTo(const Math::Vector3d &point, bool *hasReachedEnd) override
Definition: Fem1DLocalization.cpp:48
SurgSim
Definition: CompoundShapeToGraphics.cpp:30
SurgSim::DataStructures::IndexedLocalCoordinate
A generic (size_t index, Vector coordinate) pair.
Definition: IndexedLocalCoordinate.h:30
SurgSim::Physics::Fem1DLocalization::Fem1DLocalization
Fem1DLocalization(std::shared_ptr< Representation > representation, const SurgSim::DataStructures::IndexedLocalCoordinate &localCoordinate)
Constructor.
Definition: Fem1DLocalization.cpp:29
SurgSim::Physics::Fem1DLocalization
Implementation of Localization for Fem1DRepresentation.
Definition: Fem1DLocalization.h:34
FemLocalization.h
SurgSim::Physics::Fem1DLocalization::isValidRepresentation
bool isValidRepresentation(std::shared_ptr< Representation > representation) override
Definition: Fem1DLocalization.cpp:40
SurgSim::Physics::FemLocalization
Implementation of Localization for Fem3DRepresentation.
Definition: FemLocalization.h:36