#include <parser_base.hpp>
Public Member Functions | |
template<typename T > | |
int8_t | createBVH (fcl::BVHModel< T > &bvh) |
template<typename T > | |
int8_t | createBVH (boost::shared_ptr< fcl::BVHModel< T > > ptr_bvh) |
const std::string | getFilePath () const |
ParserBase (const std::string &file_path) | |
virtual int8_t | read (std::vector< TriangleSupport > &tri_vec)=0 |
virtual | ~ParserBase () |
Protected Attributes | |
std::string | file_path_ |
Definition at line 27 of file parser_base.hpp.
ParserBase::ParserBase | ( | const std::string & | file_path | ) | [inline] |
Base class ctor
file_path | Can be an URI name (e.g. package:// ...) or a full path. |
Definition at line 37 of file parser_base.hpp.
virtual ParserBase::~ParserBase | ( | ) | [inline, virtual] |
Definition at line 43 of file parser_base.hpp.
int8_t ParserBase::createBVH | ( | fcl::BVHModel< T > & | bvh | ) |
Direct implementation in the header file is necessary only for templated methods!!!. -> Allows implicit usage without one must giving <..>
bvh | A reference to a fcl::BVHModel instance that shall be filled with triangles. |
Definition at line 79 of file parser_base.hpp.
int8_t ParserBase::createBVH | ( | boost::shared_ptr< fcl::BVHModel< T > > | ptr_bvh | ) |
Definition at line 100 of file parser_base.hpp.
const std::string ParserBase::getFilePath | ( | ) | const [inline] |
Return the member file path.
Definition at line 52 of file parser_base.hpp.
virtual int8_t ParserBase::read | ( | std::vector< TriangleSupport > & | tri_vec | ) | [pure virtual] |
Tries to read from the given file path and fills a triangle vector.
tri_vec | A vector of triangles that shall be filled by the read method. |
Implemented in MeshParser, and StlParser.
std::string ParserBase::file_path_ [protected] |
Definition at line 30 of file parser_base.hpp.