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

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

package io.qt.qt3d.render;

import io.qt.*;


/**
 * 

Encapsulates the necessary information to create an OpenGL texture image from an image source

*

Java wrapper for Qt class Qt3DRender::QTextureImage

*/ public class QTextureImage extends io.qt.qt3d.render.QAbstractTextureImage { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QTextureImage.class); /** *

Java wrapper for Qt enum Qt3DRender::QTextureImage::Status

*/ public enum Status implements QtEnumerator { /** *

Representing Qt3DRender::QTextureImage::None

*/ None(0), /** *

Representing Qt3DRender::QTextureImage::Loading

*/ Loading(1), /** *

Representing Qt3DRender::QTextureImage::Ready

*/ Ready(2), /** *

Representing Qt3DRender::QTextureImage::Error

*/ Error(3); static { QtJambi_LibraryUtilities.initialize(); } private Status(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 Status resolve(int value) { switch (value) { case 0: return None; case 1: return Loading; case 2: return Ready; case 3: return Error; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See Qt3DRender::QTextureImage::mirroredChanged(bool)

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

See Qt3DRender::QTextureImage::sourceChanged(QUrl)

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

See Qt3DRender::QTextureImage::statusChanged(Qt3DRender::QTextureImage::Status)

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

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

* @param parent */ @SuppressWarnings({"exports"}) public QTextureImage(io.qt.qt3d.core.@Nullable QNode parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QTextureImage instance, io.qt.qt3d.core.QNode parent); /** * Function has no implementation because its native counterpart is private. */ @Deprecated @QtUninvokable @Override protected final io.qt.qt3d.render.@Nullable QTextureImageDataGenerator dataGenerator() throws QNoImplementationException { throw new QNoImplementationException(); } /** *

See Qt3DRender::QTextureImage::isMirrored()const

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

See Qt3DRender::QTextureImage::setMirrored(bool)

* @param mirrored */ @QtPropertyWriter(name="mirrored") public final void setMirrored(boolean mirrored){ setMirrored_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), mirrored); } private native void setMirrored_native_bool(long __this__nativeId, boolean mirrored); /** *

See Qt3DRender::QTextureImage::setSource(QUrl)

* @param source */ @QtPropertyWriter(name="source") public final void setSource(io.qt.core.@NonNull QUrl source){ setSource_native_cref_QUrl(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(source)); } private native void setSource_native_cref_QUrl(long __this__nativeId, long source); /** *

See Qt3DRender::QTextureImage::setStatus(Qt3DRender::QTextureImage::Status)

* @param status */ @QtUninvokable protected final void setStatus(io.qt.qt3d.render.QTextureImage.@NonNull Status status){ setStatus_native_Qt3DRender_QTextureImage_Status(QtJambi_LibraryUtilities.internal.nativeId(this), status.value()); } @QtUninvokable private native void setStatus_native_Qt3DRender_QTextureImage_Status(long __this__nativeId, int status); /** *

See Qt3DRender::QTextureImage::source()const

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

See Qt3DRender::QTextureImage::status()const

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

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

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

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getMirrored() { return isMirrored(); } /** *

Overloaded function for {@link #setSource(io.qt.core.QUrl)}.

*/ public final void setSource(java.lang.@NonNull String source) { setSource(new io.qt.core.QUrl(source)); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QUrl getSource() { return source(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.render.QTextureImage.@NonNull Status getStatus() { return status(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy