Fem3D.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_FEM3D_H
17 #define SURGSIM_PHYSICS_FEM3D_H
18 
20 #include "SurgSim/Physics/Fem.h"
21 
22 namespace SurgSim
23 {
24 namespace Physics
25 {
26 
27 SURGSIM_STATIC_REGISTRATION(Fem3D);
28 
31 class Fem3D : public Fem<SurgSim::DataStructures::EmptyData, FemElementStructs::FemElement3DParameter>
32 {
33 public:
35  Fem3D();
36 
38 
39 protected:
40  // Asset API override
41  bool doLoad(const std::string& filePath) override;
42 };
43 
44 } // namespace Physics
45 } // namespace SurgSim
46 
47 #endif // SURGSIM_PHYSICS_FEM3D_H
SurgSim::Physics::Fem3D
Fem class data structure implementation for 3-Dimensional FEMs.
Definition: Fem3D.h:31
SurgSim::Physics::Fem3D::doLoad
bool doLoad(const std::string &filePath) override
Derived classes will overwrite this method to do actual loading.
Definition: Fem3D.cpp:31
EmptyData.h
SurgSim
Definition: CompoundShapeToGraphics.cpp:29
SurgSim::Physics::Fem3D::SURGSIM_CLASSNAME
SURGSIM_CLASSNAME(SurgSim::Physics::Fem3D)
SurgSim::Physics::Fem
Base class for a data structure for holding FEM mesh data of different dimensions.
Definition: Fem.h:39
SurgSim::Physics::Fem3D::Fem3D
Fem3D()
Default constructor.
Definition: Fem3D.cpp:27
string
string(TOUPPER ${DEVICE} DEVICE_UPPER_CASE) option(BUILD_DEVICE_$
Definition: CMakeLists.txt:38
Fem.h