Fem2DLocalization.h
Go to the documentation of this file.
// This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SURGSIM_PHYSICS_FEM2DLOCALIZATION_H
#define SURGSIM_PHYSICS_FEM2DLOCALIZATION_H
#include "SurgSim/DataStructures/IndexedLocalCoordinate.h"
#include "SurgSim/Physics/FemLocalization.h"
namespace SurgSim
{
namespace Physics
{
class Fem2DLocalization : public FemLocalization
{
public:
Fem2DLocalization(std::shared_ptr<Representation> representation,
const SurgSim::DataStructures::IndexedLocalCoordinate& localCoordinate);
virtual ~Fem2DLocalization();
bool isValidRepresentation(std::shared_ptr<Representation> representation) override;
Math::RigidTransform3d getElementPose() override;
};
} // namespace Physics
} // namespace SurgSim
#endif // SURGSIM_PHYSICS_FEM2DLOCALIZATION_H
SurgSim
Definition: CompoundShapeToGraphics.cpp:29
SurgSim::DataStructures::IndexedLocalCoordinate
A generic (size_t index, Vector coordinate) pair.
Definition: IndexedLocalCoordinate.h:29
SurgSim::Physics::FemLocalization
Implementation of Localization for Fem3DRepresentation.
Definition: FemLocalization.h:35
SurgSim::Physics::Fem2DLocalization::Fem2DLocalization
Fem2DLocalization(std::shared_ptr< Representation > representation, const SurgSim::DataStructures::IndexedLocalCoordinate &localCoordinate)
Constructor.
Definition: Fem2DLocalization.cpp:30
SurgSim::Physics::Fem2DLocalization::isValidRepresentation
bool isValidRepresentation(std::shared_ptr< Representation > representation) override
Query if &#39;representation&#39; is valid representation.
Definition: Fem2DLocalization.cpp:41
SurgSim::Physics::Fem2DLocalization
Implementation of Localization for Fem2DRepresentation.
Definition: Fem2DLocalization.h:33
IndexedLocalCoordinate.h
SurgSim::Physics::Fem2DLocalization::getElementPose
Math::RigidTransform3d getElementPose() override
Find a pose that the localization is represented with respect to.
Definition: Fem2DLocalization.cpp:49
SurgSim::Physics::Fem2DLocalization::~Fem2DLocalization
virtual ~Fem2DLocalization()
Destructor.
Definition: Fem2DLocalization.cpp:37
SurgSim::Math::RigidTransform3d
Eigen::Transform< double, 3, Eigen::Isometry > RigidTransform3d
A 3D rigid (isometric) transform, represented as doubles.
Definition: RigidTransform.h:46
FemLocalization.h