TopologyCreator.h
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include <boost/shared_ptr.hpp>
21 #include <boost/lexical_cast.hpp>
22 #include "map"
23 
28 
29 namespace SceneModel {
30 
35 {
36 public:
44  TopologyCreator(const std::vector<std::string>& pAllObjectTypes, unsigned int pMaxNeighbourCount, bool pRemoveRelations, bool pSwapRelations);
45 
50 
57  std::vector<boost::shared_ptr<Topology>> generateNeighbours(boost::shared_ptr<Topology> pFrom);
58 
64  std::vector<boost::shared_ptr<Topology>> generateStarTopologies();
65 
71 
77 
82  std::vector<boost::shared_ptr<Topology>> generateAllConnectedTopologies();
83 
84 private:
89 
93  std::vector<std::string> mAllObjectTypes;
94 
100  std::vector<std::vector<bool>> selectRandomNeighbours(std::vector<std::vector<bool>>& pNeighbours);
101 
107  boost::shared_ptr<Topology> convertBitvectorToTopology(const std::vector<bool> & pBitvector);
108 
114  std::vector<bool> convertTopologyToBitvector(boost::shared_ptr<Topology> pTopology);
115 
119  unsigned int mMaxNeighbourCount;
120 
126  std::vector<std::vector<bool>> calculateNeighbours(std::vector<bool> pFrom);
127 
132 
137 
138 };
139 }
boost::shared_ptr< Topology > generateFullyMeshedTopology()
boost::shared_ptr< Topology > generateRandomTopology()
boost::shared_ptr< Topology > convertBitvectorToTopology(const std::vector< bool > &pBitvector)
std::vector< boost::shared_ptr< Topology > > generateNeighbours(boost::shared_ptr< Topology > pFrom)
std::vector< std::vector< bool > > calculateNeighbours(std::vector< bool > pFrom)
std::vector< bool > convertTopologyToBitvector(boost::shared_ptr< Topology > pTopology)
std::vector< std::string > mAllObjectTypes
boost::shared_ptr< ConnectivityChecker > mConnectivityChecker
TopologyCreator(const std::vector< std::string > &pAllObjectTypes, unsigned int pMaxNeighbourCount, bool pRemoveRelations, bool pSwapRelations)
std::vector< boost::shared_ptr< Topology > > generateStarTopologies()
std::vector< std::vector< bool > > selectRandomNeighbours(std::vector< std::vector< bool >> &pNeighbours)
std::vector< boost::shared_ptr< Topology > > generateAllConnectedTopologies()


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