/* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 1.3.31 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package hep.aida.swig; import hep.aida.jni.AIDAJNIUtil; public class ICloud2D extends ICloud implements hep.aida.ICloud2D { private long swigCPtr; public ICloud2D(long cPtr, boolean cMemoryOwn) { super(AIDAJNI.SWIGICloud2DUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } protected static long getCPtr(hep.aida.ICloud2D obj) { if (obj instanceof ICloud2D) { return (obj == null) ? 0 : ((ICloud2D)obj).swigCPtr; } else { long cPtr = AIDAJNI.new_ICloud2D(); // FIXME, memory leak if Java class gets finalized, since C++ director is not freed. AIDAJNI.ICloud2D_director_connect(obj, cPtr, true, true); return cPtr; } } protected void finalize() { delete(); } public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; AIDAJNI.delete_ICloud2D(swigCPtr); } swigCPtr = 0; super.delete(); } protected void swigDirectorDisconnect() { swigCMemOwn = false; delete(); } public void swigReleaseOwnership() { swigCMemOwn = false; AIDAJNI.ICloud2D_change_ownership(this, swigCPtr, false); } public void swigTakeOwnership() { swigCMemOwn = true; AIDAJNI.ICloud2D_change_ownership(this, swigCPtr, true); } public void fill(double x, double y, double weight) { AIDAJNI.ICloud2D_fill__SWIG_0(swigCPtr, this, x, y, weight); } public void fill(double x, double y) { AIDAJNI.ICloud2D_fill__SWIG_1(swigCPtr, this, x, y); } public double lowerEdgeX() { return AIDAJNI.ICloud2D_lowerEdgeX(swigCPtr, this); } public double lowerEdgeY() { return AIDAJNI.ICloud2D_lowerEdgeY(swigCPtr, this); } public double upperEdgeX() { return AIDAJNI.ICloud2D_upperEdgeX(swigCPtr, this); } public double upperEdgeY() { return AIDAJNI.ICloud2D_upperEdgeY(swigCPtr, this); } public double valueX(int index) { return AIDAJNI.ICloud2D_valueX(swigCPtr, this, index); } public double valueY(int index) { return AIDAJNI.ICloud2D_valueY(swigCPtr, this, index); } public double weight(int index) { return AIDAJNI.ICloud2D_weight(swigCPtr, this, index); } public double meanX() { return AIDAJNI.ICloud2D_meanX(swigCPtr, this); } public double meanY() { return AIDAJNI.ICloud2D_meanY(swigCPtr, this); } public double rmsX() { return AIDAJNI.ICloud2D_rmsX(swigCPtr, this); } public double rmsY() { return AIDAJNI.ICloud2D_rmsY(swigCPtr, this); } public void convert(int nBinsX, double lowerEdgeX, double upperEdgeX, int nBinsY, double lowerEdgeY, double upperEdgeY) { AIDAJNI.ICloud2D_convert__SWIG_0(swigCPtr, this, nBinsX, lowerEdgeX, upperEdgeX, nBinsY, lowerEdgeY, upperEdgeY); } public void convert(double[] binEdgesX, double[] binEdgesY) { AIDAJNI.ICloud2D_convert__SWIG_1(swigCPtr, this, binEdgesX, binEdgesY); } public hep.aida.IHistogram2D histogram() { return new IHistogram2D(AIDAJNI.ICloud2D_histogram(swigCPtr, this), false); } public void fillHistogram(hep.aida.IHistogram2D hist) { AIDAJNI.ICloud2D_fillHistogram(swigCPtr, this, IHistogram2D.getCPtr(hist), (hep.aida.IHistogram2D)hist); } public ICloud2D() { this(AIDAJNI.new_ICloud2D(), true); AIDAJNI.ICloud2D_director_connect(this, swigCPtr, swigCMemOwn, true); } }