GLIP-Lib
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Static Public Member Functions | List of all members
Glip::Modules::STLLoader Class Reference

StereoLithography file loader (STL, binary). More...

#include <GeometryLoader.hpp>

Inheritance diagram for Glip::Modules::STLLoader:
Inheritance graph

Static Public Member Functions

static CustomModel load (const std::string &filename)
 Load geometry from a StereoLithography file. More...
 
- Static Public Member Functions inherited from Glip::Modules::LayoutLoaderModule
static void addBasicModules (LayoutLoader &loader)
 Add the basic modules to a LayoutLoader. More...
 
static std::vector
< LayoutLoaderModule * > 
getBasicModulesList (void)
 Retrieve the list of standard modules. More...
 
static bool getBoolean (const std::string &arg, const std::string &sourceName="", int line=1)
 Convert a keyword to a boolean. More...
 
static void getCases (const std::string &body, std::string &trueCase, int &trueCaseStartLine, std::string &falseCase, int &falseCaseStartLine, const std::string &sourceName="", int bodyLine=1)
 Get true and false cases out of a body. More...
 
static std::vector< std::string > findFile (const std::string &filename, const std::vector< std::string > &dynamicPaths)
 Find in which path a file can be found. More...
 

Additional Inherited Members

- Public Member Functions inherited from Glip::Modules::LayoutLoaderModule
virtual void apply (const std::vector< std::string > &arguments, const std::string &body, const std::string &currentPath, std::vector< std::string > &dynamicPaths, std::map< std::string, HdlTextureFormat > &formatList, std::map< std::string, ShaderSource > &sourceList, std::map< std::string, GeometryModel > &geometryList, std::map< std::string, FilterLayout > &filterList, std::map< std::string, PipelineLayout > &pipelineList, std::string &mainPipelineName, const std::vector< std::string > &staticPaths, const std::map< std::string, HdlTextureFormat > &requiredFormatList, const std::map< std::string, ShaderSource > &requiredSourceList, const std::map< std::string, GeometryModel > &requiredGeometryList, const std::map< std::string, PipelineLayout > &requiredPipelineList, const std::map< std::string, LayoutLoaderModule * > &moduleList, const std::string &sourceName, const int startLine, const int bodyLine, std::string &executionSource, std::string &executionSourceName, int &executionStartLine)=0
 Interface of the module : this function will be called on each corresponding token CALL for the LayoutLoader which has the module. More...
 
const std::string & getName (void) const
 Get the name of the module. More...
 
const int & getMinNumArguments (void) const
 Get the minimum number of arguments of the module. More...
 
const int & getMaxNumArguments (void) const
 Get the maximum number of arguments of the module. More...
 
const char & bodyPresenceTest (void) const
 Get the requirement on the body. More...
 
const std::string & getDescription (void) const
 Get the description of the module. More...
 
const std::string & getBodyDescription (void) const
 Get the description of the body of the module. More...
 
const std::vector< std::pair
< std::string, std::string > > & 
getArgumentsDescriptions (void) const
 Get the description of all the arguments of the module. More...
 
std::string getManual (void) const
 Get the manual of the module. More...
 
virtual void beginLoadLayout (void)
 Function called at the beginning of a loading session.
 
virtual void endLoadLayout (void)
 Function called at the end of a loading session.
 
- Protected Member Functions inherited from Glip::Modules::LayoutLoaderModule
 LayoutLoaderModule (const std::string &_name, const std::string &_manual, const int &_minNumArguments, const int &_maxNumArguments, const char &_bodyPresence)
 LayoutLoaderModule constructor. For simple modules you can just use the macro LAYOUT_LOADER_MODULE_APPLY. More...
 

Detailed Description

StereoLithography file loader (STL, binary).

Member Function Documentation

CustomModel STLLoader::load ( const std::string &  filename)
static

Load geometry from a StereoLithography file.

Parameters
filenameFile to be loaded.
Returns
A constructed geometry model.

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