Fem3DPlyReaderDelegate.h
Go to the documentation of this file.
1 // This file is a part of the OpenSurgSim project.
2 // Copyright 2014, 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_FEM3DPLYREADERDELEGATE_H
17 #define SURGSIM_PHYSICS_FEM3DPLYREADERDELEGATE_H
18 
19 #include <memory>
20 
22 
23 namespace SurgSim
24 {
25 namespace Physics
26 {
27 class Fem3DRepresentation;
28 
31 {
32 public:
35  explicit Fem3DPlyReaderDelegate(std::shared_ptr<Fem3DRepresentation> fem);
36 
37 protected:
38  virtual std::string getElementName() const override;
39 
40  virtual void processFemElement(const std::string& elementName) override;
41 };
42 
43 } // namespace Physics
44 } // namespace SurgSim
45 
46 #endif // SURGSIM_PHYSICS_FEM3DPLYREADERDELEGATE_H
Definition: DriveElementFromInputBehavior.cpp:27
Common part of implementation of PlyReaderDelegate for FemRepresentations.
Definition: FemPlyReaderDelegate.h:39
Implementation of PlyReaderDelegate for Fem3DRepresentation.
Definition: Fem3DPlyReaderDelegate.h:30
virtual std::string getElementName() const override
Definition: Fem3DPlyReaderDelegate.cpp:36
virtual void processFemElement(const std::string &elementName) override
Callback function to process one FemElement.
Definition: Fem3DPlyReaderDelegate.cpp:41
Fem3DPlyReaderDelegate(std::shared_ptr< Fem3DRepresentation > fem)
Constructor.
Definition: Fem3DPlyReaderDelegate.cpp:31