opensurgsim
Fem2DLocalization.h
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_FEM2DLOCALIZATION_H
17 #define SURGSIM_PHYSICS_FEM2DLOCALIZATION_H
18 
19 #include "SurgSim/DataStructures/IndexedLocalCoordinate.h"
20 #include "SurgSim/Physics/FemLocalization.h"
21 
22 namespace SurgSim
23 {
24 
25 namespace Physics
26 {
27 
34 {
35 public:
39  Fem2DLocalization(std::shared_ptr<Representation> representation,
41 
43  virtual ~Fem2DLocalization();
44 
48  bool isValidRepresentation(std::shared_ptr<Representation> representation) override;
49 
51 
52  std::shared_ptr<Localization> doCopy() const override;
53 };
54 
55 } // namespace Physics
56 
57 } // namespace SurgSim
58 
59 #endif // SURGSIM_PHYSICS_FEM2DLOCALIZATION_H
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
A generic (size_t index, Vector coordinate) pair.
Definition: IndexedLocalCoordinate.h:29
Eigen::Transform< double, 3, Eigen::Isometry > RigidTransform3d
A 3D rigid (isometric) transform, represented as doubles.
Definition: RigidTransform.h:46
std::shared_ptr< Localization > doCopy() const override
Definition: Fem2DLocalization.cpp:70
Implementation of Localization for Fem3DRepresentation.
Definition: FemLocalization.h:35
Fem2DLocalization(std::shared_ptr< Representation > representation, const SurgSim::DataStructures::IndexedLocalCoordinate &localCoordinate)
Constructor.
Definition: Fem2DLocalization.cpp:30
bool isValidRepresentation(std::shared_ptr< Representation > representation) override
Query if &#39;representation&#39; is valid representation.
Definition: Fem2DLocalization.cpp:41
Implementation of Localization for Fem2DRepresentation.
Definition: Fem2DLocalization.h:33
Math::RigidTransform3d getElementPose() override
Find a pose that the localization is represented with respect to.
Definition: Fem2DLocalization.cpp:49
virtual ~Fem2DLocalization()
Destructor.
Definition: Fem2DLocalization.cpp:37