Common part of implementation of PlyReaderDelegate for FemRepresentations.
More...
#include <SurgSim/Physics/FemPlyReaderDelegate.h>
|
virtual std::string | getElementName () const =0 |
|
virtual bool | registerDelegate (SurgSim::DataStructures::PlyReader *reader) override |
| Registers the delegate with the reader. More...
|
|
virtual 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...
|
|
void | startParseFile () |
| Callback for beginning of PlyReader::parseFile. More...
|
|
virtual void | endParseFile () |
| Callback for end of PlyReader::parseFile. More...
|
|
void * | beginVertices (const std::string &elementName, size_t vertexCount) |
| Callback function, begin the processing of vertices. More...
|
|
void | processVertex (const std::string &elementName) |
| Callback function to process one vertex. More...
|
|
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...
|
|
virtual void | processFemElement (const std::string &elementName)=0 |
| Callback function to process one FemElement. 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...
|
|
void | processBoundaryCondition (const std::string &elementName) |
| Callback function to process one boundary condition. More...
|
|
Common part of implementation of PlyReaderDelegate for FemRepresentations.
This is an abstract class and needs to be inherited. Methods 'registerDelegate()' and 'fileIsAcceptable()' need to be overridden.
SurgSim::Physics::FemPlyReaderDelegate::FemPlyReaderDelegate |
( |
std::shared_ptr< FemRepresentation > |
fem | ) |
|
|
explicit |
void * SurgSim::Physics::FemPlyReaderDelegate::beginBoundaryConditions |
( |
const std::string & |
elementName, |
|
|
size_t |
boundaryConditionCount |
|
) |
| |
|
protected |
Callback function, begin the processing of boundary conditions.
- Parameters
-
elementName | Name of the element. |
boundaryConditionCount | Number of boundary conditions. |
- Returns
- memory for boundary conditions data to the reader.
void * SurgSim::Physics::FemPlyReaderDelegate::beginFemElements |
( |
const std::string & |
elementName, |
|
|
size_t |
elementCount |
|
) |
| |
|
protected |
Callback function, begin the processing of FemElements.
- Parameters
-
elementName | Name of the element. |
elementCount | Number of elements. |
- Returns
- memory for FemElement data to the reader.
void * SurgSim::Physics::FemPlyReaderDelegate::beginMaterials |
( |
const std::string & |
elementName, |
|
|
size_t |
materialCount |
|
) |
| |
|
protected |
Callback function, begin the processing of materials.
- Parameters
-
elementName | Name of the element. |
materialCount | Number of materials. |
- Returns
- memory for material data to the reader.
void * SurgSim::Physics::FemPlyReaderDelegate::beginVertices |
( |
const std::string & |
elementName, |
|
|
size_t |
vertexCount |
|
) |
| |
|
protected |
Callback function, begin the processing of vertices.
- Parameters
-
elementName | Name of the element. |
vertexCount | Number of vertices. |
- Returns
- memory for vertex data to the reader.
void SurgSim::Physics::FemPlyReaderDelegate::endFemElements |
( |
const std::string & |
elementName | ) |
|
|
protected |
Callback function to finalize processing of FemElements.
- Parameters
-
elementName | Name of the element. |
void SurgSim::Physics::FemPlyReaderDelegate::endMaterials |
( |
const std::string & |
elementName | ) |
|
|
protected |
Callback function, end the processing of materials.
- Parameters
-
elementName | Name of the element. |
void SurgSim::Physics::FemPlyReaderDelegate::endParseFile |
( |
| ) |
|
|
protectedvirtual |
void SurgSim::Physics::FemPlyReaderDelegate::endVertices |
( |
const std::string & |
elementName | ) |
|
|
protected |
Callback function to finalize processing of vertices.
- Parameters
-
elementName | Name of the element. |
virtual std::string SurgSim::Physics::FemPlyReaderDelegate::getElementName |
( |
| ) |
const |
|
protectedpure virtual |
void SurgSim::Physics::FemPlyReaderDelegate::processBoundaryCondition |
( |
const std::string & |
elementName | ) |
|
|
protected |
Callback function to process one boundary condition.
- Parameters
-
elementName | Name of the element. |
virtual void SurgSim::Physics::FemPlyReaderDelegate::processFemElement |
( |
const std::string & |
elementName | ) |
|
|
protectedpure virtual |
void SurgSim::Physics::FemPlyReaderDelegate::processVertex |
( |
const std::string & |
elementName | ) |
|
|
protected |
Callback function to process one vertex.
- Parameters
-
elementName | Name of the element. |
void SurgSim::Physics::FemPlyReaderDelegate::startParseFile |
( |
| ) |
|
|
protected |
unsigned int SurgSim::Physics::FemPlyReaderDelegate::m_boundaryConditionData |
|
protected |
Internal data to receive the "boundary_condition" element.
The fem that will be created by loading.
bool SurgSim::Physics::FemPlyReaderDelegate::m_hasBoundaryConditions |
|
protected |
Flag indicating if the associated file has boundary conditions.
The state that will be created by loading.
std::array<double, 3> SurgSim::Physics::FemPlyReaderDelegate::m_vertexData |
|
protected |
Internal data to receive the "vertex" element.
double* SurgSim::Physics::FemPlyReaderDelegate::m_vertexIterator |
|
protected |
Internal iterator to save the "vertex" element.
The documentation for this class was generated from the following files: