changement parameters
This commit is contained in:
1 parent
fd1b3f4f65
commit
c35266dcc8
4 files changed
+13
-3
No files matched your search
@@ -28,13 +28,17 @@ public class Algorithm {
|
|||||||
break;
|
break;
|
||||||
case "meanFilter":
|
case "meanFilter":
|
||||||
Parameter param3 = new IntegerParameter("size", "Taille du filtre", 1, 21, 2);
|
Parameter param3 = new IntegerParameter("size", "Taille du filtre", 1, 21, 2);
|
||||||
|
Parameter param6 = new Parameter("borderType", "Type de bordure", "select");
|
||||||
this.parameters.add(param3);
|
this.parameters.add(param3);
|
||||||
|
this.parameters.add(param6);
|
||||||
break;
|
break;
|
||||||
case "gaussienFilter":
|
case "gaussienFilter":
|
||||||
Parameter param4 = new IntegerParameter("size", "Taille du filtre", 1, 21, 2);
|
Parameter param4 = new IntegerParameter("size", "Taille du filtre", 1, 21, 2);
|
||||||
Parameter param5 = new DoubleParameter("sigma", "", 0.1, 2, 0.1);
|
Parameter param5 = new DoubleParameter("sigma", "", 0.1, 2, 0.1);
|
||||||
|
Parameter param7 = new Parameter("borderType", "Type de bordure", "select");
|
||||||
this.parameters.add(param4);
|
this.parameters.add(param4);
|
||||||
this.parameters.add(param5);
|
this.parameters.add(param5);
|
||||||
|
this.parameters.add(param7);
|
||||||
break;
|
break;
|
||||||
case "contours":
|
case "contours":
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ public class DoubleParameter extends Parameter {
|
|||||||
private final double step;
|
private final double step;
|
||||||
|
|
||||||
public DoubleParameter(String name, String displayName, double min, double max, double step) {
|
public DoubleParameter(String name, String displayName, double min, double max, double step) {
|
||||||
super(name, displayName);
|
super(name, displayName, "range");
|
||||||
this.max = max;
|
this.max = max;
|
||||||
this.min = min;
|
this.min = min;
|
||||||
this.step = step;
|
this.step = step;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ public class IntegerParameter extends Parameter {
|
|||||||
private final int step;
|
private final int step;
|
||||||
|
|
||||||
public IntegerParameter(String name, String displayName, int min, int max, int step) {
|
public IntegerParameter(String name, String displayName, int min, int max, int step) {
|
||||||
super(name, displayName);
|
super(name, displayName, "range");
|
||||||
this.max = max;
|
this.max = max;
|
||||||
this.min = min;
|
this.min = min;
|
||||||
this.step = step;
|
this.step = step;
|
||||||
|
|||||||
@@ -3,10 +3,12 @@ package pdl.backend;
|
|||||||
public class Parameter {
|
public class Parameter {
|
||||||
private final String name;
|
private final String name;
|
||||||
private final String displayName;
|
private final String displayName;
|
||||||
|
private final String type;
|
||||||
|
|
||||||
public Parameter(String name, String displayName) {
|
public Parameter(String name, String displayName, String type) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.displayName = displayName;
|
this.displayName = displayName;
|
||||||
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
@@ -16,4 +18,8 @@ public class Parameter {
|
|||||||
public String getDisplayName() {
|
public String getDisplayName() {
|
||||||
return this.displayName;
|
return this.displayName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getType() {
|
||||||
|
return this.type;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user