#include <parser_base.hpp>
Definition at line 27 of file parser_base.hpp.
ParserBase::ParserBase |
( |
const std::string & |
file_path | ) |
|
|
inline |
Base class ctor
- Parameters
-
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 |
( |
| ) |
|
|
inlinevirtual |
template<typename T >
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 <..>
- Parameters
-
bvh | A reference to a fcl::BVHModel instance that shall be filled with triangles. |
- Returns
- Success status (0 means success)
Definition at line 79 of file parser_base.hpp.
template<typename T >
int8_t ParserBase::createBVH |
( |
std::shared_ptr< fcl::BVHModel< T > > |
ptr_bvh | ) |
|
const std::string ParserBase::getFilePath |
( |
| ) |
const |
|
inline |
Return the member file path.
- Returns
- A const string containing 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.
- Parameters
-
tri_vec | A vector of triangles that shall be filled by the read method. |
- Returns
- Success status (0 means ok)
Implemented in MeshParser, and StlParser.
std::string ParserBase::file_path_ |
|
protected |
The documentation for this class was generated from the following file: