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

#include <loader.h>

Inheritance diagram for coal::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 Vec3s &scale)
 
virtual ~CachedMeshLoader ()
 
- Public Member Functions inherited from coal::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 coal/mesh_loader/loader.h.

Member Typedef Documentation

◆ Cache_t

Definition at line 93 of file coal/mesh_loader/loader.h.

Constructor & Destructor Documentation

◆ ~CachedMeshLoader()

virtual coal::CachedMeshLoader::~CachedMeshLoader ( )
inlinevirtual

Definition at line 75 of file coal/mesh_loader/loader.h.

◆ CachedMeshLoader()

coal::CachedMeshLoader::CachedMeshLoader ( const NODE_TYPE bvType = BV_OBBRSS)
inline

Definition at line 77 of file coal/mesh_loader/loader.h.

Member Function Documentation

◆ cache()

const Cache_t& coal::CachedMeshLoader::cache ( ) const
inline

Definition at line 95 of file coal/mesh_loader/loader.h.

◆ load()

BVHModelPtr_t coal::CachedMeshLoader::load ( const std::string &  filename,
const Vec3s scale 
)
virtual

Reimplemented from coal::MeshLoader.

Definition at line 102 of file loader.cpp.

Member Data Documentation

◆ cache_

Cache_t coal::CachedMeshLoader::cache_
private

Definition at line 98 of file coal/mesh_loader/loader.h.


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


hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:45:00