Classes | Public Types | Public Member Functions | Private Attributes | List of all members
hpp::fcl::CachedMeshLoader Class Reference

#include <loader.h>

Inheritance diagram for hpp::fcl::CachedMeshLoader:
Inheritance graph
[legend]

Classes

struct  Key
 

Public Types

typedef std::map< Key, BVHModelPtr_tCache_t
 

Public Member Functions

const Cache_tcache () const
 
 CachedMeshLoader (const NODE_TYPE &bvType=BV_OBBRSS)
 
virtual BVHModelPtr_t load (const std::string &filename, const Vec3f &scale)
 
virtual ~CachedMeshLoader ()
 
- Public Member Functions inherited from hpp::fcl::MeshLoader
virtual CollisionGeometryPtr_t loadOctree (const std::string &filename)
 
 MeshLoader (const NODE_TYPE &bvType=BV_OBBRSS)
 
virtual ~MeshLoader ()
 

Private Attributes

Cache_t cache_
 

Detailed Description

Class for building polyhedron from files with cache mechanism. This class builds a new object for each different file. If method CachedMeshLoader::load is called twice with the same arguments, the second call returns the result of the first call.

Definition at line 73 of file loader.h.

Member Typedef Documentation

◆ Cache_t

Definition at line 89 of file loader.h.

Constructor & Destructor Documentation

◆ ~CachedMeshLoader()

virtual hpp::fcl::CachedMeshLoader::~CachedMeshLoader ( )
inlinevirtual

Definition at line 75 of file loader.h.

◆ CachedMeshLoader()

hpp::fcl::CachedMeshLoader::CachedMeshLoader ( const NODE_TYPE bvType = BV_OBBRSS)
inline

Definition at line 77 of file loader.h.

Member Function Documentation

◆ cache()

const Cache_t& hpp::fcl::CachedMeshLoader::cache ( ) const
inline

Definition at line 91 of file loader.h.

◆ load()

BVHModelPtr_t hpp::fcl::CachedMeshLoader::load ( const std::string &  filename,
const Vec3f scale 
)
virtual

Reimplemented from hpp::fcl::MeshLoader.

Definition at line 100 of file loader.cpp.

Member Data Documentation

◆ cache_

Cache_t hpp::fcl::CachedMeshLoader::cache_
private

Definition at line 94 of file loader.h.


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


hpp-fcl
Author(s):
autogenerated on Fri Jun 2 2023 02:39:03