opensurgsim
Fem2D.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_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
Wraps glewInit() to separate the glew opengl definitions from the osg opengl definitions only imgui n...
Definition: AddRandomSphereBehavior.cpp:36
Fem2D()
Default constructor.
Definition: Fem2D.cpp:26
Fem class data structure implementation for 2-Dimensional FEMs.
Definition: Fem2D.h:30
bool doLoad(const std::string &filePath) override
Derived classes will overwrite this method to do actual loading.
Definition: Fem2D.cpp:30
Base class for a data structure for holding FEM mesh data of different dimensions.
Definition: Fem.h:39