io.qt.qt3d.render.QShaderImage Maven / Gradle / Ivy
package io.qt.qt3d.render;
import io.qt.*;
/**
* Provides Image access to shader programs
* Java wrapper for Qt class Qt3DRender::QShaderImage
*/
public class QShaderImage extends io.qt.qt3d.core.QNode
{
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(QShaderImage.class);
/**
* Java wrapper for Qt enum Qt3DRender::QShaderImage::Access
*/
public enum Access implements QtEnumerator {
/**
* Representing Qt3DRender:: QShaderImage:: ReadOnly
*/
ReadOnly(0),
/**
* Representing Qt3DRender:: QShaderImage:: WriteOnly
*/
WriteOnly(1),
/**
* Representing Qt3DRender:: QShaderImage:: ReadWrite
*/
ReadWrite(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private Access(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 Access resolve(int value) {
switch (value) {
case 0: return ReadOnly;
case 1: return WriteOnly;
case 2: return ReadWrite;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum Qt3DRender::QShaderImage::ImageFormat
*/
public enum ImageFormat implements QtEnumerator {
/**
* Representing Qt3DRender:: QShaderImage:: NoFormat
*/
NoFormat(0),
/**
* Representing Qt3DRender:: QShaderImage:: Automatic
*/
Automatic(1),
/**
* Representing Qt3DRender:: QShaderImage:: R8_UNorm
*/
R8_UNorm(33321),
/**
* Representing Qt3DRender:: QShaderImage:: RG8_UNorm
*/
RG8_UNorm(33323),
/**
* Representing Qt3DRender:: QShaderImage:: RGBA8_UNorm
*/
RGBA8_UNorm(32856),
/**
* Representing Qt3DRender:: QShaderImage:: R16_UNorm
*/
R16_UNorm(33322),
/**
* Representing Qt3DRender:: QShaderImage:: RG16_UNorm
*/
RG16_UNorm(33324),
/**
* Representing Qt3DRender:: QShaderImage:: RGBA16_UNorm
*/
RGBA16_UNorm(32859),
/**
* Representing Qt3DRender:: QShaderImage:: R8_SNorm
*/
R8_SNorm(36756),
/**
* Representing Qt3DRender:: QShaderImage:: RG8_SNorm
*/
RG8_SNorm(36757),
/**
* Representing Qt3DRender:: QShaderImage:: RGBA8_SNorm
*/
RGBA8_SNorm(36759),
/**
* Representing Qt3DRender:: QShaderImage:: R16_SNorm
*/
R16_SNorm(36760),
/**
* Representing Qt3DRender:: QShaderImage:: RG16_SNorm
*/
RG16_SNorm(36761),
/**
* Representing Qt3DRender:: QShaderImage:: RGBA16_SNorm
*/
RGBA16_SNorm(36763),
/**
* Representing Qt3DRender:: QShaderImage:: R8U
*/
R8U(33330),
/**
* Representing Qt3DRender:: QShaderImage:: RG8U
*/
RG8U(33336),
/**
* Representing Qt3DRender:: QShaderImage:: RGBA8U
*/
RGBA8U(36220),
/**
* Representing Qt3DRender:: QShaderImage:: R16U
*/
R16U(33332),
/**
* Representing Qt3DRender:: QShaderImage:: RG16U
*/
RG16U(33338),
/**
* Representing Qt3DRender:: QShaderImage:: RGBA16U
*/
RGBA16U(36214),
/**
* Representing Qt3DRender:: QShaderImage:: R32U
*/
R32U(33334),
/**
* Representing Qt3DRender:: QShaderImage:: RG32U
*/
RG32U(33340),
/**
* Representing Qt3DRender:: QShaderImage:: RGBA32U
*/
RGBA32U(36208),
/**
* Representing Qt3DRender:: QShaderImage:: R8I
*/
R8I(33329),
/**
* Representing Qt3DRender:: QShaderImage:: RG8I
*/
RG8I(33335),
/**
* Representing Qt3DRender:: QShaderImage:: RGBA8I
*/
RGBA8I(36238),
/**
* Representing Qt3DRender:: QShaderImage:: R16I
*/
R16I(33331),
/**
* Representing Qt3DRender:: QShaderImage:: RG16I
*/
RG16I(33337),
/**
* Representing Qt3DRender:: QShaderImage:: RGBA16I
*/
RGBA16I(36232),
/**
* Representing Qt3DRender:: QShaderImage:: R32I
*/
R32I(33333),
/**
* Representing Qt3DRender:: QShaderImage:: RG32I
*/
RG32I(33339),
/**
* Representing Qt3DRender:: QShaderImage:: RGBA32I
*/
RGBA32I(36226),
/**
* Representing Qt3DRender:: QShaderImage:: R16F
*/
R16F(33325),
/**
* Representing Qt3DRender:: QShaderImage:: RG16F
*/
RG16F(33327),
/**
* Representing Qt3DRender:: QShaderImage:: RGBA16F
*/
RGBA16F(34842),
/**
* Representing Qt3DRender:: QShaderImage:: R32F
*/
R32F(33326),
/**
* Representing Qt3DRender:: QShaderImage:: RG32F
*/
RG32F(33328),
/**
* Representing Qt3DRender:: QShaderImage:: RGBA32F
*/
RGBA32F(34836),
/**
* Representing Qt3DRender:: QShaderImage:: RG11B10F
*/
RG11B10F(35898),
/**
* Representing Qt3DRender:: QShaderImage:: RGB10A2
*/
RGB10A2(32857),
/**
* Representing Qt3DRender:: QShaderImage:: RGB10A2U
*/
RGB10A2U(36975);
static {
QtJambi_LibraryUtilities.initialize();
}
private ImageFormat(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 ImageFormat resolve(int value) {
switch (value) {
case 0: return NoFormat;
case 1: return Automatic;
case 33321: return R8_UNorm;
case 33323: return RG8_UNorm;
case 32856: return RGBA8_UNorm;
case 33322: return R16_UNorm;
case 33324: return RG16_UNorm;
case 32859: return RGBA16_UNorm;
case 36756: return R8_SNorm;
case 36757: return RG8_SNorm;
case 36759: return RGBA8_SNorm;
case 36760: return R16_SNorm;
case 36761: return RG16_SNorm;
case 36763: return RGBA16_SNorm;
case 33330: return R8U;
case 33336: return RG8U;
case 36220: return RGBA8U;
case 33332: return R16U;
case 33338: return RG16U;
case 36214: return RGBA16U;
case 33334: return R32U;
case 33340: return RG32U;
case 36208: return RGBA32U;
case 33329: return R8I;
case 33335: return RG8I;
case 36238: return RGBA8I;
case 33331: return R16I;
case 33337: return RG16I;
case 36232: return RGBA16I;
case 33333: return R32I;
case 33339: return RG32I;
case 36226: return RGBA32I;
case 33325: return R16F;
case 33327: return RG16F;
case 34842: return RGBA16F;
case 33326: return R32F;
case 33328: return RG32F;
case 34836: return RGBA32F;
case 35898: return RG11B10F;
case 32857: return RGB10A2;
case 36975: return RGB10A2U;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See Qt3DRender::QShaderImage:: accessChanged(Qt3DRender::QShaderImage::Access)
*/
@QtPropertyNotify(name="access")
public final @NonNull Signal1 accessChanged = new Signal1<>();
/**
* See Qt3DRender::QShaderImage:: formatChanged(Qt3DRender::QShaderImage::ImageFormat)
*/
@QtPropertyNotify(name="format")
public final @NonNull Signal1 formatChanged = new Signal1<>();
/**
* See Qt3DRender::QShaderImage:: layerChanged(int)
*/
@QtPropertyNotify(name="layer")
public final @NonNull Signal1 layerChanged = new Signal1<>();
/**
* See Qt3DRender::QShaderImage:: layeredChanged(bool)
*/
@QtPropertyNotify(name="layered")
public final @NonNull Signal1 layeredChanged = new Signal1<>();
/**
* See Qt3DRender::QShaderImage:: mipLevelChanged(int)
*/
@QtPropertyNotify(name="mipLevel")
public final @NonNull Signal1 mipLevelChanged = new Signal1<>();
/**
* See Qt3DRender::QShaderImage:: textureChanged(Qt3DRender::QAbstractTexture*)
*/
@QtPropertyNotify(name="texture")
public final @NonNull Signal1 textureChanged = new Signal1<>();
/**
* See Qt3DRender::QShaderImage:: QShaderImage(Qt3DCore::QNode*)
* @param parent
*/
@SuppressWarnings({"exports"})
public QShaderImage(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QShaderImage instance, io.qt.qt3d.core.QNode parent);
/**
* See Qt3DRender::QShaderImage:: access()const
* @return
*/
@QtPropertyReader(name="access")
@QtUninvokable
public final io.qt.qt3d.render.QShaderImage.@NonNull Access access(){
return io.qt.qt3d.render.QShaderImage.Access.resolve(access_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int access_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QShaderImage:: format()const
* @return
*/
@QtPropertyReader(name="format")
@QtUninvokable
public final io.qt.qt3d.render.QShaderImage.@NonNull ImageFormat format(){
return io.qt.qt3d.render.QShaderImage.ImageFormat.resolve(format_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int format_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QShaderImage:: layer()const
* @return
*/
@QtPropertyReader(name="layer")
@QtUninvokable
public final int layer(){
return layer_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int layer_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QShaderImage:: layered()const
* @return
*/
@QtPropertyReader(name="layered")
@QtUninvokable
public final boolean layered(){
return layered_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean layered_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QShaderImage:: mipLevel()const
* @return
*/
@QtPropertyReader(name="mipLevel")
@QtUninvokable
public final int mipLevel(){
return mipLevel_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int mipLevel_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QShaderImage:: setAccess(Qt3DRender::QShaderImage::Access)
* @param access
*/
@QtPropertyWriter(name="access")
public final void setAccess(io.qt.qt3d.render.QShaderImage.@NonNull Access access){
setAccess_native_Qt3DRender_QShaderImage_Access(QtJambi_LibraryUtilities.internal.nativeId(this), access.value());
}
private native void setAccess_native_Qt3DRender_QShaderImage_Access(long __this__nativeId, int access);
/**
* See Qt3DRender::QShaderImage:: setFormat(Qt3DRender::QShaderImage::ImageFormat)
* @param format
*/
@QtPropertyWriter(name="format")
public final void setFormat(io.qt.qt3d.render.QShaderImage.@NonNull ImageFormat format){
setFormat_native_Qt3DRender_QShaderImage_ImageFormat(QtJambi_LibraryUtilities.internal.nativeId(this), format.value());
}
private native void setFormat_native_Qt3DRender_QShaderImage_ImageFormat(long __this__nativeId, int format);
/**
* See Qt3DRender::QShaderImage:: setLayer(int)
* @param layer
*/
@QtPropertyWriter(name="layer")
public final void setLayer(int layer){
setLayer_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), layer);
}
private native void setLayer_native_int(long __this__nativeId, int layer);
/**
* See Qt3DRender::QShaderImage:: setLayered(bool)
* @param layered
*/
@QtPropertyWriter(name="layered")
public final void setLayered(boolean layered){
setLayered_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), layered);
}
private native void setLayered_native_bool(long __this__nativeId, boolean layered);
/**
* See Qt3DRender::QShaderImage:: setMipLevel(int)
* @param mipLevel
*/
@QtPropertyWriter(name="mipLevel")
public final void setMipLevel(int mipLevel){
setMipLevel_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), mipLevel);
}
private native void setMipLevel_native_int(long __this__nativeId, int mipLevel);
/**
* See Qt3DRender::QShaderImage:: setTexture(Qt3DRender::QAbstractTexture*)
* @param texture
*/
@QtPropertyWriter(name="texture")
public final void setTexture(io.qt.qt3d.render.@Nullable QAbstractTexture texture){
setTexture_native_Qt3DRender_QAbstractTexture_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(texture));
}
private native void setTexture_native_Qt3DRender_QAbstractTexture_ptr(long __this__nativeId, long texture);
/**
* See Qt3DRender::QShaderImage:: texture()const
* @return
*/
@QtPropertyReader(name="texture")
@QtUninvokable
public final io.qt.qt3d.render.@Nullable QAbstractTexture texture(){
return texture_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.qt3d.render.QAbstractTexture texture_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QShaderImage(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QShaderImage(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QShaderImage instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QShaderImage(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QShaderImage() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #access()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.QShaderImage.@NonNull Access getAccess() {
return access();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #format()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.QShaderImage.@NonNull ImageFormat getFormat() {
return format();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #layer()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getLayer() {
return layer();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #layered()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getLayered() {
return layered();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #mipLevel()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getMipLevel() {
return mipLevel();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #texture()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.@Nullable QAbstractTexture getTexture() {
return texture();
}
}