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
 
struct  Value
 

Public Types

typedef std::map< Key, ValueCache_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 74 of file loader.h.

Member Typedef Documentation

◆ Cache_t

Definition at line 94 of file loader.h.

Constructor & Destructor Documentation

◆ ~CachedMeshLoader()

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

Definition at line 76 of file loader.h.

◆ CachedMeshLoader()

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

Definition at line 78 of file loader.h.

Member Function Documentation

◆ cache()

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

Definition at line 96 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 102 of file loader.cpp.

Member Data Documentation

◆ cache_

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

Definition at line 99 of file loader.h.


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


hpp-fcl
Author(s):
autogenerated on Fri Aug 2 2024 02:45:16