SurgSim::Graphics::MeshPlyReaderDelegate Class Reference

Implementation of PlyReaderDelegate for graphicsmeshes. More...

`#include <SurgSim/Graphics/MeshPlyReaderDelegate.h>`

Inheritance diagram for SurgSim::Graphics::MeshPlyReaderDelegate:

## Public Member Functions

| MeshPlyReaderDelegate ()
| Default constructor. More...
| MeshPlyReaderDelegate (std::shared_ptr< MeshType > mesh)
| Constructor. More...
void | processVertex (const std::string &elementName) override
| Callback function to process one vertex. More...
Public Member Functions inherited from SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< Mesh >
| TriangleMeshPlyReaderDelegate ()
| Default constructor. More...
| TriangleMeshPlyReaderDelegate (std::shared_ptr< MeshType > mesh)
| Constructor. More...
std::shared_ptr< MeshType > | getMesh ()
| Gets the mesh. More...
bool | registerDelegate (PlyReader *reader) override
| Registers the delegate with the reader, overridden from. More...
bool | fileIsAcceptable (const PlyReader &reader) override
| Check whether this file is acceptable to the delegate, overridden from. More...
void * | beginVertices (const std::string &elementName, size_t vertexCount)
| Callback function, begin the processing of vertices. More...
void | endVertices (const std::string &elementName)
| Callback function to finalize processing of vertices. More...
void * | beginFaces (const std::string &elementName, size_t faceCount)
| Callback function, begin the processing of faces. More...
void | processFace (const std::string &elementName)
| Callback function to process one face. More...
void | endFaces (const std::string &elementName)
| Callback function to finalize processing of faces. More...
void * | beginEdges (const std::string &elementName, size_t edgeCount)
void | processEdge (const std::string &elementName)
void | endEdges (const std::string &elementName)
void | endFile ()
| Callback function to finalize processing of the mesh. More...
Public Member Functions inherited from SurgSim::DataStructures::PlyReaderDelegate
virtual | ~PlyReaderDelegate ()
| Virtual destructor. More...

## Additional Inherited Members

Public Types inherited from SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< Mesh >
typedef Mesh | MeshType
Protected Member Functions inherited from SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< Mesh >
bool | hasTextureCoordinates ()
Protected Attributes inherited from SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< Mesh >
struct SurgSim::DataStructures::TriangleMeshPlyReaderDelegate::VertexData | m_vertexData
struct SurgSim::DataStructures::TriangleMeshPlyReaderDelegate::ListData | m_listData
std::shared_ptr< MeshType > | m_mesh
| The mesh that will be created. More...
std::array< size_t, 3 > | m_face
std::array< size_t, 2 > | m_edge

## Detailed Description

Implementation of PlyReaderDelegate for graphicsmeshes.

## Constructor & Destructor Documentation

## MeshPlyReaderDelegate() [1/2]

SurgSim::Graphics::MeshPlyReaderDelegate::MeshPlyReaderDelegate | ( |  | ) |

Default constructor.

## MeshPlyReaderDelegate() [2/2]

SurgSim::Graphics::MeshPlyReaderDelegate::MeshPlyReaderDelegate | ( | std::shared_ptr< MeshType > | mesh | ) |

explicit

Constructor.

Parameters

  mesh | The mesh to be used, it will be cleared by the constructor.

## Member Function Documentation

## processVertex()

void SurgSim::Graphics::MeshPlyReaderDelegate::processVertex | ( | const std::string & | elementName | ) |

override virtual

Callback function to process one vertex.

Parameters

  elementName | Name of the element.

Reimplemented from SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< Mesh >.

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

- SurgSim/Graphics/MeshPlyReaderDelegate.h
- SurgSim/Graphics/MeshPlyReaderDelegate.cpp