*/
private List<Float> bounds;
+ private byte[] datasource;
+ private List<Integer> size;
+
/**
* create an complete Function object of Type 2, an Exponential Interpolation function.
*
this.encode = makeEncode(encode);
}
+ public void setCZero(float[] cZero) {
+ this.cZero = cZero;
+ }
+
+ public void setCOne(float[] cOne) {
+ this.cOne = cOne;
+ }
+
private List<Double> makeEncode(List<Double> encode) {
if (encode != null) {
return encode;
this.range = range;
}
+ public Function(List<Double> domain, List<Double> range, List<Double> encode, byte[] datasource, int bitsPerSample,
+ List<Integer> size) {
+ this(0, domain, range);
+ this.encode = encode;
+ this.datasource = datasource;
+ this.bitsPerSample = bitsPerSample;
+ this.size = size;
+ }
+
/**
* Gets the function type
*/
outputBitsPerSample(out);
outputOrder(out);
outputRange(out, doubleFormatter);
+ out.append("\n/DataSource <");
+ for (byte b : datasource) {
+ out.append(String.format("%02x", b & 0xff));
+ }
+ out.append(">\n");
+ out.append("/Size [");
+ for (Integer i : size) {
+ out.append(i);
+ out.append(" ");
+ }
+ out.append("]\n");
out.append(">>");
} else if (functionType == 2) {
outputRange(out, doubleFormatter);
private final List<Double> matrix;
- Pattern(int patternType, Shading shading, List<Double> matrix) {
+ public Pattern(int patternType, Shading shading, List<Double> matrix) {
this.patternType = patternType;
this.shading = shading;
this.matrix = matrix;