DotHelper.hpp
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include <boost/filesystem/path.hpp>
21 #include <map>
22 
23 //ISM includes
25 #include "common_type/Tracks.hpp"
27 
28 namespace ISM {
29 
30 using boost::filesystem::path;
31 
32 class DotHelper {
33 
34  public:
35  DotHelper(std::map<std::string, ISM::TracksPtr>& tracksPerPattern) :
36  mTracksPerPattern(tracksPerPattern) {}
37 
38  void storeISMToDot(const path outputPath, const std::string& patternName,
39  const std::string& topologyIdentifier,
40  const std::map<std::string, std::vector<ISM::VoteSpecifierPtr>>& objectDefinitons);
41  void storeRelationsToDot(const path outputPath, const std::string& patternName,
42  const std::string& topologyIdentifier,
43  const ISM::ObjectRelations& relations,
44  ISM::ObjectRelations referenceRelations = ObjectRelations());
45 
46  private:
47  std::map<std::string, ISM::TracksPtr> mTracksPerPattern;
48  const double NODE_DISTANCE = 2.5;
49 
50 }; typedef boost::shared_ptr<DotHelper> DotHelperPtr;
51 
52 }
boost::shared_ptr< DotHelper > DotHelperPtr
Definition: DotHelper.hpp:50
std::map< std::string, ISM::TracksPtr > mTracksPerPattern
Definition: DotHelper.hpp:47
std::string patternName
void storeRelationsToDot(const path outputPath, const std::string &patternName, const std::string &topologyIdentifier, const ISM::ObjectRelations &relations, ISM::ObjectRelations referenceRelations=ObjectRelations())
Definition: DotHelper.cpp:86
void storeISMToDot(const path outputPath, const std::string &patternName, const std::string &topologyIdentifier, const std::map< std::string, std::vector< ISM::VoteSpecifierPtr >> &objectDefinitons)
Definition: DotHelper.cpp:27
const double NODE_DISTANCE
Definition: DotHelper.hpp:48
std::map< unsigned int, ISM::ObjectRelationPtr, std::less< unsigned > > ObjectRelations
this namespace contains all generally usable classes.
DotHelper(std::map< std::string, ISM::TracksPtr > &tracksPerPattern)
Definition: DotHelper.hpp:35


asr_lib_ism
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Mehlhaus Jonas, Meißner Pascal, Qattan Mohamad, Reckling Reno, Stroh Daniel
autogenerated on Wed Jan 8 2020 04:02:40