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

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

package io.qt.qt3d.render;

import io.qt.*;


/**
 * 

An abstract base class for ray casting in 3d scenes

*

Java wrapper for Qt class Qt3DRender::QAbstractRayCaster

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

Java wrapper for Qt enum Qt3DRender::QAbstractRayCaster::FilterMode

*/ public enum FilterMode implements QtEnumerator { /** *

Representing Qt3DRender::QAbstractRayCaster::AcceptAnyMatchingLayers

*/ AcceptAnyMatchingLayers(0), /** *

Representing Qt3DRender::QAbstractRayCaster::AcceptAllMatchingLayers

*/ AcceptAllMatchingLayers(1), /** *

Representing Qt3DRender::QAbstractRayCaster::DiscardAnyMatchingLayers

*/ DiscardAnyMatchingLayers(2), /** *

Representing Qt3DRender::QAbstractRayCaster::DiscardAllMatchingLayers

*/ DiscardAllMatchingLayers(3); static { QtJambi_LibraryUtilities.initialize(); } private FilterMode(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 FilterMode resolve(int value) { switch (value) { case 0: return AcceptAnyMatchingLayers; case 1: return AcceptAllMatchingLayers; case 2: return DiscardAnyMatchingLayers; case 3: return DiscardAllMatchingLayers; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum Qt3DRender::QAbstractRayCaster::RunMode

*/ public enum RunMode implements QtEnumerator { /** *

Representing Qt3DRender::QAbstractRayCaster::Continuous

*/ Continuous(0), /** *

Representing Qt3DRender::QAbstractRayCaster::SingleShot

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

See Qt3DRender::QAbstractRayCaster::filterModeChanged(Qt3DRender::QAbstractRayCaster::FilterMode)

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

See Qt3DRender::QAbstractRayCaster::hitsChanged(Qt3DRender::QAbstractRayCaster::Hits)

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

See Qt3DRender::QAbstractRayCaster::runModeChanged(Qt3DRender::QAbstractRayCaster::RunMode)

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

See Qt3DRender::QAbstractRayCaster::QAbstractRayCaster(QNode*)

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

See Qt3DRender::QAbstractRayCaster::addLayer(Qt3DRender::QLayer*)

* @param layer */ @QtUninvokable public final void addLayer(io.qt.qt3d.render.@Nullable QLayer layer){ addLayer_native_Qt3DRender_QLayer_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(layer)); } @QtUninvokable private native void addLayer_native_Qt3DRender_QLayer_ptr(long __this__nativeId, long layer); /** *

See Qt3DRender::QAbstractRayCaster::filterMode()const

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

See Qt3DRender::QAbstractRayCaster::hits()const

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

See Qt3DRender::QAbstractRayCaster::layers()const

* @return */ @QtUninvokable public final io.qt.core.@NonNull QList layers(){ return layers_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList layers_native_constfct(long __this__nativeId); /** *

See Qt3DRender::QAbstractRayCaster::removeLayer(Qt3DRender::QLayer*)

* @param layer */ @QtUninvokable public final void removeLayer(io.qt.qt3d.render.@Nullable QLayer layer){ removeLayer_native_Qt3DRender_QLayer_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(layer)); } @QtUninvokable private native void removeLayer_native_Qt3DRender_QLayer_ptr(long __this__nativeId, long layer); /** *

See Qt3DRender::QAbstractRayCaster::runMode()const

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

See Qt3DRender::QAbstractRayCaster::setFilterMode(Qt3DRender::QAbstractRayCaster::FilterMode)

* @param filterMode */ @QtPropertyWriter(name="filterMode") public final void setFilterMode(io.qt.qt3d.render.QAbstractRayCaster.@NonNull FilterMode filterMode){ setFilterMode_native_Qt3DRender_QAbstractRayCaster_FilterMode(QtJambi_LibraryUtilities.internal.nativeId(this), filterMode.value()); } private native void setFilterMode_native_Qt3DRender_QAbstractRayCaster_FilterMode(long __this__nativeId, int filterMode); /** *

See Qt3DRender::QAbstractRayCaster::setRunMode(Qt3DRender::QAbstractRayCaster::RunMode)

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

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

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

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.render.QAbstractRayCaster.@NonNull FilterMode getFilterMode() { return filterMode(); } /** * @hidden *

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

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

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.render.QAbstractRayCaster.@NonNull RunMode getRunMode() { return runMode(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy