Go to the documentation of this file.
16 #ifndef SURGSIM_PHYSICS_FEMPLYREADERDELEGATE_H
17 #define SURGSIM_PHYSICS_FEMPLYREADERDELEGATE_H
53 virtual void*
beginVertices(
const std::string& elementName,
size_t vertexCount);
57 virtual void processVertex(
const std::string& elementName) = 0;
61 virtual void endVertices(
const std::string& elementName);
81 void*
beginMaterials(
const std::string& elementName,
size_t materialCount);
148 #endif // SURGSIM_PHYSICS_FEMPLYREADERDELEGATE_H
int64_t overrun1
Used to check for buffer overruns.
Definition: FemPlyReaderDelegate.h:104
struct SurgSim::Physics::FemPlyReaderDelegate::ElementData m_elementData
double thetaY
Definition: FemPlyReaderDelegate.h:106
double z
Definition: FemPlyReaderDelegate.h:103
unsigned int type
Definition: FemPlyReaderDelegate.h:132
Vertex data containing 6 dofs (3 translational and 3 rotational)
Definition: FemPlyReaderDelegate.h:99
bool fileIsAcceptable(const SurgSim::DataStructures::PlyReader &reader) override
Check whether the file in the reader can be used with this delegate, this gives the delegate a chance...
Definition: FemPlyReaderDelegate.cpp:113
void * beginBoundaryConditions(const std::string &elementName, size_t boundaryConditionCount)
Callback function, begin the processing of boundary conditions.
Definition: FemPlyReaderDelegate.cpp:188
Internal data to receive the "material" data.
Definition: FemPlyReaderDelegate.h:118
void * beginFemElements(const std::string &elementName, size_t elementCount)
Callback function, begin the processing of FemElements.
Definition: FemPlyReaderDelegate.cpp:160
virtual void processBoundaryCondition(const std::string &elementName)=0
Callback function to process one boundary condition.
virtual void processFemElement(const std::string &elementName)=0
Callback function to process one FemElement.
double thetaZ
Definition: FemPlyReaderDelegate.h:107
bool m_hasMaterial
Definition: FemPlyReaderDelegate.h:126
void endFemElements(const std::string &elementName)
Callback function to finalize processing of FemElements.
Definition: FemPlyReaderDelegate.cpp:167
Definition: CompoundShapeToGraphics.cpp:29
void * beginMaterials(const std::string &elementName, size_t materialCount)
Callback function, begin the processing of materials.
Definition: FemPlyReaderDelegate.cpp:175
double massDensity
Definition: FemPlyReaderDelegate.h:120
double poissonRatio
Definition: FemPlyReaderDelegate.h:121
virtual void processVertex(const std::string &elementName)=0
Callback function to process one vertex.
virtual void endVertices(const std::string &elementName)
Callback function to finalize processing of vertices.
Definition: FemPlyReaderDelegate.cpp:153
bool m_hasRotationDOF
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
bool m_hasPerElementMaterial
Definition: FemPlyReaderDelegate.h:127
double massDensity
Definition: FemPlyReaderDelegate.h:138
double x
Definition: FemPlyReaderDelegate.h:101
struct SurgSim::Physics::FemPlyReaderDelegate::MaterialData m_materialData
unsigned int m_boundaryConditionData
Internal data to receive the "boundary_condition" element.
Definition: FemPlyReaderDelegate.h:115
Internal data to receive the fem element.
Definition: FemPlyReaderDelegate.h:130
virtual void endParseFile()=0
Callback for end of PlyReader::parseFile.
struct SurgSim::Physics::FemPlyReaderDelegate::Vertex6DData m_vertexData
int64_t overrun
Used to check for buffer overruns.
Definition: FemPlyReaderDelegate.h:123
bool m_hasBoundaryConditions
Flag indicating if the associated file has boundary conditions.
Definition: FemPlyReaderDelegate.h:112
unsigned int vertexCount
Definition: FemPlyReaderDelegate.h:136
double y
Definition: FemPlyReaderDelegate.h:102
int64_t overrun2
Used to check for buffer overruns.
Definition: FemPlyReaderDelegate.h:137
double thetaX
Definition: FemPlyReaderDelegate.h:105
int64_t overrun2
Used to check for buffer overruns.
Definition: FemPlyReaderDelegate.h:108
unsigned int * indices
Definition: FemPlyReaderDelegate.h:135
double youngModulus
Definition: FemPlyReaderDelegate.h:140
virtual void * beginVertices(const std::string &elementName, size_t vertexCount)
Callback function, begin the processing of vertices.
Definition: FemPlyReaderDelegate.cpp:147
int64_t overrun1
Used to check for buffer overruns.
Definition: FemPlyReaderDelegate.h:133
double youngModulus
Definition: FemPlyReaderDelegate.h:122
double poissonRatio
Definition: FemPlyReaderDelegate.h:139
bool registerDelegate(SurgSim::DataStructures::PlyReader *reader) override
Registers the delegate with the reader.
Definition: FemPlyReaderDelegate.cpp:31
PlyReaderDelegate abstract class.
Definition: PlyReaderDelegate.h:31
Common part of implementation of PlyReaderDelegate for FemRepresentations.
Definition: FemPlyReaderDelegate.h:33
void endMaterials(const std::string &elementName)
Callback function, end the processing of materials.
Definition: FemPlyReaderDelegate.cpp:181
virtual std::string getElementName() const =0
FemPlyReaderDelegate()
Constructor.
Definition: FemPlyReaderDelegate.cpp:27