Implementation of PlyReaderDelegate for simple triangle meshes.
More...
#include <TriangleMeshPlyReaderDelegate.h>
|
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...
|
|
|
| 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...
|
|
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.
|
|
virtual | ~PlyReaderDelegate () |
| Virtual destructor.
|
|
template<class M>
class SurgSim::DataStructures::TriangleMeshPlyReaderDelegate< M >
Implementation of PlyReaderDelegate for simple triangle meshes.
§ TriangleMeshPlyReaderDelegate()
Constructor.
- Parameters
-
mesh | The mesh to be used, it will be cleared by the constructor. |
§ beginFaces()
Callback function, begin the processing of faces.
- Parameters
-
elementName | Name of the element. |
faceCount | Number of faces. |
- Returns
- memory for face data to the reader.
§ beginVertices()
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.
§ endFaces()
Callback function to finalize processing of faces.
- Parameters
-
elementName | Name of the element. |
§ endVertices()
Callback function to finalize processing of vertices.
- Parameters
-
elementName | Name of the element. |
§ fileIsAcceptable()
§ getMesh()
Gets the mesh.
- Returns
- The mesh.
§ hasTextureCoordinates()
- Returns
- true if s/t coordinates where found in the ply file on registration.
§ processFace()
Callback function to process one face.
- Parameters
-
elementName | Name of the element. |
§ processVertex()
§ registerDelegate()
The documentation for this class was generated from the following files: