16 #ifndef SURGSIM_PHYSICS_FEM2DPLYREADERDELEGATE_H 17 #define SURGSIM_PHYSICS_FEM2DPLYREADERDELEGATE_H 59 void*
beginThickness(
const std::string& elementName,
size_t thicknessCount);
79 #endif // SURGSIM_PHYSICS_FEM2DPLYREADERDELEGATE_H Definition: CompoundShapeToGraphics.cpp:29
std::shared_ptr< Fem2D > m_mesh
Fem2D mesh asset to contain the ply file information.
Definition: Fem2DPlyReaderDelegate.h:73
Common part of implementation of PlyReaderDelegate for FemRepresentations.
Definition: FemPlyReaderDelegate.h:33
double m_thickness
Element's thickness information.
Definition: Fem2DPlyReaderDelegate.h:70
void processFemElement(const std::string &elementName) override
Callback function to process one FemElement.
Definition: Fem2DPlyReaderDelegate.cpp:99
void endParseFile() override
Callback for end of PlyReader::parseFile.
Definition: Fem2DPlyReaderDelegate.cpp:68
Wrapper for the C .ply file parser This class wraps the main functionality for the original C ...
Definition: PlyReader.h:85
Fem2DPlyReaderDelegate()
Default constructor.
Definition: Fem2DPlyReaderDelegate.cpp:26
void * beginThickness(const std::string &elementName, size_t thicknessCount)
Callback function, begin the processing of thickness.
Definition: Fem2DPlyReaderDelegate.cpp:118
void endThickness(const std::string &elementName)
Callback function, end the processing of radius.
Definition: Fem2DPlyReaderDelegate.cpp:123
void processVertex(const std::string &elementName) override
Callback function to process one vertex.
Definition: Fem2DPlyReaderDelegate.cpp:83
std::string getElementName() const override
Definition: Fem2DPlyReaderDelegate.cpp:38
Definition: Fem2DPlyReaderDelegate.h:32
bool registerDelegate(PlyReader *reader) override
Registers the delegate with the reader.
Definition: Fem2DPlyReaderDelegate.cpp:43
bool fileIsAcceptable(const PlyReader &reader) override
Check whether the file in the reader can be used with this delegate, this gives the delegate a chance...
Definition: Fem2DPlyReaderDelegate.cpp:59
void processBoundaryCondition(const std::string &elementName) override
Callback function to process one boundary condition.
Definition: Fem2DPlyReaderDelegate.cpp:128