All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
SurgSim::Graphics::MeshPlyReaderDelegate Class Reference

Implementation of PlyReaderDelegate for graphicsmeshes. More...

#include <SurgSim/Graphics/MeshPlyReaderDelegate.h>

Inheritance diagram for SurgSim::Graphics::MeshPlyReaderDelegate:
Inheritance graph
[legend]
Collaboration diagram for SurgSim::Graphics::MeshPlyReaderDelegate:
Collaboration graph
[legend]

Public Member Functions

 MeshPlyReaderDelegate ()
 Default constructor. More...
 
 MeshPlyReaderDelegate (std::shared_ptr< MeshType > mesh)
 Constructor. More...
 
virtual 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< MeshTypegetMesh ()
 Gets the mesh. More...
 
virtual bool registerDelegate (PlyReader *reader) override
 Registers the delegate with the reader, overridden from. More...
 
virtual 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 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::FaceData 
m_faceData
 
std::shared_ptr< MeshTypem_mesh
 The mesh that will be created. More...
 
std::array< size_t, 3 > m_indices
 

Detailed Description

Implementation of PlyReaderDelegate for graphicsmeshes.

Constructor & Destructor Documentation

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

Default constructor.

SurgSim::Graphics::MeshPlyReaderDelegate::MeshPlyReaderDelegate ( std::shared_ptr< MeshType mesh)
explicit

Constructor.

Parameters
meshThe mesh to be used, it will be cleared by the constructor.

Member Function Documentation

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

Callback function to process one vertex.

Parameters
elementNameName of the element.

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


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