![]() |
#include <SurgSim/Physics/Fem2DPlyReaderDelegate.h>
Public Member Functions | |
Fem2DPlyReaderDelegate () | |
Default constructor. More... | |
Fem2DPlyReaderDelegate (std::shared_ptr< Fem2D > mesh) | |
Constructor. More... | |
![]() | |
FemPlyReaderDelegate () | |
Constructor. More... | |
![]() | |
virtual | ~PlyReaderDelegate () |
Virtual destructor. More... | |
Protected Member Functions | |
std::string | getElementName () const override |
bool | registerDelegate (PlyReader *reader) override |
Registers the delegate with the reader. More... | |
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 to make sure that all the elements and properties that are required are available in the file encapsulated by the reader. More... | |
void | endParseFile () override |
Callback for end of PlyReader::parseFile. More... | |
void | processVertex (const std::string &elementName) override |
Callback function to process one vertex. More... | |
void | processFemElement (const std::string &elementName) override |
Callback function to process one FemElement. More... | |
void * | beginThickness (const std::string &elementName, size_t thicknessCount) |
Callback function, begin the processing of thickness. More... | |
void | endThickness (const std::string &elementName) |
Callback function, end the processing of radius. More... | |
void | processBoundaryCondition (const std::string &elementName) override |
Callback function to process one boundary condition. More... | |
![]() | |
bool | registerDelegate (SurgSim::DataStructures::PlyReader *reader) override |
Registers the delegate with the reader. More... | |
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 to make sure that all the elements and properties that are required are available in the file encapsulated by the reader. More... | |
virtual void * | beginVertices (const std::string &elementName, size_t vertexCount) |
Callback function, begin the processing of vertices. More... | |
virtual void | endVertices (const std::string &elementName) |
Callback function to finalize processing of vertices. More... | |
void * | beginFemElements (const std::string &elementName, size_t elementCount) |
Callback function, begin the processing of FemElements. More... | |
void | endFemElements (const std::string &elementName) |
Callback function to finalize processing of FemElements. More... | |
void * | beginMaterials (const std::string &elementName, size_t materialCount) |
Callback function, begin the processing of materials. More... | |
void | endMaterials (const std::string &elementName) |
Callback function, end the processing of materials. More... | |
void * | beginBoundaryConditions (const std::string &elementName, size_t boundaryConditionCount) |
Callback function, begin the processing of boundary conditions. More... | |
Private Attributes | |
double | m_thickness |
Element's thickness information. More... | |
std::shared_ptr< Fem2D > | m_mesh |
Fem2D mesh asset to contain the ply file information. More... | |
Additional Inherited Members | |
![]() | |
struct SurgSim::Physics::FemPlyReaderDelegate::Vertex6DData | m_vertexData |
bool | m_hasBoundaryConditions |
Flag indicating if the associated file has boundary conditions. More... | |
unsigned int | m_boundaryConditionData |
Internal data to receive the "boundary_condition" element. More... | |
struct SurgSim::Physics::FemPlyReaderDelegate::MaterialData | m_materialData |
bool | m_hasMaterial |
bool | m_hasPerElementMaterial |
struct SurgSim::Physics::FemPlyReaderDelegate::ElementData | m_elementData |
bool | m_hasRotationDOF |
SurgSim::Physics::Fem2DPlyReaderDelegate::Fem2DPlyReaderDelegate | ( | ) |
Default constructor.
|
explicit |
Constructor.
mesh | The mesh to be used, it will be cleared by the constructor. |
|
protected |
Callback function, begin the processing of thickness.
elementName | Name of the element. |
thicknessCount | Number of thicknesses. |
|
overrideprotectedvirtual |
Callback for end of PlyReader::parseFile.
Implements SurgSim::Physics::FemPlyReaderDelegate.
|
protected |
Callback function, end the processing of radius.
elementName | Name of the element. |
|
overrideprotectedvirtual |
Check whether the file in the reader can be used with this delegate, this gives the delegate a chance to make sure that all the elements and properties that are required are available in the file encapsulated by the reader.
Implements SurgSim::DataStructures::PlyReaderDelegate.
|
overrideprotectedvirtual |
Implements SurgSim::Physics::FemPlyReaderDelegate.
|
overrideprotectedvirtual |
Callback function to process one boundary condition.
elementName | Name of the element. |
Implements SurgSim::Physics::FemPlyReaderDelegate.
|
overrideprotectedvirtual |
Callback function to process one FemElement.
elementName | Name of the element. |
Implements SurgSim::Physics::FemPlyReaderDelegate.
|
overrideprotectedvirtual |
Callback function to process one vertex.
elementName | Name of the element. |
Implements SurgSim::Physics::FemPlyReaderDelegate.
|
overrideprotectedvirtual |
Registers the delegate with the reader.
[out] | reader | The reader that should be used by the delegate. |
Implements SurgSim::DataStructures::PlyReaderDelegate.
|
private |
Fem2D mesh asset to contain the ply file information.
|
private |
Element's thickness information.