/* ---------------------------------------------------------------------------- * 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 ICloud3D extends ICloud implements hep.aida.ICloud3D { private long swigCPtr; public ICloud3D(long cPtr, boolean cMemoryOwn) { super(AIDAJNI.SWIGICloud3DUpcast(cPtr), cMemoryOwn); swigCPtr = cPtr; } protected static long getCPtr(hep.aida.ICloud3D obj) { if (obj instanceof ICloud3D) { return (obj == null) ? 0 : ((ICloud3D)obj).swigCPtr; } else { long cPtr = AIDAJNI.new_ICloud3D(); // FIXME, memory leak if Java class gets finalized, since C++ director is not freed. AIDAJNI.ICloud3D_director_connect(obj, cPtr, true, true); return cPtr; } } protected void finalize() { delete(); } public synchronized void delete() { if(swigCPtr != 0 && swigCMemOwn) { swigCMemOwn = false; AIDAJNI.delete_ICloud3D(swigCPtr); } swigCPtr = 0; super.delete(); } protected void swigDirectorDisconnect() { swigCMemOwn = false; delete(); } public void swigReleaseOwnership() { swigCMemOwn = false; AIDAJNI.ICloud3D_change_ownership(this, swigCPtr, false); } public void swigTakeOwnership() { swigCMemOwn = true; AIDAJNI.ICloud3D_change_ownership(this, swigCPtr, true); } public void fill(double x, double y, double z, double weight) { AIDAJNI.ICloud3D_fill__SWIG_0(swigCPtr, this, x, y, z, weight); } public void fill(double x, double y, double z) { AIDAJNI.ICloud3D_fill__SWIG_1(swigCPtr, this, x, y, z); } public double lowerEdgeX() { return AIDAJNI.ICloud3D_lowerEdgeX(swigCPtr, this); } public double lowerEdgeY() { return AIDAJNI.ICloud3D_lowerEdgeY(swigCPtr, this); } public double lowerEdgeZ() { return AIDAJNI.ICloud3D_lowerEdgeZ(swigCPtr, this); } public double upperEdgeX() { return AIDAJNI.ICloud3D_upperEdgeX(swigCPtr, this); } public double upperEdgeY() { return AIDAJNI.ICloud3D_upperEdgeY(swigCPtr, this); } public double upperEdgeZ() { return AIDAJNI.ICloud3D_upperEdgeZ(swigCPtr, this); } public double valueX(int index) { return AIDAJNI.ICloud3D_valueX(swigCPtr, this, index); } public double valueY(int index) { return AIDAJNI.ICloud3D_valueY(swigCPtr, this, index); } public double valueZ(int index) { return AIDAJNI.ICloud3D_valueZ(swigCPtr, this, index); } public double weight(int index) { return AIDAJNI.ICloud3D_weight(swigCPtr, this, index); } public double meanX() { return AIDAJNI.ICloud3D_meanX(swigCPtr, this); } public double meanY() { return AIDAJNI.ICloud3D_meanY(swigCPtr, this); } public double meanZ() { return AIDAJNI.ICloud3D_meanZ(swigCPtr, this); } public double rmsX() { return AIDAJNI.ICloud3D_rmsX(swigCPtr, this); } public double rmsY() { return AIDAJNI.ICloud3D_rmsY(swigCPtr, this); } public double rmsZ() { return AIDAJNI.ICloud3D_rmsZ(swigCPtr, this); } public void convert(int nBinsX, double lowerEdgeX, double upperEdgeX, int nBinsY, double lowerEdgeY, double upperEdgeY, int nBinsZ, double lowerEdgeZ, double upperEdgeZ) { AIDAJNI.ICloud3D_convert__SWIG_0(swigCPtr, this, nBinsX, lowerEdgeX, upperEdgeX, nBinsY, lowerEdgeY, upperEdgeY, nBinsZ, lowerEdgeZ, upperEdgeZ); } public void convert(double[] binEdgesX, double[] binEdgesY, double[] binEdgesZ) { AIDAJNI.ICloud3D_convert__SWIG_1(swigCPtr, this, binEdgesX, binEdgesY, binEdgesZ); } public hep.aida.IHistogram3D histogram() { return new IHistogram3D(AIDAJNI.ICloud3D_histogram(swigCPtr, this), false); } public void fillHistogram(hep.aida.IHistogram3D hist) { AIDAJNI.ICloud3D_fillHistogram(swigCPtr, this, IHistogram3D.getCPtr(hist), (hep.aida.IHistogram3D)hist); } public ICloud3D() { this(AIDAJNI.new_ICloud3D(), true); AIDAJNI.ICloud3D_director_connect(this, swigCPtr, swigCMemOwn, true); } }