Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Loads a PLY file. More...
#include <ioPLY.hpp>
Loads a PLY file.
Definition at line 91 of file ioPLY.hpp.
enum vl::PlyLoader::EType |
ref< ResourceDatabase > PlyLoader::loadPly | ( | VirtualFile * | file ) |
Loads a PLY file.
Definition at line 393 of file ioPLY.cpp.
References binary(), vl::VirtualFile::close(), vl::EN_DEPTH_TEST, vl::EN_LIGHTING, vl::Shader::enable(), vl::ref< T >::get(), mColors, mIndices, mNormals, mVerts, NULL, vl::PT_TRIANGLES, readElements(), readHeader(), and vl::Effect::shader().
Referenced by vl::loadPLY().
const std::vector< ref<PlyElement> >& vl::PlyLoader::elements | ( | ) | const [inline] |
Definition at line 242 of file ioPLY.hpp.
Referenced by analyzeHeader(), and readHeader().
std::vector< ref<PlyElement> >& vl::PlyLoader::elements | ( | ) | [inline] |
bool vl::PlyLoader::binary | ( | ) | const [inline] |
bool vl::PlyLoader::littleEndian | ( | ) | const [inline] |
Definition at line 245 of file ioPLY.hpp.
Referenced by readElements().
void PlyLoader::readElements | ( | VirtualFile * | file ) |
Definition at line 178 of file ioPLY.cpp.
References littleEndian(), mElements, newElement(), vl::VirtualFile::readUInt8(), and vl::VirtualFile::seekSet().
Referenced by loadPly().
void PlyLoader::readElements | ( | TextStream * | text ) |
Definition at line 203 of file ioPLY.cpp.
References mElements, and newElement().
void PlyLoader::newElement | ( | PlyElement * | el ) |
Definition at line 212 of file ioPLY.cpp.
References vl::PlyLoader::PlyElement::getColor(), vl::PlyLoader::PlyElement::getNormal(), vl::PlyLoader::PlyElement::getVertex(), mColors, mIndices, mNormals, mVertexIndex, mVerts, vl::PlyLoader::PlyPropertyAbstract::name(), vl::PlyLoader::PlyElement::name(), vl::PlyLoader::PlyElement::properties(), vl::PlyLoader::PlyScalarList::scalars(), and VL_CHECK.
Referenced by readElements().
PlyLoader::EType PlyLoader::translateType | ( | const String & | type ) |
void PlyLoader::analyzeHeader | ( | ) |
Definition at line 272 of file ioPLY.cpp.
References elements(), vl::Log::error(), mColors, mNormals, and mVerts.
Referenced by readHeader().
bool PlyLoader::readHeader | ( | TextStream * | line_reader ) |
Definition at line 306 of file ioPLY.cpp.
References analyzeHeader(), elements(), vl::String::empty(), vl::Log::error(), vl::String::field(), mBinary, mColors, mIndices, mLittleEndian, mNormals, mVertexIndex, mVerts, NULL, vl::TextStream::readLineLF(), vl::String::startsWith(), vl::String::toInt(), translateType(), and vl::String::trim().
Referenced by loadPly().
std::vector< ref<PlyElement> > vl::PlyLoader::mElements [protected] |
Definition at line 253 of file ioPLY.hpp.
Referenced by readElements().
ref<ArrayFloat3> vl::PlyLoader::mVerts [protected] |
Definition at line 254 of file ioPLY.hpp.
Referenced by analyzeHeader(), loadPly(), newElement(), and readHeader().
ref<ArrayFloat3> vl::PlyLoader::mNormals [protected] |
Definition at line 255 of file ioPLY.hpp.
Referenced by analyzeHeader(), loadPly(), newElement(), and readHeader().
ref<ArrayUByte4> vl::PlyLoader::mColors [protected] |
Definition at line 256 of file ioPLY.hpp.
Referenced by analyzeHeader(), loadPly(), newElement(), and readHeader().
std::vector<unsigned int> vl::PlyLoader::mIndices [protected] |
Definition at line 257 of file ioPLY.hpp.
Referenced by loadPly(), newElement(), and readHeader().
int vl::PlyLoader::mVertexIndex [protected] |
Definition at line 258 of file ioPLY.hpp.
Referenced by newElement(), and readHeader().
bool vl::PlyLoader::mBinary [protected] |
Definition at line 259 of file ioPLY.hpp.
Referenced by readHeader().
bool vl::PlyLoader::mLittleEndian [protected] |
Definition at line 260 of file ioPLY.hpp.
Referenced by readHeader().