db_planner::CachingAligner Class Reference

A CachingAligner wraps another Aligner and checks for precomputed alignments. More...

#include <caching_aligner.h>

Inheritance diagram for db_planner::CachingAligner:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool Align (const Model &source, const Model &dest, float transform[16]) const
 Implementation of (<Aligner>"::")<Align>
 CachingAligner (const DatabaseManager &db_manager, const bool cache_results, const bool cache_inverse_results, const string alignment_method_name, const Aligner< Model > &aligner=Aligner< Model >())

Private Member Functions

bool InvertTransform (float *, float *) const
 A helper function to invert a 4x4 transform.

Private Attributes

const Aligner< Modelaligner_
 The Aligner that is used if the database lookup fails.
const string alignment_method_name_
 The ID of the alignment method to use when querying the database.
const bool cache_inverse_results_
 Flags for whether inverses are written back into the database.
const bool cache_results_
 Flags for whether computed alignments are written back into the database.
const DatabaseManagerdb_manager_
 A DatabaseManager representing the database to query for alignments.

Detailed Description

A CachingAligner wraps another Aligner and checks for precomputed alignments.

Precomputed alignments come from a database. If "cache_results_" is true, then new alignments are written back to the database, and if "cache_inverse_results" is true the inverse is cached as well. By default the wrapped Aligner is the base class, which always fails.

Definition at line 48 of file caching_aligner.h.


Constructor & Destructor Documentation

db_planner::CachingAligner::CachingAligner ( const DatabaseManager db_manager,
const bool  cache_results,
const bool  cache_inverse_results,
const string  alignment_method_name,
const Aligner< Model > &  aligner = Aligner<Model>() 
) [inline]

Definition at line 64 of file caching_aligner.h.


Member Function Documentation

virtual bool db_planner::CachingAligner::Align ( const Model source,
const Model dest,
float  transform[16] 
) const [inline, virtual]

Implementation of (<Aligner>"::")<Align>

Transforms are left-multiply and column major.

Reimplemented from db_planner::Aligner< Model >.

Definition at line 77 of file caching_aligner.h.

bool db_planner::CachingAligner::InvertTransform ( float *  ,
float *   
) const [inline, private]

A helper function to invert a 4x4 transform.

Definition at line 61 of file caching_aligner.h.


Member Data Documentation

The Aligner that is used if the database lookup fails.

Definition at line 59 of file caching_aligner.h.

The ID of the alignment method to use when querying the database.

Definition at line 57 of file caching_aligner.h.

Flags for whether inverses are written back into the database.

Definition at line 55 of file caching_aligner.h.

Flags for whether computed alignments are written back into the database.

Definition at line 53 of file caching_aligner.h.

A DatabaseManager representing the database to query for alignments.

Definition at line 51 of file caching_aligner.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


graspit
Author(s):
autogenerated on Wed Jan 25 11:00:32 2012