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

io.qt.qt3d.render.QLevelOfDetail Maven / Gradle / Ivy

The newest version!
package io.qt.qt3d.render;

import io.qt.*;


/**
 * 

Way of controlling the complexity of rendered entities based on their size on the screen

*

Java wrapper for Qt class Qt3DRender::QLevelOfDetail

*/ public class QLevelOfDetail extends io.qt.qt3d.core.QComponent { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private Object __rcCamera; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QLevelOfDetail.class); /** *

Java wrapper for Qt enum Qt3DRender::QLevelOfDetail::ThresholdType

*/ public enum ThresholdType implements QtEnumerator { /** *

Representing Qt3DRender::QLevelOfDetail::DistanceToCameraThreshold

*/ DistanceToCameraThreshold(0), /** *

Representing Qt3DRender::QLevelOfDetail::ProjectedScreenPixelSizeThreshold

*/ ProjectedScreenPixelSizeThreshold(1); static { QtJambi_LibraryUtilities.initialize(); } private ThresholdType(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 ThresholdType resolve(int value) { switch (value) { case 0: return DistanceToCameraThreshold; case 1: return ProjectedScreenPixelSizeThreshold; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See Qt3DRender::QLevelOfDetail::cameraChanged(QCamera*)

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

See Qt3DRender::QLevelOfDetail::currentIndexChanged(int)

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

See Qt3DRender::QLevelOfDetail::thresholdTypeChanged(Qt3DRender::QLevelOfDetail::ThresholdType)

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

See Qt3DRender::QLevelOfDetail::thresholdsChanged(QList<qreal>)

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

See Qt3DRender::QLevelOfDetail::volumeOverrideChanged(Qt3DRender::QLevelOfDetailBoundingSphere)

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

See Qt3DRender::QLevelOfDetail::QLevelOfDetail(Qt3DCore::QNode*)

* @param parent */ @SuppressWarnings({"exports"}) public QLevelOfDetail(io.qt.qt3d.core.@Nullable QNode parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QLevelOfDetail instance, io.qt.qt3d.core.QNode parent); /** *

See Qt3DRender::QLevelOfDetail::camera()const

* @return */ @QtPropertyReader(name="camera") @QtUninvokable public final io.qt.qt3d.render.@Nullable QCamera camera(){ return camera_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.qt3d.render.QCamera camera_native_constfct(long __this__nativeId); /** *

See Qt3DRender::QLevelOfDetail::createBoundingSphere(QVector3D,float)

* @param center * @param radius * @return */ public final io.qt.qt3d.render.@NonNull QLevelOfDetailBoundingSphere createBoundingSphere(io.qt.gui.@NonNull QVector3D center, float radius){ return createBoundingSphere_native_cref_QVector3D_float(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(center), radius); } private native io.qt.qt3d.render.QLevelOfDetailBoundingSphere createBoundingSphere_native_cref_QVector3D_float(long __this__nativeId, long center, float radius); /** *

See Qt3DRender::QLevelOfDetail::currentIndex()const

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

See Qt3DRender::QLevelOfDetail::setCamera(QCamera*)

* @param camera */ @QtPropertyWriter(name="camera") public final void setCamera(io.qt.qt3d.render.@Nullable QCamera camera){ InternalAccess.NativeIdInfo __camera__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(camera); setCamera_native_Qt3DRender_QCamera_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __camera__NativeIdInfo.nativeId()); if (__camera__NativeIdInfo.needsReferenceCounting()) { __rcCamera = camera; }else{ __rcCamera = null; } } private native void setCamera_native_Qt3DRender_QCamera_ptr(long __this__nativeId, long camera); /** *

See Qt3DRender::QLevelOfDetail::setCurrentIndex(int)

* @param currentIndex */ @QtPropertyWriter(name="currentIndex") public final void setCurrentIndex(int currentIndex){ setCurrentIndex_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), currentIndex); } private native void setCurrentIndex_native_int(long __this__nativeId, int currentIndex); /** *

See Qt3DRender::QLevelOfDetail::setThresholdType(Qt3DRender::QLevelOfDetail::ThresholdType)

* @param thresholdType */ @QtPropertyWriter(name="thresholdType") public final void setThresholdType(io.qt.qt3d.render.QLevelOfDetail.@NonNull ThresholdType thresholdType){ setThresholdType_native_Qt3DRender_QLevelOfDetail_ThresholdType(QtJambi_LibraryUtilities.internal.nativeId(this), thresholdType.value()); } private native void setThresholdType_native_Qt3DRender_QLevelOfDetail_ThresholdType(long __this__nativeId, int thresholdType); /** *

See Qt3DRender::QLevelOfDetail::setThresholds(QList<qreal>)

* @param thresholds */ @QtPropertyWriter(name="thresholds") public final void setThresholds(java.util.@NonNull Collection thresholds){ setThresholds_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), thresholds); } private native void setThresholds_native_cref_QList(long __this__nativeId, java.util.Collection thresholds); /** *

See Qt3DRender::QLevelOfDetail::setVolumeOverride(Qt3DRender::QLevelOfDetailBoundingSphere)

* @param volumeOverride */ @QtPropertyWriter(name="volumeOverride") public final void setVolumeOverride(io.qt.qt3d.render.@NonNull QLevelOfDetailBoundingSphere volumeOverride){ setVolumeOverride_native_cref_Qt3DRender_QLevelOfDetailBoundingSphere(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(volumeOverride)); } private native void setVolumeOverride_native_cref_Qt3DRender_QLevelOfDetailBoundingSphere(long __this__nativeId, long volumeOverride); /** *

See Qt3DRender::QLevelOfDetail::thresholdType()const

* @return */ @QtPropertyReader(name="thresholdType") @QtUninvokable public final io.qt.qt3d.render.QLevelOfDetail.@NonNull ThresholdType thresholdType(){ return io.qt.qt3d.render.QLevelOfDetail.ThresholdType.resolve(thresholdType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int thresholdType_native_constfct(long __this__nativeId); /** *

See Qt3DRender::QLevelOfDetail::thresholds()const

* @return */ @QtPropertyReader(name="thresholds") @QtUninvokable public final io.qt.core.@NonNull QList thresholds(){ return thresholds_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList thresholds_native_constfct(long __this__nativeId); /** *

See Qt3DRender::QLevelOfDetail::volumeOverride()const

* @return */ @QtPropertyReader(name="volumeOverride") @QtUninvokable public final io.qt.qt3d.render.@NonNull QLevelOfDetailBoundingSphere volumeOverride(){ return volumeOverride_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.qt3d.render.QLevelOfDetailBoundingSphere volumeOverride_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QLevelOfDetail(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QLevelOfDetail(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QLevelOfDetail instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QLevelOfDetail(io.qt.qt3d.core.QNode)} * with parent = null.

*/ public QLevelOfDetail() { this((io.qt.qt3d.core.QNode)null); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.render.@Nullable QCamera getCamera() { return camera(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getCurrentIndex() { return currentIndex(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.render.QLevelOfDetail.@NonNull ThresholdType getThresholdType() { return thresholdType(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QList getThresholds() { return thresholds(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.render.@NonNull QLevelOfDetailBoundingSphere getVolumeOverride() { return volumeOverride(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy