Public Member Functions | Protected Member Functions | Private Attributes | List of all members
SurgSim::Physics::Fem3DPlyReaderDelegate Class Reference

#include <SurgSim/Physics/Fem3DPlyReaderDelegate.h>

Inheritance diagram for SurgSim::Physics::Fem3DPlyReaderDelegate:
SurgSim::Physics::FemPlyReaderDelegate SurgSim::DataStructures::PlyReaderDelegate

Public Member Functions

 Fem3DPlyReaderDelegate ()
 Default constructor. More...
 
 Fem3DPlyReaderDelegate (std::shared_ptr< Fem3D > mesh)
 Constructor. More...
 
- Public Member Functions inherited from SurgSim::Physics::FemPlyReaderDelegate
 FemPlyReaderDelegate ()
 Constructor. More...
 
- Public Member Functions inherited from SurgSim::DataStructures::PlyReaderDelegate
virtual ~PlyReaderDelegate ()
 Virtual destructor. More...
 

Protected Member Functions

std::string getElementName () const override
 
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 processBoundaryCondition (const std::string &elementName) override
 Callback function to process one boundary condition. More...
 
void endFile ()
 End file callback. More...
 
- Protected Member Functions inherited from SurgSim::Physics::FemPlyReaderDelegate
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

std::shared_ptr< Fem3Dm_mesh
 Fem3D mesh asset to contain the ply file information. More...
 

Additional Inherited Members

- Protected Attributes inherited from SurgSim::Physics::FemPlyReaderDelegate
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
 

Constructor & Destructor Documentation

◆ Fem3DPlyReaderDelegate() [1/2]

SurgSim::Physics::Fem3DPlyReaderDelegate::Fem3DPlyReaderDelegate ( )

Default constructor.

◆ Fem3DPlyReaderDelegate() [2/2]

SurgSim::Physics::Fem3DPlyReaderDelegate::Fem3DPlyReaderDelegate ( std::shared_ptr< Fem3D mesh)
explicit

Constructor.

Parameters
meshThe mesh to be used, it will be cleared by the constructor.

Member Function Documentation

◆ endFile()

void SurgSim::Physics::Fem3DPlyReaderDelegate::endFile ( )
protected

End file callback.

◆ endParseFile()

void SurgSim::Physics::Fem3DPlyReaderDelegate::endParseFile ( )
overrideprotectedvirtual

Callback for end of PlyReader::parseFile.

Implements SurgSim::Physics::FemPlyReaderDelegate.

◆ fileIsAcceptable()

bool SurgSim::Physics::Fem3DPlyReaderDelegate::fileIsAcceptable ( const PlyReader reader)
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.

◆ getElementName()

std::string SurgSim::Physics::Fem3DPlyReaderDelegate::getElementName ( ) const
overrideprotectedvirtual

◆ processBoundaryCondition()

void SurgSim::Physics::Fem3DPlyReaderDelegate::processBoundaryCondition ( const std::string &  elementName)
overrideprotectedvirtual

Callback function to process one boundary condition.

Parameters
elementNameName of the element.

Implements SurgSim::Physics::FemPlyReaderDelegate.

◆ processFemElement()

void SurgSim::Physics::Fem3DPlyReaderDelegate::processFemElement ( const std::string &  elementName)
overrideprotectedvirtual

Callback function to process one FemElement.

Parameters
elementNameName of the element.

Implements SurgSim::Physics::FemPlyReaderDelegate.

◆ processVertex()

void SurgSim::Physics::Fem3DPlyReaderDelegate::processVertex ( const std::string &  elementName)
overrideprotectedvirtual

Callback function to process one vertex.

Parameters
elementNameName of the element.

Implements SurgSim::Physics::FemPlyReaderDelegate.

Member Data Documentation

◆ m_mesh

std::shared_ptr<Fem3D> SurgSim::Physics::Fem3DPlyReaderDelegate::m_mesh
private

Fem3D mesh asset to contain the ply file information.


The documentation for this class was generated from the following files: