ForceBasedLayoutGenerator.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef FORCEBASEDLAYOUTGENERATOR_H
  2. #define FORCEBASEDLAYOUTGENERATOR_H
  3. #include <GraphLayoutLibrary_global.h>
  4. #include <Common/BoostGraphWrapper.h>
  5. #include <boost/graph/fruchterman_reingold.hpp>
  6. /**
  7. * @brief The ForceBasedLayoutGenerator class
  8. *
  9. * The class provides force based layout of graph.
  10. */
  11. class GRAPHLAYOUTLIBRARYSHARED_EXPORT ForceBasedLayoutGenerator
  12. {
  13. BoostGraphWrapper m_boostGraphWrapper; /*!< member boost graph wrapper */
  14. public:
  15. /** @name Creators
  16. * The methods under this section are responsible for constructing
  17. * an instance of type ForceBasedLayoutGenerator.
  18. */
  19. //@{
  20. ForceBasedLayoutGenerator();
  21. //@}
  22. /** @name Modifiers
  23. * The methods under this section are responsible for modifying
  24. * an instance of ForceBasedLayoutGenerator.
  25. */
  26. //@{
  27. /**
  28. This functions processes the graph to apply force based layout.
  29. @pre
  30. -# gSubgraph != NULL
  31. @param gSubgraph
  32. referece to input graph
  33. @return none
  34. @throw none
  35. */
  36. void applyForceBasedLayout(SubGraph& gSubgraph);
  37. //@}
  38. };
  39. #endif // FORCEBASEDLAYOUTGENERATOR_H