SurgSim
Physics
Fem2D.h
Go to the documentation of this file.
1
// This file is a part of the OpenSurgSim project.
2
// Copyright 2015, 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_FEM2D_H
17
#define SURGSIM_PHYSICS_FEM2D_H
18
19
#include "
SurgSim/Physics/Fem.h
"
20
21
namespace
SurgSim
22
{
23
namespace
Physics
24
{
25
26
SURGSIM_STATIC_REGISTRATION(Fem2D);
27
30
class
Fem2D
:
public
Fem
<FemElementStructs::RotationVectorData, FemElementStructs::FemElement2DParameter>
31
{
32
public
:
34
Fem2D
();
35
36
SURGSIM_CLASSNAME
(
SurgSim::Physics::Fem2D
);
37
38
protected
:
39
// Asset API override
40
bool
doLoad
(
const
std::string& filePath)
override
;
41
};
42
43
}
// namespace Physics
44
}
// namespace SurgSim
45
46
#endif // SURGSIM_PHYSICS_FEM2D_H
SurgSim
Definition:
CompoundShapeToGraphics.cpp:29
SurgSim::Physics::Fem2D
Fem class data structure implementation for 2-Dimensional FEMs.
Definition:
Fem2D.h:30
SurgSim::Physics::Fem2D::Fem2D
Fem2D()
Default constructor.
Definition:
Fem2D.cpp:26
SurgSim::Physics::Fem2D::doLoad
bool doLoad(const std::string &filePath) override
Derived classes will overwrite this method to do actual loading.
Definition:
Fem2D.cpp:30
SurgSim::Physics::Fem
Base class for a data structure for holding FEM mesh data of different dimensions.
Definition:
Fem.h:39
SurgSim::Physics::Fem2D::SURGSIM_CLASSNAME
SURGSIM_CLASSNAME(SurgSim::Physics::Fem2D)
Fem.h
Generated on Sun Feb 9 2020 17:22:37 for OpenSurgSim by
1.8.16