Exemple #1
0
        protected ForceSetting AddForceSetting(string label, double minimum, double maximum, int precision, double initialValue)
        {
            var forceSetting = new ForceSetting(label, minimum, maximum, precision, initialValue);

            forceSettings.Add(forceSetting);
            return(forceSetting);
        }
 public NodeAttractionDefinition() : base("Node attraction")
 {
     attractionConstantSetting = AddForceSetting("Attraction constant", 0, 0.1, 3, 0.01);
 }
 public LinkMomentDefinition() : base("Link moment")
 {
     linkMomentConstantSetting = AddForceSetting("Link moment constant", 0, 0.0001, 5, 0.00005);
 }
Exemple #4
0
 public LinkAttractionDefinition() : base("Link attraction")
 {
     attractionConstantSetting = AddForceSetting("Attraction constant", 0, 1, 2, 0.1);
 }
Exemple #5
0
 public Node2NodeRepulsionDefinition() : base("Node repulsion")
 {
     repulsionForceSetting = AddForceSetting("Repulsion constant", 0, 10e5, 0, 5e5);
 }