Visualization LibraryA lightweight C++ OpenGL middleware for 2D/3D graphics |
[Home] [Tutorials] [All Classes] [Grouped Classes] |
Loads an STL file. More...
#include <vlSTL.hpp>
Public Member Functions | |
| virtual const char * | className () |
| ref< ResourceDatabase > | loadSTL (VirtualFile *file) |
| Loads a STL file. | |
| ref< ResourceDatabase > | loadAscii (VirtualFile *file) |
| ref< ResourceDatabase > | loadBinary (VirtualFile *file) |
Loads an STL file.
Definition at line 90 of file vlSTL.hpp.
| virtual const char* vl::STLLoader::className | ( | ) | [inline, virtual] |
| ref< ResourceDatabase > STLLoader::loadSTL | ( | VirtualFile * | file ) |
Loads a STL file.
Definition at line 171 of file vlSTL.cpp.
References vl::VirtualFile::close(), loadAscii(), loadBinary(), vl::OM_ReadOnly, vl::VirtualFile::open(), vl::VirtualFile::read(), and vl::VirtualFile::seekSet().
Referenced by vl::loadSTL().
| ref< ResourceDatabase > STLLoader::loadAscii | ( | VirtualFile * | file ) |
Definition at line 116 of file vlSTL.cpp.
References vl::Geometry::drawCalls(), vl::ref< T >::get(), vl::PT_TRIANGLES, vl::Collection< T >::push_back(), vl::TextStream::readLine(), vl::BufferedStream< Element_Type, Chunk_Size >::setInputFile(), vl::Vector3< T_Scalar >::x(), vl::Vector3< T_Scalar >::y(), and vl::Vector3< T_Scalar >::z().
Referenced by loadSTL().
| ref< ResourceDatabase > STLLoader::loadBinary | ( | VirtualFile * | file ) |
Definition at line 66 of file vlSTL.cpp.
References vl::ref< T >::get(), vl::PT_TRIANGLES, vl::VirtualFile::read(), vl::VirtualFile::readFloat(), vl::VirtualFile::readUInt16(), vl::VirtualFile::readUInt32(), vl::Vector3< T_Scalar >::x(), vl::Vector3< T_Scalar >::y(), and vl::Vector3< T_Scalar >::z().
Referenced by loadSTL().