16 #ifndef SURGSIM_PHYSICS_FEMPLYREADERDELEGATE_H 17 #define SURGSIM_PHYSICS_FEMPLYREADERDELEGATE_H 34 class FemRepresentation;
54 void startParseFile();
57 virtual void endParseFile();
63 void* beginVertices(
const std::string& elementName,
size_t vertexCount);
77 void* beginFemElements(
const std::string& elementName,
size_t elementCount);
81 virtual void processFemElement(
const std::string& elementName) = 0;
85 void endFemElements(
const std::string& elementName);
91 void* beginMaterials(
const std::string& elementName,
size_t materialCount);
101 void* beginBoundaryConditions(
const std::string& elementName,
size_t boundaryConditionCount);
105 void processBoundaryCondition(
const std::string& elementName);
121 std::shared_ptr<FemRepresentation>
m_fem;
124 std::shared_ptr<SurgSim::Math::OdeState>
m_state;
149 #endif // SURGSIM_PHYSICS_FEMPLYREADERDELEGATE_H Definition: DriveElementFromInputBehavior.cpp:27
double * m_vertexIterator
Internal iterator to save the "vertex" element.
Definition: FemPlyReaderDelegate.h:115
double youngModulus
Definition: FemPlyReaderDelegate.h:131
std::shared_ptr< FemRepresentation > m_fem
The fem that will be created by loading.
Definition: FemPlyReaderDelegate.h:121
Internal data to receive the "material" data.
Definition: FemPlyReaderDelegate.h:127
double massDensity
Definition: FemPlyReaderDelegate.h:129
Internal data to receive the fem element.
Definition: FemPlyReaderDelegate.h:136
Common part of implementation of PlyReaderDelegate for FemRepresentations.
Definition: FemPlyReaderDelegate.h:39
unsigned int vertexCount
Definition: FemPlyReaderDelegate.h:141
int64_t overrun
Used to check for buffer overruns.
Definition: FemPlyReaderDelegate.h:142
Wrapper for the C .ply file parser This class wraps the main functionality for the original C ...
Definition: PlyReader.h:85
unsigned int m_boundaryConditionData
Internal data to receive the "boundary_condition" element.
Definition: FemPlyReaderDelegate.h:112
string(TOUPPER ${DEVICE}DEVICE_UPPER_CASE) option(BUILD_DEVICE_ $
Definition: CMakeLists.txt:35
unsigned int * indices
Definition: FemPlyReaderDelegate.h:140
std::shared_ptr< SurgSim::Math::OdeState > m_state
The state that will be created by loading.
Definition: FemPlyReaderDelegate.h:124
std::array< double, 3 > m_vertexData
Internal data to receive the "vertex" element.
Definition: FemPlyReaderDelegate.h:118
int64_t overrun
Used to check for buffer overruns.
Definition: FemPlyReaderDelegate.h:132
bool m_hasBoundaryConditions
Flag indicating if the associated file has boundary conditions.
Definition: FemPlyReaderDelegate.h:109
double poissonRatio
Definition: FemPlyReaderDelegate.h:130
PlyReaderDelegate abstract class.
Definition: PlyReaderDelegate.h:31