Public Member Functions | Private Member Functions | Private Attributes | List of all members
SceneModel::HeuristicalTreeGenerator Class Reference

#include <HeuristicalTreeGenerator.h>

Inheritance diagram for SceneModel::HeuristicalTreeGenerator:
Inheritance graph
[legend]

Public Member Functions

void addHeuristic (boost::shared_ptr< AbstractHeuristic > pHeuristic)
 
void buildTree (ObjectSetList pObjectSets, boost::shared_ptr< TreeNode > &pRoot)
 
void buildTree (ObjectSetList pTrajectories, boost::shared_ptr< TreeNode > &pRoot, std::string pType)
 
void evaluateHeuristics (std::vector< boost::shared_ptr< TreeNode > > pClusters)
 
void evaluateHeuristics (std::vector< boost::shared_ptr< TreeNode > > pClusters, boost::shared_ptr< TreeNode > pChild)
 
 HeuristicalTreeGenerator ()
 
 ~HeuristicalTreeGenerator ()
 
- Public Member Functions inherited from SceneModel::AbstractGraphGenerator
 AbstractGraphGenerator ()
 
virtual ~AbstractGraphGenerator ()
 

Private Member Functions

void deleteEmptyObjectSets (ObjectSetList &pObjectSets)
 

Private Attributes

std::vector< boost::shared_ptr< AbstractHeuristic > > mHeuristics
 

Detailed Description

Realization of the abstract tree generator class. It creates the tree by evaluating predefined relations and clustering the trajectories with the best score.

Author
Joachim Gehrung
Version
See SVN

Definition at line 47 of file HeuristicalTreeGenerator.h.

Constructor & Destructor Documentation

SceneModel::HeuristicalTreeGenerator::HeuristicalTreeGenerator ( )

Constructor.

Definition at line 23 of file HeuristicalTreeGenerator.cpp.

SceneModel::HeuristicalTreeGenerator::~HeuristicalTreeGenerator ( )

Destructor.

Definition at line 28 of file HeuristicalTreeGenerator.cpp.

Member Function Documentation

void SceneModel::HeuristicalTreeGenerator::addHeuristic ( boost::shared_ptr< AbstractHeuristic pHeuristic)

Adds a heuristic.

Parameters
pHeuristicThe heuristic to add.

Definition at line 180 of file HeuristicalTreeGenerator.cpp.

void SceneModel::HeuristicalTreeGenerator::buildTree ( ObjectSetList  pObjectSets,
boost::shared_ptr< TreeNode > &  pRoot 
)
virtual

Builds the tree using agglomerative clustering.

Parameters
pObjectSetsThe list of trajectories to build the tree from.
pRootThe root node of the tree.

Reimplemented from SceneModel::AbstractGraphGenerator.

Definition at line 32 of file HeuristicalTreeGenerator.cpp.

void SceneModel::HeuristicalTreeGenerator::buildTree ( ObjectSetList  pTrajectories,
boost::shared_ptr< TreeNode > &  pRoot,
std::string  pType 
)
virtual

Builds the tree, forces the object with the given type as root node and appends a new node to what ever node it is appropriate

Parameters
pTrajectoriesThe list of trajectories to build the tree from.
pRootThe root node of the tree.
pTypeType of the object that should be forced as root node.

Reimplemented from SceneModel::AbstractGraphGenerator.

Definition at line 88 of file HeuristicalTreeGenerator.cpp.

void SceneModel::HeuristicalTreeGenerator::deleteEmptyObjectSets ( ObjectSetList pObjectSets)
private

Deletes empty object sets.

Parameters
pObjectSetsThe list of trajectories to build the tree from.

Definition at line 218 of file HeuristicalTreeGenerator.cpp.

void SceneModel::HeuristicalTreeGenerator::evaluateHeuristics ( std::vector< boost::shared_ptr< TreeNode > >  pClusters)

Find the heuristic that generates the highest score.

Parameters
pClustersThe list of trajectories to build the tree from.

Definition at line 185 of file HeuristicalTreeGenerator.cpp.

void SceneModel::HeuristicalTreeGenerator::evaluateHeuristics ( std::vector< boost::shared_ptr< TreeNode > >  pClusters,
boost::shared_ptr< TreeNode pChild 
)

Find the heuristic that generates the highest score.

Parameters
pClustersThe list of trajectories to build the tree from.
pChildThe node that must be the child node.

Definition at line 201 of file HeuristicalTreeGenerator.cpp.

Member Data Documentation

std::vector<boost::shared_ptr<AbstractHeuristic> > SceneModel::HeuristicalTreeGenerator::mHeuristics
private

A list of heuristics used for clustering.

Definition at line 111 of file HeuristicalTreeGenerator.h.


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


asr_relation_graph_generator
Author(s): Meißner Pascal
autogenerated on Fri Nov 15 2019 03:39:19