• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java DoubleByReference类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.sun.jna.ptr.DoubleByReference的典型用法代码示例。如果您正苦于以下问题:Java DoubleByReference类的具体用法?Java DoubleByReference怎么用?Java DoubleByReference使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DoubleByReference类属于com.sun.jna.ptr包,在下文中一共展示了DoubleByReference类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getInstanceDerivedBoundingBox

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Returns advanced bounding box measures, can be used in combination with
 * getInstanceDerivedTransformationMatrix().
 * 
 * @param model
 *            Unique number identifying the model in the opened file.
 * @param instance
 *            A numeric instanceID that uniquely identifies an instance.
 * @return InstanceDerivedBoundingBox object
 * @throws Exception
 */
public InstanceDerivedBoundingBox getInstanceDerivedBoundingBox(Pointer model, Pointer instance) {
	DoubleByReference pOx = new DoubleByReference();
	DoubleByReference pOy = new DoubleByReference();
	DoubleByReference pOz = new DoubleByReference();
	DoubleByReference pVx = new DoubleByReference();
	DoubleByReference pVy = new DoubleByReference();
	DoubleByReference pVz = new DoubleByReference();
	engine._getInstanceDerivedBoundingBox(model, instance, pOx, pOy, pOz, pVx, pVy, pVz);
	double ox = pOx.getValue();
	double oy = pOy.getValue();
	double oz = pOz.getValue();
	double vx = pVx.getValue();
	double vy = pVy.getValue();
	double vz = pVz.getValue();
	return new InstanceDerivedBoundingBox(model, instance, ox, oy, oz, vx, vy, vz);
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:28,代码来源:IfcEngine.java


示例2: sdaiAppend

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Adds an attribute value at the end of an attribute list.
 * 
 * @param list
 * @param valueType
 * @param value
 */
public void sdaiAppend(int list, SdaiTypes valueType, Object value) {
	switch (valueType) {
	case INTEGER:
	case BOOLEAN:
	case LOGICAL:
		IntByReference iVal = new IntByReference((Integer) value);
		engine.sdaiAppend(list, valueType.ordinal(), iVal);
		break;
	case REAL:
		DoubleByReference dVal = new DoubleByReference((Double) value);
		engine.sdaiAppend(list, valueType.ordinal(), dVal);
		break;
	case STRING:
		engine.sdaiAppend(list, valueType.ordinal(), (String) value);
		break;
	default:
		engine.sdaiAppend(list, valueType.ordinal(), (Pointer) value);
		break;
	}
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:28,代码来源:IfcEngine.java


示例3: sdaiCreateADB

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Creates an Attribute Data Block (ADB).
 * 
 * @param valueType
 *            identifies the type of parameter value.
 * @param value
 *            identifies the data to be stored in the new ADB.
 * @return the handle of the newly created ADB.
 */
public Pointer sdaiCreateADB(SdaiTypes valueType, Object value) {
	Pointer returnValue = null;
	switch (valueType) {
	case INTEGER:
	case BOOLEAN:
	case LOGICAL:
		IntByReference iVal = new IntByReference((Integer) value);
		returnValue = engine.sdaiCreateADB(valueType.ordinal(), iVal);
		break;
	case REAL:
		DoubleByReference dVal = new DoubleByReference((Double) value);
		returnValue = engine.sdaiCreateADB(valueType.ordinal(), dVal);
		break;
	case STRING:
		returnValue = engine.sdaiCreateADB(valueType.ordinal(), (String) value);
		break;
	default:
		returnValue = engine.sdaiCreateADB(valueType.ordinal(), (Pointer) value);
		break;
	}

	return returnValue;
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:33,代码来源:IfcEngine.java


示例4: setBoundaryNoise

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
public static int setBoundaryNoise(int boundaryNoiseId, double value, int operation) {
	int retVal;
	double startTime = 0.0;
	double endTime = 0.0;
	int nvals = 1;
	double[] valuearray = new double[]{value};

	if (platform == D3dFlowModelConfig.DllType.win32_ifort) {
		retVal = winIfortDll.SE_SET_NOISE_FOR_TIME_SPAN(new IntByReference(boundaryNoiseId),
				new DoubleByReference(startTime), new DoubleByReference(endTime),
				new IntByReference(operation),
				new IntByReference(nvals), valuearray);
	} else if (platform == D3dFlowModelConfig.DllType.linux64_gnu) {
		retVal = linuxGnuDll.se_set_noise_for_time_span_(new IntByReference(boundaryNoiseId),
				new DoubleByReference(startTime), new DoubleByReference(endTime),
				new IntByReference(operation),
				new IntByReference(nvals), valuearray);
	} else {
		throw new RuntimeException("setBoundaryNoise: DLL/so type not known for model");
	}
	if (retVal < 0) {
		throw new RuntimeException("Error in D3dFlowDll.setBoundaryNoise, retVal " + retVal);
	}
	return retVal;
}
 
开发者ID:OpenDA-Association,项目名称:OpenDA,代码行数:26,代码来源:D3dFlowDll.java


示例5: getTimeHorizon

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
public static ITime getTimeHorizon() {
	int retVal;
	DoubleByReference startTime = new DoubleByReference(Double.NaN);
	DoubleByReference endTime = new DoubleByReference(Double.NaN);
	if (platform == D3dFlowModelConfig.DllType.win32_ifort) {
		retVal = winIfortDll.SE_GETTIMEHORIZON(componentID, modelIdentifier,
				startTime, endTime, componentID.length(), modelIdentifier.length());
	} else if (platform == D3dFlowModelConfig.DllType.linux64_gnu) {
		retVal = linuxGnuDll.se_gettimehorizon_(componentID, modelIdentifier,
				startTime, endTime, componentID.length(), modelIdentifier.length());
	} else {
		throw new RuntimeException("getTimeHorizon: DLL/so type not known for model");
	}
	if (retVal != 0) {
		throw new RuntimeException("Error in D3dFlowDll.getTimeHorizon(), retVal " + retVal);
	}
	return new Time(startTime.getValue(), endTime.getValue());
}
 
开发者ID:OpenDA-Association,项目名称:OpenDA,代码行数:19,代码来源:D3dFlowDll.java


示例6: getValues

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Returns selected values for a scalar time series parameter.
 *
 * @param parameterNumber
 * @param locationNumber
 * @param layerNumber
 * @param startTime
 * @param endTime
 * @return values
 */
public double[] getValues(int parameterNumber, int locationNumber, int layerNumber, ITime startTime, ITime endTime) {
    int valuesCount = getValuesCount(parameterNumber, locationNumber, startTime, endTime);
    double[] values = new double[valuesCount];
    int retVal = nativeDLL.m_openda_wrapper_get_values_for_time_span_(
            new IntByReference(myModelInstanceId),
            new IntByReference(parameterNumber), new IntByReference(locationNumber), new IntByReference(layerNumber),
            new DoubleByReference(startTime.getMJD() - referenceDateInMjd ),
            new DoubleByReference(endTime.getMJD() - referenceDateInMjd),
            new IntByReference(valuesCount), values);
    if (retVal != 0) {
        nativeDLL.m_openda_wrapper_finish_(new IntByReference(currentModelInstance));
        throw new RuntimeException("Invalid result from dll.GET_VALUES_FOR_TIME_SPAN call, retVal= " + retVal);
    }
    return values;
}
 
开发者ID:OpenDA-Association,项目名称:OpenDA,代码行数:26,代码来源:EfdcDLL.java


示例7: setValues

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Sets selected values for a scalar time series parameter.
 *
 * @param parameterNumber
 * @param values
 * @param locationNumber
 * @param layerNumber
 * @param startTime
 * @param endTime
 */
public void setValues(int parameterNumber, double[] values, int locationNumber, int layerNumber, ITime startTime, ITime endTime) {
    int valuesCount = getValuesCount(parameterNumber, locationNumber, startTime, endTime);
    if (valuesCount != values.length) {
        nativeDLL.m_openda_wrapper_finish_(new IntByReference(currentModelInstance));
        throw new RuntimeException("Invalid number of values in setValues(exchangeItemId=" +
                parameterNumber + "). #Values=" + values.length + ", #expected=" + valuesCount);
    }
    int retVal = nativeDLL.m_openda_wrapper_set_values_for_time_span_(
            new IntByReference(myModelInstanceId),
            new IntByReference(parameterNumber), new IntByReference(locationNumber), new IntByReference(layerNumber),
            new DoubleByReference(startTime.getMJD() - referenceDateInMjd),
            new DoubleByReference(endTime.getMJD() - referenceDateInMjd),
            new IntByReference(valuesCount), values);
    if (retVal != 0) {
        nativeDLL.m_openda_wrapper_finish_(new IntByReference(currentModelInstance));
        throw new RuntimeException("Invalid result from dll.SET_VALUES_FOR_TIME_SPAN call, retVal= " + retVal);
    }
}
 
开发者ID:OpenDA-Association,项目名称:OpenDA,代码行数:29,代码来源:EfdcDLL.java


示例8: getValues

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
public double[] getValues(int exchangeItemId, int locationIndex, ITime startTime, ITime endTime) {
    int valuesCount = getValuesCount(exchangeItemId, locationIndex, startTime, endTime);
    double[] values = new double[valuesCount];
    startModelInstanceAccess();
    int retVal = nativeDLL.m_simple_model_mp_get_values_for_time_span_(
            new IntByReference(myModelInstanceId),
            new IntByReference(exchangeItemId), new IntByReference(locationIndex),
            new DoubleByReference(startTime.getMJD()), new DoubleByReference(endTime.getMJD()),
            new IntByReference(valuesCount), values);
    endModelInstanceAccess();
    if (retVal != 0) {
        nativeDLL.m_simple_model_mp_finish_(new IntByReference(currentModelInstance));
        throw new RuntimeException("Invalid result from dll.GET_VALUES call, retVal= " + retVal);
    }
    return values;
}
 
开发者ID:OpenDA-Association,项目名称:OpenDA,代码行数:17,代码来源:SimpleModelDLL.java


示例9: setValues

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
public void setValues(int exchangeItemId, double[] values, int locationIndex, ITime startTime, ITime endTime) {
    int valuesCount = getValuesCount(exchangeItemId, locationIndex, startTime, endTime);
    if (valuesCount != values.length) {
        nativeDLL.m_simple_model_mp_finish_(new IntByReference(currentModelInstance));
        throw new RuntimeException("Invalid #values in setValues(exchangeItemId=" +
                exchangeItemId + "). #Values=" + values.length + ", #expected=" + valuesCount);
    }
    startModelInstanceAccess();
    int retVal = nativeDLL.m_simple_model_mp_set_values_for_time_span_(
            new IntByReference(myModelInstanceId),
            new IntByReference(exchangeItemId), new IntByReference(locationIndex),
            new DoubleByReference(startTime.getMJD()), new DoubleByReference(endTime.getMJD()),
            new IntByReference(valuesCount), values);
    endModelInstanceAccess();
    if (retVal != 0) {
        nativeDLL.m_simple_model_mp_finish_(new IntByReference(currentModelInstance));
        throw new RuntimeException("Invalid result from dll.SET_VALUES call, retVal= " + retVal);
    }
}
 
开发者ID:OpenDA-Association,项目名称:OpenDA,代码行数:20,代码来源:SimpleModelDLL.java


示例10: start

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
public static synchronized void start(HackRFSweepDataCallback dataCallback, int freq_min_MHz, int freq_max_MHz, int fft_bin_width, int num_samples,
		int lna_gain, int vga_gain, boolean antennaPowerEnable)
{
	hackrf_sweep_lib_start__fft_power_callback_callback callback = new hackrf_sweep_lib_start__fft_power_callback_callback()
	{
		@Override public void apply(byte sweep_started, int bins, DoubleByReference freqStart, float fftBinWidth, FloatByReference powerdBm)
		{
			double[] freqStartArr = bins == 0 ? null : freqStart.getPointer().getDoubleArray(0, bins);
			float[] powerArr =  bins == 0 ? null : powerdBm.getPointer().getFloatArray(0, bins);
			dataCallback.newSpectrumData(sweep_started==0 ? false : true, freqStartArr, fftBinWidth, powerArr);
		}
	};
	Native.setCallbackThreadInitializer(callback, new CallbackThreadInitializer(true));

	HackrfSweepLibrary.hackrf_sweep_lib_start(callback, freq_min_MHz, freq_max_MHz, fft_bin_width, num_samples, lna_gain, vga_gain, antennaPowerEnable ? 1 : 0);
}
 
开发者ID:pavsa,项目名称:hackrf-spectrum-analyzer,代码行数:17,代码来源:HackRFSweepNativeBridge.java


示例11: addSubFeatures

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
private void addSubFeatures(CSensors cSensors, CChip chip, List<CSubFeature> subFeatures) {
	for (final CSubFeature subFeature : subFeatures) {
		addDebugData(String.format("SubFeature type: %d", subFeature.type));
		addDebugData(String.format("SubFeature name: %s", subFeature.name));

		double value = 0.0;
		DoubleByReference pValue = new DoubleByReference(value);
		if (cSensors.sensors_get_value(chip, subFeature.number, pValue) == 0) {
			addDebugData(String.format("SubFeature value: %s", pValue.getValue()));

			if (subFeature.name.endsWith("_input")) {
				addData(String.format("%s", pValue.getValue()));
				break;
			}
		} else {
			addData("Could not retrieve value");
		}
	}
}
 
开发者ID:profesorfalken,项目名称:jSensors,代码行数:20,代码来源:UnixSensorsManager.java


示例12: getPosition

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Read the position of the device. Units are meters [m].
 * @param aPosition - Return value.
 * @return - Return 0 if no error occurred.
 */    
@Override
public int getPosition(JVector3d aPosition)
{
    // check if drivers are installed
    if (!mDriverInstalled) return (-1);

    DoubleByReference   x = new DoubleByReference(),
                        y = new DoubleByReference(),
                        z = new DoubleByReference();

    int error = 0;
    try{
        error = hdFalcon.hdFalconGetPosition(mDeviceID, x, y, z);
    }catch(Exception e)
    {e.printStackTrace();}

    // add a small offset for zero centering
    x.setValue(x.getValue() + 0.01);
    aPosition.set(x.getValue(), y.getValue(), z.getValue());
    estimateLinearVelocity(aPosition);
    return (error);
}
 
开发者ID:jchai3d,项目名称:jchai3d,代码行数:28,代码来源:JFalconDevice.java


示例13: setForce

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Send a force [N] to the Falcon haptic device.
 * @param aForce - Force command to be applied to device.
 * @return - Return 0 if no error occurred.
 */    
@Override
public int setForce(JVector3d aForce)
{
    // check if drivers are installed
    if (!mDriverInstalled) return (-1);

    DoubleByReference   x = new DoubleByReference(aForce.getX()),
                        y = new DoubleByReference(aForce.getY()),
                        z = new DoubleByReference(aForce.getZ());

    int error = 0;
    try{
        error = hdFalcon.hdFalconSetForce(mDeviceID, x, y, z);
    }catch(Exception e)
    {e.printStackTrace();}

    aForce.setX(x.getValue());
    aForce.setY(y.getValue());
    aForce.setZ(z.getValue());

    setPrevForce(aForce);
    return (error);
}
 
开发者ID:jchai3d,项目名称:jchai3d,代码行数:29,代码来源:JFalconDevice.java


示例14: getLinearVelocity

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Read the linear velocity of the device. Units are in [m/s].
 * @return - Return 0 if no error occurred.
 */
@Override
public int getLinearVelocity(JVector3d aLinearVelocity) {
    // check if the system is available
    if (!mSystemAvailable) {
        return (-1);
    }

    int error = -1;

    DoubleByReference vx = new DoubleByReference(),
            vy = new DoubleByReference(),
            vz = new DoubleByReference();

    try {
        error = dhd.dhdGetLinearVelocity(vx, vy, vz, (char) mDeviceID);
    } catch (Exception e) {
        e.printStackTrace();
    }

    mLinearVelocity.set(vx.getValue(), vy.getValue(), vz.getValue());

    aLinearVelocity.copyFrom(mLinearVelocity);

    return (error);
}
 
开发者ID:jchai3d,项目名称:jchai3d,代码行数:30,代码来源:JDeltaDevice.java


示例15: getPosition

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Read the position of the device. Units are meters [m].
 * @param aPosition - Return value.
 * @return - Return 0 if no error occurred.
 */    
@Override
public int getPosition(JVector3d aPosition)
{
    // check if drivers are installed
    if (!mDriverInstalled) return (-1);

    DoubleByReference   x=new DoubleByReference(),
                        y=new DoubleByReference(),
                        z=new DoubleByReference();
    
    int error = -1;
    try{
        error = hdPhantom.hdPhantomGetPosition(mDeviceID, x, y, z);
    }catch(Exception e)
    {e.printStackTrace();}

    aPosition.set(x.getValue(), y.getValue(), z.getValue());
    estimateLinearVelocity(aPosition);
    return (error);
}
 
开发者ID:jchai3d,项目名称:jchai3d,代码行数:26,代码来源:JPhantomDevice.java


示例16: setForce

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Send a force [N] to the haptic device
 * @param aForce - Force command to be applied to device.
 * @return - Return 0 if no error occurred.
 */    
@Override
public int setForce(JVector3d aForce)
{
    // check if drivers are installed
    if (!mDriverInstalled) return (-1);


    DoubleByReference   x=new DoubleByReference(aForce.getX()),
                        y=new DoubleByReference(aForce.getY()),
                        z=new DoubleByReference(aForce.getZ());

    int error = -1;
    try{
        error = hdPhantom.hdPhantomSetForce(mDeviceID, x, y, z);
    }catch(Exception e)
    {e.printStackTrace();}

    aForce.setX(x.getValue());
    aForce.setY(y.getValue());
    aForce.setZ(z.getValue());

    setPrevForce(aForce);
    return (error);
}
 
开发者ID:jchai3d,项目名称:jchai3d,代码行数:30,代码来源:JPhantomDevice.java


示例17: setTorque

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Send a torque [N*m] to the haptic device
 * @param aTorque - Force command to be applied to device.
 * @return - Return 0 if no error occurred.
 */    
@Override
public int setTorque(JVector3d aTorque)
{
    // check if drivers are installed
    if (!mDriverInstalled) return (-1);

    DoubleByReference   x=new DoubleByReference(aTorque.getX()),
                        y=new DoubleByReference(aTorque.getY()),
                        z=new DoubleByReference(aTorque.getZ());

    int error = -1;
    try{
        error = hdPhantom.hdPhantomSetTorque(mDeviceID, x, y, z);
    }catch(Exception e)
    {e.printStackTrace();}

    aTorque.setX(x.getValue());
    aTorque.setY(y.getValue());
    aTorque.setZ(z.getValue());

    setPrevTorque(aTorque);
    return (error);
}
 
开发者ID:jchai3d,项目名称:jchai3d,代码行数:29,代码来源:JPhantomDevice.java


示例18: engiGetAggrElement

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Returns a data field in the actual aggregate element.
 * 
 * @param aggregate
 *            Existing aggregation
 * @param elementIndex
 *            Position in the existing aggregation, first position is 0
 * @param valueType
 *            Type of output value
 * @return Value of the specific element in the aggregation
 */
public Object engiGetAggrElement(Pointer aggregate, int elementIndex, SdaiTypes valueType) {
	Object returnValue = null;
	switch (valueType) {
	case INTEGER:
		IntByReference intRef = new IntByReference();
		engine.engiGetAggrElement(aggregate, elementIndex, valueType.ordinal(), intRef);
		returnValue = new Integer(intRef.getValue());
		break;
	case REAL:
		DoubleByReference dblRef = new DoubleByReference();
		engine.engiGetAggrElement(aggregate, elementIndex, valueType.ordinal(), dblRef);
		returnValue = new Double(dblRef.getValue());
		break;
	case STRING:
		PointerByReference strRef = new PointerByReference();
		engine.engiGetAggrElement(aggregate, elementIndex, valueType.ordinal(), strRef);
		Pointer strPtr = strRef.getValue();
		if (strPtr != null)
			returnValue = strPtr.getString(0);
		break;
	default:
		PointerByReference ptrRef = new PointerByReference();
		engine.engiGetAggrElement(aggregate, elementIndex, valueType.ordinal(), ptrRef);
		returnValue = ptrRef.getValue();
		break;
	}
	return returnValue;
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:40,代码来源:IfcEngine.java


示例19: getInstanceDerivedPropertiesInModelling

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Return derived properties from the 3D visualisation.
 * 
 * @param model
 *            Unique number identifying the model in the opened file.
 * @param instance
 *            A numeric instanceID that uniquely identifies an instance.
 * @return InstanceDerivedProperties object
 */
public InstanceDerivedProperties getInstanceDerivedPropertiesInModelling(int model, Pointer instance) {
	DoubleByReference pH = new DoubleByReference();
	DoubleByReference pW = new DoubleByReference();
	DoubleByReference pT = new DoubleByReference();
	engine.getInstanceDerivedPropertiesInModelling(model, instance, pH, pW, pT);
	double height = pH.getValue();
	double width = pW.getValue();
	double thickness = pT.getValue();
	return new InstanceDerivedProperties(model, instance, height, width, thickness);
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:20,代码来源:IfcEngine.java


示例20: getInstanceDerivedTransformationMatrix

import com.sun.jna.ptr.DoubleByReference; //导入依赖的package包/类
/**
 * Returns internally created transformation matrix. This function can be
 * applied to every instance that needs a transformation matrix (i.e.
 * IfcColumn, IfcLocalPlacement, IfcPolyline).
 * 
 * @param model
 *            Unique number identifying the model in the opened file.
 * @param instance
 *            A numeric instanceID that uniquely identifies an instance.
 * @return InstanceDerivedTransformationMatrix object
 */
public InstanceDerivedTransformationMatrix getInstanceDerivedTransformationMatrix(Pointer model, Pointer instance) {
	DoubleByReference p_11 = new DoubleByReference();
	DoubleByReference p_12 = new DoubleByReference();
	DoubleByReference p_13 = new DoubleByReference();
	DoubleByReference p_14 = new DoubleByReference();
	DoubleByReference p_21 = new DoubleByReference();
	DoubleByReference p_22 = new DoubleByReference();
	DoubleByReference p_23 = new DoubleByReference();
	DoubleByReference p_24 = new DoubleByReference();
	DoubleByReference p_31 = new DoubleByReference();
	DoubleByReference p_32 = new DoubleByReference();
	DoubleByReference p_33 = new DoubleByReference();
	DoubleByReference p_34 = new DoubleByReference();
	DoubleByReference p_41 = new DoubleByReference();
	DoubleByReference p_42 = new DoubleByReference();
	DoubleByReference p_43 = new DoubleByReference();
	DoubleByReference p_44 = new DoubleByReference();
	engine.getInstanceDerivedTransformationMatrix(model, instance, p_11, p_12, p_13, p_14, p_21, p_22, p_23, p_24, p_31, p_32, p_33, p_34, p_41, p_42, p_43, p_44);
	double _11 = p_11.getValue();
	double _12 = p_12.getValue();
	double _13 = p_13.getValue();
	double _14 = p_14.getValue();
	double _21 = p_21.getValue();
	double _22 = p_22.getValue();
	double _23 = p_23.getValue();
	double _24 = p_24.getValue();
	double _31 = p_31.getValue();
	double _32 = p_32.getValue();
	double _33 = p_33.getValue();
	double _34 = p_34.getValue();
	double _41 = p_41.getValue();
	double _42 = p_42.getValue();
	double _43 = p_43.getValue();
	double _44 = p_44.getValue();
	return new InstanceDerivedTransformationMatrix(model, instance, _11, _12, _13, _14, _21, _22, _23, _24, _31, _32, _33, _34, _41, _42, _43, _44);
}
 
开发者ID:shenan4321,项目名称:BIMplatform,代码行数:48,代码来源:IfcEngine.java



注:本文中的com.sun.jna.ptr.DoubleByReference类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java IAtomContainer类代码示例发布时间:2022-05-21
下一篇:
Java WebResponse类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap