All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.datavis.Q3DCamera Maven / Gradle / Ivy

The newest version!
package io.qt.datavis;

import io.qt.*;


/**
 * 

Representation of a camera in 3D space

*

Java wrapper for Qt class Q3DCamera

* @since This class was introduced in Qt QtDataVisualization 1.0. */ public class Q3DCamera extends io.qt.datavis.Q3DObject { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(Q3DCamera.class); /** *

Java wrapper for Qt enum Q3DCamera::CameraPreset

*/ @QtUnlistedEnum public enum CameraPreset implements QtEnumerator { /** *

Representing Q3DCamera::CameraPresetNone

*/ CameraPresetNone(-1), /** *

Representing Q3DCamera::CameraPresetFrontLow

*/ CameraPresetFrontLow(0), /** *

Representing Q3DCamera::CameraPresetFront

*/ CameraPresetFront(1), /** *

Representing Q3DCamera::CameraPresetFrontHigh

*/ CameraPresetFrontHigh(2), /** *

Representing Q3DCamera::CameraPresetLeftLow

*/ CameraPresetLeftLow(3), /** *

Representing Q3DCamera::CameraPresetLeft

*/ CameraPresetLeft(4), /** *

Representing Q3DCamera::CameraPresetLeftHigh

*/ CameraPresetLeftHigh(5), /** *

Representing Q3DCamera::CameraPresetRightLow

*/ CameraPresetRightLow(6), /** *

Representing Q3DCamera::CameraPresetRight

*/ CameraPresetRight(7), /** *

Representing Q3DCamera::CameraPresetRightHigh

*/ CameraPresetRightHigh(8), /** *

Representing Q3DCamera::CameraPresetBehindLow

*/ CameraPresetBehindLow(9), /** *

Representing Q3DCamera::CameraPresetBehind

*/ CameraPresetBehind(10), /** *

Representing Q3DCamera::CameraPresetBehindHigh

*/ CameraPresetBehindHigh(11), /** *

Representing Q3DCamera::CameraPresetIsometricLeft

*/ CameraPresetIsometricLeft(12), /** *

Representing Q3DCamera::CameraPresetIsometricLeftHigh

*/ CameraPresetIsometricLeftHigh(13), /** *

Representing Q3DCamera::CameraPresetIsometricRight

*/ CameraPresetIsometricRight(14), /** *

Representing Q3DCamera::CameraPresetIsometricRightHigh

*/ CameraPresetIsometricRightHigh(15), /** *

Representing Q3DCamera::CameraPresetDirectlyAbove

*/ CameraPresetDirectlyAbove(16), /** *

Representing Q3DCamera::CameraPresetDirectlyAboveCW45

*/ CameraPresetDirectlyAboveCW45(17), /** *

Representing Q3DCamera::CameraPresetDirectlyAboveCCW45

*/ CameraPresetDirectlyAboveCCW45(18), /** *

Representing Q3DCamera::CameraPresetFrontBelow

*/ CameraPresetFrontBelow(19), /** *

Representing Q3DCamera::CameraPresetLeftBelow

*/ CameraPresetLeftBelow(20), /** *

Representing Q3DCamera::CameraPresetRightBelow

*/ CameraPresetRightBelow(21), /** *

Representing Q3DCamera::CameraPresetBehindBelow

*/ CameraPresetBehindBelow(22), /** *

Representing Q3DCamera::CameraPresetDirectlyBelow

*/ CameraPresetDirectlyBelow(23); static { QtJambi_LibraryUtilities.initialize(); } private CameraPreset(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull CameraPreset resolve(int value) { switch (value) { case -1: return CameraPresetNone; case 0: return CameraPresetFrontLow; case 1: return CameraPresetFront; case 2: return CameraPresetFrontHigh; case 3: return CameraPresetLeftLow; case 4: return CameraPresetLeft; case 5: return CameraPresetLeftHigh; case 6: return CameraPresetRightLow; case 7: return CameraPresetRight; case 8: return CameraPresetRightHigh; case 9: return CameraPresetBehindLow; case 10: return CameraPresetBehind; case 11: return CameraPresetBehindHigh; case 12: return CameraPresetIsometricLeft; case 13: return CameraPresetIsometricLeftHigh; case 14: return CameraPresetIsometricRight; case 15: return CameraPresetIsometricRightHigh; case 16: return CameraPresetDirectlyAbove; case 17: return CameraPresetDirectlyAboveCW45; case 18: return CameraPresetDirectlyAboveCCW45; case 19: return CameraPresetFrontBelow; case 20: return CameraPresetLeftBelow; case 21: return CameraPresetRightBelow; case 22: return CameraPresetBehindBelow; case 23: return CameraPresetDirectlyBelow; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See Q3DCamera::cameraPresetChanged(Q3DCamera::CameraPreset)

*/ @QtPropertyNotify(name="cameraPreset") public final @NonNull Signal1 cameraPresetChanged = new Signal1<>(); /** *

See Q3DCamera::maxZoomLevelChanged(float)

*/ @QtPropertyNotify(name="maxZoomLevel") public final @NonNull Signal1 maxZoomLevelChanged = new Signal1<>(); /** *

See Q3DCamera::minZoomLevelChanged(float)

*/ @QtPropertyNotify(name="minZoomLevel") public final @NonNull Signal1 minZoomLevelChanged = new Signal1<>(); /** *

See Q3DCamera::targetChanged(QVector3D)

*/ @QtPropertyNotify(name="target") public final @NonNull Signal1 targetChanged = new Signal1<>(); /** *

See Q3DCamera::wrapXRotationChanged(bool)

*/ @QtPropertyNotify(name="wrapXRotation") public final @NonNull Signal1 wrapXRotationChanged = new Signal1<>(); /** *

See Q3DCamera::wrapYRotationChanged(bool)

*/ @QtPropertyNotify(name="wrapYRotation") public final @NonNull Signal1 wrapYRotationChanged = new Signal1<>(); /** *

See Q3DCamera::xRotationChanged(float)

*/ @QtPropertyNotify(name="xRotation") public final @NonNull Signal1 xRotationChanged = new Signal1<>(); /** *

See Q3DCamera::yRotationChanged(float)

*/ @QtPropertyNotify(name="yRotation") public final @NonNull Signal1 yRotationChanged = new Signal1<>(); /** *

See Q3DCamera::zoomLevelChanged(float)

*/ @QtPropertyNotify(name="zoomLevel") public final @NonNull Signal1 zoomLevelChanged = new Signal1<>(); /** *

See Q3DCamera::Q3DCamera(QObject*)

* @param parent */ public Q3DCamera(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(Q3DCamera instance, io.qt.core.QObject parent); /** *

See Q3DCamera::cameraPreset()const

* @return */ @QtPropertyReader(name="cameraPreset") @QtUninvokable public final io.qt.datavis.Q3DCamera.@NonNull CameraPreset cameraPreset(){ return io.qt.datavis.Q3DCamera.CameraPreset.resolve(cameraPreset_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int cameraPreset_native_constfct(long __this__nativeId); /** *

See Q3DCamera::maxZoomLevel()const

* @return */ @QtPropertyReader(name="maxZoomLevel") @QtUninvokable public final float maxZoomLevel(){ return maxZoomLevel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float maxZoomLevel_native_constfct(long __this__nativeId); /** *

See Q3DCamera::minZoomLevel()const

* @return */ @QtPropertyReader(name="minZoomLevel") @QtUninvokable public final float minZoomLevel(){ return minZoomLevel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float minZoomLevel_native_constfct(long __this__nativeId); /** *

See Q3DCamera::setCameraPosition(float,float,float)

* @param horizontal * @param vertical * @param zoom */ @QtUninvokable public final void setCameraPosition(float horizontal, float vertical, float zoom){ setCameraPosition_native_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), horizontal, vertical, zoom); } @QtUninvokable private native void setCameraPosition_native_float_float_float(long __this__nativeId, float horizontal, float vertical, float zoom); /** *

See Q3DCamera::setCameraPreset(Q3DCamera::CameraPreset)

* @param preset */ @QtPropertyWriter(name="cameraPreset") @QtUninvokable public final void setCameraPreset(io.qt.datavis.Q3DCamera.@NonNull CameraPreset preset){ setCameraPreset_native_Q3DCamera_CameraPreset(QtJambi_LibraryUtilities.internal.nativeId(this), preset.value()); } @QtUninvokable private native void setCameraPreset_native_Q3DCamera_CameraPreset(long __this__nativeId, int preset); /** *

See Q3DCamera::setMaxZoomLevel(float)

* @param zoomLevel */ @QtPropertyWriter(name="maxZoomLevel") @QtUninvokable public final void setMaxZoomLevel(float zoomLevel){ setMaxZoomLevel_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), zoomLevel); } @QtUninvokable private native void setMaxZoomLevel_native_float(long __this__nativeId, float zoomLevel); /** *

See Q3DCamera::setMinZoomLevel(float)

* @param zoomLevel */ @QtPropertyWriter(name="minZoomLevel") @QtUninvokable public final void setMinZoomLevel(float zoomLevel){ setMinZoomLevel_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), zoomLevel); } @QtUninvokable private native void setMinZoomLevel_native_float(long __this__nativeId, float zoomLevel); /** *

See Q3DCamera::setTarget(QVector3D)

* @param target */ @QtPropertyWriter(name="target") @QtUninvokable public final void setTarget(io.qt.gui.@NonNull QVector3D target){ setTarget_native_cref_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(target)); } @QtUninvokable private native void setTarget_native_cref_QVector3D(long __this__nativeId, long target); /** *

See Q3DCamera::setWrapXRotation(bool)

* @param isEnabled */ @QtPropertyWriter(name="wrapXRotation") @QtUninvokable public final void setWrapXRotation(boolean isEnabled){ setWrapXRotation_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), isEnabled); } @QtUninvokable private native void setWrapXRotation_native_bool(long __this__nativeId, boolean isEnabled); /** *

See Q3DCamera::setWrapYRotation(bool)

* @param isEnabled */ @QtPropertyWriter(name="wrapYRotation") @QtUninvokable public final void setWrapYRotation(boolean isEnabled){ setWrapYRotation_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), isEnabled); } @QtUninvokable private native void setWrapYRotation_native_bool(long __this__nativeId, boolean isEnabled); /** *

See Q3DCamera::setXRotation(float)

* @param rotation */ @QtPropertyWriter(name="xRotation") @QtUninvokable public final void setXRotation(float rotation){ setXRotation_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), rotation); } @QtUninvokable private native void setXRotation_native_float(long __this__nativeId, float rotation); /** *

See Q3DCamera::setYRotation(float)

* @param rotation */ @QtPropertyWriter(name="yRotation") @QtUninvokable public final void setYRotation(float rotation){ setYRotation_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), rotation); } @QtUninvokable private native void setYRotation_native_float(long __this__nativeId, float rotation); /** *

See Q3DCamera::setZoomLevel(float)

* @param zoomLevel */ @QtPropertyWriter(name="zoomLevel") @QtUninvokable public final void setZoomLevel(float zoomLevel){ setZoomLevel_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), zoomLevel); } @QtUninvokable private native void setZoomLevel_native_float(long __this__nativeId, float zoomLevel); /** *

See Q3DCamera::target()const

* @return */ @QtPropertyReader(name="target") @QtUninvokable public final io.qt.gui.@NonNull QVector3D target(){ return target_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QVector3D target_native_constfct(long __this__nativeId); /** *

See Q3DCamera::wrapXRotation()const

* @return */ @QtPropertyReader(name="wrapXRotation") @QtUninvokable public final boolean wrapXRotation(){ return wrapXRotation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean wrapXRotation_native_constfct(long __this__nativeId); /** *

See Q3DCamera::wrapYRotation()const

* @return */ @QtPropertyReader(name="wrapYRotation") @QtUninvokable public final boolean wrapYRotation(){ return wrapYRotation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean wrapYRotation_native_constfct(long __this__nativeId); /** *

See Q3DCamera::xRotation()const

* @return */ @QtPropertyReader(name="xRotation") @QtUninvokable public final float xRotation(){ return xRotation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float xRotation_native_constfct(long __this__nativeId); /** *

See Q3DCamera::yRotation()const

* @return */ @QtPropertyReader(name="yRotation") @QtUninvokable public final float yRotation(){ return yRotation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float yRotation_native_constfct(long __this__nativeId); /** *

See Q3DCamera::zoomLevel()const

* @return */ @QtPropertyReader(name="zoomLevel") @QtUninvokable public final float zoomLevel(){ return zoomLevel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float zoomLevel_native_constfct(long __this__nativeId); /** *

See Q3DObject::copyValuesFrom(Q3DObject)

* @param source */ @QtUninvokable @Override public void copyValuesFrom(io.qt.datavis.@StrictNonNull Q3DObject source){ java.util.Objects.requireNonNull(source, "Argument 'source': null not expected."); copyValuesFrom_native_cref_Q3DObject(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(source)); } @QtUninvokable private native void copyValuesFrom_native_cref_Q3DObject(long __this__nativeId, long source); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected Q3DCamera(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected Q3DCamera(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(Q3DCamera instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #Q3DCamera(io.qt.core.QObject)} * with parent = null.

*/ public Q3DCamera() { this((io.qt.core.QObject)null); } /** * @hidden *

Kotlin property getter. In Java use {@link #cameraPreset()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.datavis.Q3DCamera.@NonNull CameraPreset getCameraPreset() { return cameraPreset(); } /** * @hidden *

Kotlin property getter. In Java use {@link #maxZoomLevel()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final float getMaxZoomLevel() { return maxZoomLevel(); } /** * @hidden *

Kotlin property getter. In Java use {@link #minZoomLevel()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final float getMinZoomLevel() { return minZoomLevel(); } /** *

Overloaded function for {@link #setCameraPosition(float, float, float)} * with zoom = 100.0f.

*/ @QtUninvokable public final void setCameraPosition(float horizontal, float vertical) { setCameraPosition(horizontal, vertical, (float)100.0f); } /** * @hidden *

Kotlin property getter. In Java use {@link #target()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.gui.@NonNull QVector3D getTarget() { return target(); } /** * @hidden *

Kotlin property getter. In Java use {@link #wrapXRotation()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getWrapXRotation() { return wrapXRotation(); } /** * @hidden *

Kotlin property getter. In Java use {@link #wrapYRotation()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getWrapYRotation() { return wrapYRotation(); } /** * @hidden *

Kotlin property getter. In Java use {@link #xRotation()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final float getXRotation() { return xRotation(); } /** * @hidden *

Kotlin property getter. In Java use {@link #yRotation()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final float getYRotation() { return yRotation(); } /** * @hidden *

Kotlin property getter. In Java use {@link #zoomLevel()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final float getZoomLevel() { return zoomLevel(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy