Importer class to load the stanford PLY file format.
More...
Inherits Assimp::BaseImporter.
|
void | ConvertMeshes (std::vector< PLY::Face > *avFaces, const std::vector< aiVector3D > *avPositions, const std::vector< aiVector3D > *avNormals, const std::vector< aiColor4D > *avColors, const std::vector< aiVector2D > *avTexCoords, const std::vector< aiMaterial * > *avMaterials, std::vector< aiMesh * > *avOut) |
| Convert all meshes into our ourer representation. More...
|
|
const aiImporterDesc * | GetInfo () const |
| Return importer meta information. More...
|
|
void | InternReadFile (const std::string &pFile, aiScene *pScene, IOSystem *pIOHandler) |
| Imports the given file into the given scene structure. More...
|
|
void | LoadFaces (std::vector< PLY::Face > *pvOut) |
| Extract a face list from the DOM. More...
|
|
void | LoadMaterial (std::vector< aiMaterial * > *pvOut) |
| Extract a material list from the DOM. More...
|
|
void | LoadTextureCoordinates (std::vector< aiVector2D > *pvOut) |
| Extract texture coordinate channels from the DOM. More...
|
|
void | LoadVertexColor (std::vector< aiColor4D > *pvOut) |
| Extract vertex color channels from the DOM. More...
|
|
void | LoadVertices (std::vector< aiVector3D > *pvOut, bool p_bNormals=false) |
| Extract vertices from the DOM. More...
|
|
void | ReplaceDefaultMaterial (std::vector< PLY::Face > *avFaces, std::vector< aiMaterial * > *avMaterials) |
| Validate material indices, replace default material identifiers. More...
|
|
|
enum | TextFileMode { ALLOW_EMPTY,
FORBID_EMPTY
} |
|
static bool | CheckMagicToken (IOSystem *pIOHandler, const std::string &pFile, const void *magic, unsigned int num, unsigned int offset=0, unsigned int size=4) |
| Check whether a file starts with one or more magic tokens. More...
|
|
static void | ConvertToUTF8 (std::vector< char > &data) |
| An utility for all text file loaders. More...
|
|
static void | ConvertUTF8toISO8859_1 (std::string &data) |
| An utility for all text file loaders. More...
|
|
template<typename T > |
static AI_FORCE_INLINE void | CopyVector (std::vector< T > &vec, T *&out, unsigned int &outLength) |
| Utility function to move a std::vector into a aiScene array. More...
|
|
static std::string | GetExtension (const std::string &pFile) |
| Extract file extension from a string. More...
|
|
static bool | SearchFileHeaderForToken (IOSystem *pIOSystem, const std::string &file, const char **tokens, unsigned int numTokens, unsigned int searchBytes=200, bool tokensSol=false) |
| A utility for CanRead(). More...
|
|
static bool | SimpleExtensionCheck (const std::string &pFile, const char *ext0, const char *ext1=NULL, const char *ext2=NULL) |
| Check whether a file has a specific file extension. More...
|
|
static void | TextFileToBuffer (IOStream *stream, std::vector< char > &data, TextFileMode mode=FORBID_EMPTY) |
| Utility for text file loaders which copies the contents of the file into a memory buffer and converts it to our UTF8 representation. More...
|
|
Importer class to load the stanford PLY file format.
PLYImporter::PLYImporter |
( |
| ) |
|
PLYImporter::~PLYImporter |
( |
| ) |
|
bool PLYImporter::CanRead |
( |
const std::string & |
pFile, |
|
|
IOSystem * |
pIOHandler, |
|
|
bool |
checkSig |
|
) |
| const |
|
virtual |
Convert all meshes into our ourer representation.
Return importer meta information.
See #BaseImporter::GetInfo for the details
Implements Assimp::BaseImporter.
Static helper to parse a color from four single channels in.
void PLYImporter::InternReadFile |
( |
const std::string & |
pFile, |
|
|
aiScene * |
pScene, |
|
|
IOSystem * |
pIOHandler |
|
) |
| |
|
protectedvirtual |
Extract a face list from the DOM.
Extract a material list from the DOM.
void PLYImporter::LoadTextureCoordinates |
( |
std::vector< aiVector2D > * |
pvOut | ) |
|
|
protected |
Extract texture coordinate channels from the DOM.
void PLYImporter::LoadVertexColor |
( |
std::vector< aiColor4D > * |
pvOut | ) |
|
|
protected |
Extract vertex color channels from the DOM.
Extract vertices from the DOM.
Static helper to parse a color channel value.
The input value is normalized to 0-1.
void PLYImporter::ReplaceDefaultMaterial |
( |
std::vector< PLY::Face > * |
avFaces, |
|
|
std::vector< aiMaterial * > * |
avMaterials |
|
) |
| |
|
protected |
Validate material indices, replace default material identifiers.
unsigned char* Assimp::PLYImporter::mBuffer |
|
protected |
Buffer to hold the loaded file.
Document object model representation extracted from the file.
The documentation for this class was generated from the following files: