opensurgsim
|
Implementation of PlyReaderDelegate for graphicsmeshes. More...
#include <MeshPlyReaderDelegate.h>
Public Member Functions | |
MeshPlyReaderDelegate () | |
Default constructor. | |
MeshPlyReaderDelegate (std::shared_ptr< MeshType > mesh) | |
Constructor. More... | |
void | processVertex (const std::string &elementName) override |
Callback function to process one vertex. More... | |
![]() | |
TriangleMeshPlyReaderDelegate () | |
Default constructor. | |
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. | |
![]() | |
virtual | ~PlyReaderDelegate () |
Virtual destructor. | |
Additional Inherited Members | |
![]() | |
typedef Mesh | MeshType |
![]() | |
bool | hasTextureCoordinates () |
![]() | |
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. | |
std::array< size_t, 3 > | m_face |
std::array< size_t, 2 > | m_edge |
Implementation of PlyReaderDelegate for graphicsmeshes.
|
explicit |
Constructor.
mesh | The mesh to be used, it will be cleared by the constructor. |
|
overridevirtual |
Callback function to process one vertex.
elementName | Name of the element. |
Reimplemented from SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< Mesh >.