Constants.h 1.7 KB

12345678910111213141516171819202122232425262728
  1. #ifndef LAYOUTCONSTANTS_H
  2. #define LAYOUTCONSTANTS_H
  3. // Contains constants used in Force directed algorithm.
  4. #define ITERATIONS 100 /*!< fallback iteration count */
  5. #define DEFAULT_EDGE_LENGTH 50 /*!< desired edge length */
  6. #define ATTRACTION_MULTIPLIER 0.5 /*!< default attraction multiplier */
  7. #define REPULSION_RANGE 1000000 /*!< max repulsion range */
  8. #define REPULSION_MULTIPLIER 100 /*!< default repulsion multiplier */
  9. #define CLUSTER_REPULSION_RANGE 10000 /*!< max cluster repulsion range */
  10. #define CLUSTER_REPULSION_MULTIPLIER 10000 /*!< cluster-cluster repulsion multiplier */
  11. #define CLUSTER_TO_CLUSTER_REPULSION_RANGE 10000 /*!< cluster replusion range */
  12. #define GLOBAL_ID 999
  13. #define UNIT_DISPLACEMENT 10.0 /*!< unit displacement */
  14. #define CLOSE_TO_BOUNDRY 200 /*!< boundry nearness condition */
  15. #define UNIT_CLUSTER_DISPLACEMENT 15.0 /*!< unit cluster displacement */
  16. #define CLUSTER_OVERLAP_BOUNDRY 150 /*!< cluster nearness condition */
  17. #define CORRECTED_DISTANCE 100 /*!< overlap correction */
  18. #define CLUSTER_OVERLAP_REMOVAL_PASSES 7 /*!< cluster overlap removal passes */
  19. #define VERTEX_OVERLAP_REMOVAL_PASSES 5 /*!< vertex overlap removal passes */
  20. #define INTEREDGES_DEFAULT_LENGTH 100 /*!< desired inter edge length */
  21. #define INTEREDGES_ATTRACTION_MULTIPLIER 0.3 /*!< default inter edge attraction multiplier */
  22. #define MINIMUM_INTEREDGE_DISTANCE 250 /*!< inter edge dist */
  23. #endif // LAYOUTCONSTANTS_H