net.sourceforge.lept4j.Pta 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.
The newest version!
package net.sourceforge.lept4j;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.ptr.FloatByReference;
import java.util.Arrays;
import java.util.List;
/**
* Array of points
* native declaration : pix.h:121
* 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 Pta extends Structure {
/**
* actual number of pts
* C type : l_int32
*/
public int n;
/**
* size of allocated arrays
* C type : l_int32
*/
public int nalloc;
/**
* reference count (1 if no clones)
* C type : l_uint32
*/
public int refcount;
/**
* arrays of floats
* C type : l_float32*
*/
public FloatByReference x;
/**
* arrays of floats
* C type : l_float32*
*/
public FloatByReference y;
public Pta() {
super();
}
/**
* Gets this Structure's field names in their proper order.
* @return list of ordered field names
*/
@Override
protected List getFieldOrder() {
return Arrays.asList("n", "nalloc", "refcount", "x", "y");
}
/**
* @param n actual number of pts
* C type : l_int32
* @param nalloc size of allocated arrays
* C type : l_int32
* @param refcount reference count (1 if no clones)
* C type : l_uint32
* @param x arrays of floats
* C type : l_float32*
* @param y arrays of floats
* C type : l_float32*
*/
public Pta(int n, int nalloc, int refcount, FloatByReference x, FloatByReference y) {
super();
this.n = n;
this.nalloc = nalloc;
this.refcount = refcount;
this.x = x;
this.y = y;
}
public Pta(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends Pta implements Structure.ByReference {
};
public static class ByValue extends Pta implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy