18 f.Name =
"All-Zero real field";
23 private float[] values;
29 private float min,
max;
33 values =
new float[size];
34 min = Float.MAX_VALUE;
35 max = Float.MIN_VALUE;
44 this(f, values.length);
45 for (
int i = 0; i < values.length; i++) {
51 values[index] = value;
67 return Math.abs(min -
max) < 1e-8;
72 String n = descriptor.Name;
73 if (n == null || n ==
"") {
Represents a logical solution field of a simulation.
void setValue(int index, float value)
The default solution field containing an array of real values.
FieldDescriptor descriptor
DefaultSolutionField(FieldDescriptor f, float[] values)
Compatibility constructor.
This enum contains all so far known (to JaRMoSBase) types of logical solution fields.
int getSize()
Returns the number of graphical elements (nodes/vertices or elements/faces) that this field contains ...
Simple class for feature that can be visualized.
float[] computeColors(float[] fieldValues)
Computes a 4-tuple color array with values R, G, B, Alpha for the given field values.
static LogicSolutionField getZeroField(int size, FieldMapping mapping)
VisualFeature[] getVisualFeatures(ColorGenerator cg)
Abstract method that returns all available visual features for a logical solution field...
The field mapping determines how the DoF of the solution are mapped into the given geometry...
DefaultSolutionField(FieldDescriptor f, int size)
The color generator is used to produce RGBA (RGB+Alpha) values from a given array of floats...
boolean isConstant()
Convenience method to determine if the solution field is constant in value.
Contains information about the logical solution fields.