net.sourceforge.lept4j.L_Dna Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lept4j Show documentation
Show all versions of lept4j Show documentation
# Lept4J
## Description:
A Java JNA wrapper for Leptonica Image Processing library.
Lept4J is released and distributed under the Apache License, v2.0.
package net.sourceforge.lept4j;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.ptr.DoubleByReference;
import java.util.Arrays;
import java.util.List;
/**
* native declaration : array.h:22
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java or JNA.
*/
public class L_Dna extends Structure {
/**
* size of allocated number array
* C type : l_int32
*/
public int nalloc;
/**
* number of numbers saved
* C type : l_int32
*/
public int n;
/**
* reference count (1 if no clones)
* C type : l_int32
*/
public int refcount;
/**
* x value assigned to array[0]
* C type : l_float64
*/
public double startx;
/**
* change in x value as i --> i + 1
* C type : l_float64
*/
public double delx;
/**
* number array
* C type : l_float64*
*/
public DoubleByReference array;
public L_Dna() {
super();
}
/**
* Gets this Structure's field names in their proper order.
* @return list of ordered field names
*/
@Override
protected List getFieldOrder() {
return Arrays.asList("nalloc", "n", "refcount", "startx", "delx", "array");
}
/**
* @param nalloc size of allocated number array
* C type : l_int32
* @param n number of numbers saved
* C type : l_int32
* @param refcount reference count (1 if no clones)
* C type : l_int32
* @param startx x value assigned to array[0]
* C type : l_float64
* @param delx change in x value as i --> i + 1
* C type : l_float64
* @param array number array
* C type : l_float64*
*/
public L_Dna(int nalloc, int n, int refcount, double startx, double delx, DoubleByReference array) {
super();
this.nalloc = nalloc;
this.n = n;
this.refcount = refcount;
this.startx = startx;
this.delx = delx;
this.array = array;
}
public L_Dna(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends L_Dna implements Structure.ByReference {
};
public static class ByValue extends L_Dna implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy