InscoperAPI/Build/Java/com.inscoper.api/com/inscoper/api/SLM.java¶
Packages¶
| Name |
|---|
| com.inscoper.api |
Classes¶
| Name | |
|---|---|
| class | com.inscoper.api.SLM Spatial Light Modulator device interface. |
Source code¶
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (https://www.swig.org).
* Version 4.3.1
*
* Do not make changes to this file unless you know what you are doing - modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package com.inscoper.api;
import com.inscoper.api.logging.*;
public class SLM extends AbstractSystem {
private transient long swigCPtr;
private transient boolean swigCMemOwnDerived;
protected SLM(long cPtr, boolean cMemoryOwn) {
super(InscoperJNI.SLM_SWIGSmartPtrUpcast(cPtr), true);
swigCMemOwnDerived = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(SLM obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void swigSetCMemOwn(boolean own) {
swigCMemOwnDerived = own;
super.swigSetCMemOwn(own);
}
@SuppressWarnings({"deprecation", "removal"})
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwnDerived) {
swigCMemOwnDerived = false;
InscoperJNI.delete_SLM(swigCPtr);
}
swigCPtr = 0;
}
super.delete();
}
public void setSLMImage(SWIGTYPE_p_unsigned_char pixels, long length) {
InscoperJNI.SLM_setSLMImage__SWIG_0(swigCPtr, this, SWIGTYPE_p_unsigned_char.getCPtr(pixels), length);
}
public void setSLMImage(SWIGTYPE_p_unsigned_int pixels, long length) {
InscoperJNI.SLM_setSLMImage__SWIG_1(swigCPtr, this, SWIGTYPE_p_unsigned_int.getCPtr(pixels), length);
}
public void setSLMPixelsTo(short intensity) {
InscoperJNI.SLM_setSLMPixelsTo__SWIG_0(swigCPtr, this, intensity);
}
public void setSLMPixelsTo(short r, short g, short b) {
InscoperJNI.SLM_setSLMPixelsTo__SWIG_1(swigCPtr, this, r, g, b);
}
public void displaySLMImage() {
InscoperJNI.SLM_displaySLMImage(swigCPtr, this);
}
public long getSLMWidth() {
return InscoperJNI.SLM_getSLMWidth(swigCPtr, this);
}
public long getSLMHeight() {
return InscoperJNI.SLM_getSLMHeight(swigCPtr, this);
}
public long getSLMBytesPerPixel() {
return InscoperJNI.SLM_getSLMBytesPerPixel(swigCPtr, this);
}
public long getSLMNumberOfComponents() {
return InscoperJNI.SLM_getSLMNumberOfComponents(swigCPtr, this);
}
public void setSLMExposure(double exposure_ms) {
InscoperJNI.SLM_setSLMExposure(swigCPtr, this, exposure_ms);
}
public double getSLMExposure() {
return InscoperJNI.SLM_getSLMExposure(swigCPtr, this);
}
}
Updated on 2026-09-03 at 12:14:19 +0200