20 #include <topology_creator/Topology.h> 21 #include <topology_creator/TopologyCreator.h> 23 #include <ISM/combinatorial_optimization/NeighbourhoodFunction.hpp> 24 #include <ISM/utility/SVGHelper.hpp> 25 #include <ISM/common_type/ObjectSet.hpp> 40 class TopologyManager:
public ISM::NeighbourhoodFunction<boost::shared_ptr<SceneModel::Topology>> {
49 const std::vector<std::string>& pObjectTypes,
140 std::vector<std::vector<std::pair<boost::shared_ptr<SceneModel::Topology>,
bool>>>
mHistory;
ISM::SVGHelperPtr mSVGHelper
std::vector< boost::shared_ptr< ISM::ObjectSet > > mExamplesList
std::string mHistoryFilePath
boost::shared_ptr< AbstractTopologyEvaluator > mEvaluator
boost::shared_ptr< SceneModel::Topology > getRandomTopology()
virtual void setReferenceInstance(boost::shared_ptr< SceneModel::Topology > instance)
virtual bool hasNextNeighbour()
void makeTree(boost::shared_ptr< SceneModel::Topology > pTopology)
std::vector< boost::shared_ptr< SceneModel::Topology > > mNeighbours
std::vector< std::string > mObjectTypes
std::map< std::string, boost::shared_ptr< SceneModel::Topology > > mSeenTopologies
std::vector< boost::shared_ptr< SceneModel::Topology > > getStarTopologies()
boost::shared_ptr< SceneModel::AbstractTopologyCreator > mTopologyCreator
Generator creating the topologies.
std::string mHistoryOutput
boost::shared_ptr< SceneModel::Topology > getFullyMeshedTopology()
TopologyManager(std::vector< boost::shared_ptr< ISM::ObjectSet >> pExamplesList, const std::vector< std::string > &pObjectTypes, boost::shared_ptr< SceneModel::AbstractTopologyCreator > pTopologyCreator, boost::shared_ptr< AbstractTopologyEvaluator > pEvaluator)
std::vector< std::vector< std::pair< boost::shared_ptr< SceneModel::Topology >, bool > > > mHistory
virtual boost::shared_ptr< SceneModel::Topology > getNextNeighbour()
unsigned int mHistoryIndex
void printHistory(unsigned int pRunNumber)