1 #ifndef NODE_GRAPH_MANAGER_H
2 #define NODE_GRAPH_MANAGER_H
89 const GraphNodeSet &graphNodeSet,
float2 windowCenter, std::set<const CEGUI::Window*>& connectedWindows);
91 const GraphNodeSet &graphNodeSet,
float2 windowCenter, std::set<const CEGUI::Window*>& connectedWindows);
93 void findAndSetFreePosition(std::set<CEGUI::Window*> &positionedWindows, CEGUI::Window* currentWindow, std::set<const CEGUI::Window*>& connectedWindows,
94 bool isInitialWindow,
float2 startPos =
float2(), CEGUI::Window* placeAroundWindow = 0);
104 void createNodeGraphArrows(
const std::set<GraphNodePair>& graphNodePairs, std::vector<Arrow>& arrows);
110 void destroyWordGraph();
114 void retrieveWeightedGraphNodes(
GraphNodeList& graphNodeList);
117 void initStopWords();
118 void addStopWord(
const std::string& stopWord);
119 bool isStopWord(
const std::string& stopWord);
121 void normaliseGraphNodeListIndicators(
GraphNodeList &sortedGraphNodeList);
122 bool areNodeWindowsOverlapping(
const CEGUI::Window* window,
const CEGUI::Window* otherWindow,
const std::set<const CEGUI::Window*>& connectedWindows,
bool windowIsInitialOne)
const;
123 bool areNodeWindowsOverlapping(
const CEGUI::Window* window,
const std::set<CEGUI::Window*>& otherWindows,
const std::set<const CEGUI::Window*>& connectedWindows,
bool windowIsInitialOne)
const;
127 void removeLowestTopNodesWithoutConnections(
GraphNodeList &graphNodeList);
134 unsigned int m_maxReturnedNodes;
138 float m_randomPosMarginX;
139 float m_randomPosMarginY;
141 bool m_usingStopWords;