opensurgsim
Fem3D.h
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 
19 #include "SurgSim/DataStructures/EmptyData.h"
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 
37  SURGSIM_CLASSNAME(SurgSim::Physics::Fem3D);
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
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
bool doLoad(const std::string &filePath) override
Derived classes will overwrite this method to do actual loading.
Definition: Fem3D.cpp:31
Fem class data structure implementation for 3-Dimensional FEMs.
Definition: Fem3D.h:31
Base class for a data structure for holding FEM mesh data of different dimensions.
Definition: Fem.h:39
Fem3D()
Default constructor.
Definition: Fem3D.cpp:27