|
Implementation of PlyReaderDelegate for simple triangle meshes. More...
#include <SurgSim/DataStructures/TriangleMeshPlyReaderDelegate.h>
Classes | |
| struct | ListData |
| Internal structure, the received for data from the "face" element. More... | |
| struct | VertexData |
| Internal structure, the receiver for data from the "vertex" element Provide space for standard ply vertex data, x/y/z and s/t. More... | |
Public Types | |
| typedef M | MeshType |
Public Member Functions | |
| 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... | |
| virtual 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 * | 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... | |
Protected Member Functions | |
| bool | hasTextureCoordinates () |
Protected Attributes | |
| 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 |
Private Attributes | |
| bool | m_hasTextureCoordinates |
| Set to true if s/t coordinates are found in the .ply file. More... | |
| bool | m_hasFaces |
| Set to true if faces are found in the .ply file. More... | |
| bool | m_hasEdges |
| Set to true if edges are found in the .ply file. More... | |
Implementation of PlyReaderDelegate for simple triangle meshes.
| typedef M SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >::MeshType |
| SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >::TriangleMeshPlyReaderDelegate | ( | ) |
Default constructor.
|
explicit |
Constructor.
| mesh | The mesh to be used, it will be cleared by the constructor. |
| void * SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >::beginEdges | ( | const std::string & | elementName, |
| size_t | edgeCount | ||
| ) |
| void * SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >::beginFaces | ( | const std::string & | elementName, |
| size_t | faceCount | ||
| ) |
Callback function, begin the processing of faces.
| elementName | Name of the element. |
| faceCount | Number of faces. |
| void * SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >::beginVertices | ( | const std::string & | elementName, |
| size_t | vertexCount | ||
| ) |
Callback function, begin the processing of vertices.
| elementName | Name of the element. |
| vertexCount | Number of vertices. |
| void SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >::endEdges | ( | const std::string & | elementName | ) |
| void SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >::endFaces | ( | const std::string & | elementName | ) |
Callback function to finalize processing of faces.
| elementName | Name of the element. |
| void SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >::endFile | ( | ) |
Callback function to finalize processing of the mesh.
| void SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >::endVertices | ( | const std::string & | elementName | ) |
Callback function to finalize processing of vertices.
| elementName | Name of the element. |
|
overridevirtual |
Check whether this file is acceptable to the delegate, overridden from.
| reader | The reader that should be used. |
Implements SurgSim::DataStructures::PlyReaderDelegate.
| std::shared_ptr< M > SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >::getMesh | ( | ) |
Gets the mesh.
|
protected |
| void SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >::processEdge | ( | const std::string & | elementName | ) |
| void SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >::processFace | ( | const std::string & | elementName | ) |
Callback function to process one face.
| elementName | Name of the element. |
|
virtual |
Callback function to process one vertex.
| elementName | Name of the element. |
Reimplemented in SurgSim::Graphics::MeshPlyReaderDelegate.
|
overridevirtual |
Registers the delegate with the reader, overridden from.
| reader | The reader that should be used. |
Implements SurgSim::DataStructures::PlyReaderDelegate.
|
protected |
|
protected |
|
private |
Set to true if edges are found in the .ply file.
|
private |
Set to true if faces are found in the .ply file.
|
private |
Set to true if s/t coordinates are found in the .ply file.
|
protected |
|
protected |
The mesh that will be created.
|
protected |
1.8.13