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

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

package io.qt.qt3d.render;

import io.qt.*;


/**
 * 

Class to clear buffers

*

Java wrapper for Qt class Qt3DRender::QClearBuffers

*/ public class QClearBuffers extends io.qt.qt3d.render.QFrameGraphNode { @QtPropertyMember(enabled=false) private Object __rcColorBuffer; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QClearBuffers.class); /** *

Java wrapper for Qt enum Qt3DRender::QClearBuffers::BufferType

* * @see BufferTypeFlags */ public enum BufferType implements QtFlagEnumerator { /** *

Representing Qt3DRender::QClearBuffers::None

*/ None(0), /** *

Representing Qt3DRender::QClearBuffers::ColorBuffer

*/ ColorBuffer(1), /** *

Representing Qt3DRender::QClearBuffers::DepthBuffer

*/ DepthBuffer(2), /** *

Representing Qt3DRender::QClearBuffers::StencilBuffer

*/ StencilBuffer(4), /** *

Representing Qt3DRender::QClearBuffers::DepthStencilBuffer

*/ DepthStencilBuffer(6), /** *

Representing Qt3DRender::QClearBuffers::ColorDepthBuffer

*/ ColorDepthBuffer(3), /** *

Representing Qt3DRender::QClearBuffers::ColorDepthStencilBuffer

*/ ColorDepthStencilBuffer(7), /** *

Representing Qt3DRender::QClearBuffers::AllBuffers

*/ AllBuffers(-1); static { QtJambi_LibraryUtilities.initialize(); } private BufferType(int value) { this.value = value; } /** * {@inheritDoc} */ @Override public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ @Override public @NonNull BufferTypeFlags asFlags() { return new BufferTypeFlags(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull BufferTypeFlags combined(@NonNull BufferType e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull BufferTypeFlags cleared(@NonNull BufferType e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link BufferTypeFlags} from the entries. * @param values entries * @return new flag */ public static @NonNull BufferTypeFlags flags(@Nullable BufferType @NonNull... values) { return new BufferTypeFlags(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull BufferType resolve(int value) { switch (value) { case 0: return None; case 1: return ColorBuffer; case 2: return DepthBuffer; case 4: return StencilBuffer; case 6: return DepthStencilBuffer; case 3: return ColorDepthBuffer; case 7: return ColorDepthStencilBuffer; case -1: return AllBuffers; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link BufferType} */ public static final class BufferTypeFlags extends QFlags implements Comparable { private static final long serialVersionUID = 0xde4c54fa10606669L; static { QtJambi_LibraryUtilities.initialize(); } /** * Creates a new BufferTypeFlags where the flags in args are set. * @param args enum entries */ public BufferTypeFlags(@Nullable BufferType @NonNull... args){ super(args); } /** * Creates a new BufferTypeFlags with given value. * @param value */ public BufferTypeFlags(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new BufferTypeFlags */ @Override public final @NonNull BufferTypeFlags combined(@StrictNonNull BufferType e){ return new BufferTypeFlags(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ @Override public final @NonNull BufferTypeFlags setFlag(@Nullable BufferType e){ return setFlag(e, true); } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ @Override public final @NonNull BufferTypeFlags setFlag(@Nullable BufferType e, boolean on){ if (on) { setValue(value() | e.value()); }else { setValue(value() & ~e.value()); } return this; } /** * Returns an array of flag objects represented by this BufferTypeFlags. * @return array of enum entries */ @Override public final @NonNull BufferType @NonNull[] flags(){ return super.flags(BufferType.values()); } /** * {@inheritDoc} */ @Override public final @NonNull BufferTypeFlags clone(){ return new BufferTypeFlags(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(@StrictNonNull BufferTypeFlags other){ return Integer.compare(value(), other.value()); } } /** *

See Qt3DRender::QClearBuffers::buffersChanged(Qt3DRender::QClearBuffers::BufferType)

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

See Qt3DRender::QClearBuffers::clearColorChanged(QColor)

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

See Qt3DRender::QClearBuffers::clearDepthValueChanged(float)

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

See Qt3DRender::QClearBuffers::clearStencilValueChanged(int)

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

See Qt3DRender::QClearBuffers::colorBufferChanged(Qt3DRender::QRenderTargetOutput*)

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

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

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

See Qt3DRender::QClearBuffers::buffers()const

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

See Qt3DRender::QClearBuffers::clearColor()const

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

See Qt3DRender::QClearBuffers::clearDepthValue()const

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

See Qt3DRender::QClearBuffers::clearStencilValue()const

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

See Qt3DRender::QClearBuffers::colorBuffer()const

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

See Qt3DRender::QClearBuffers::setBuffers(Qt3DRender::QClearBuffers::BufferType)

* @param buffers */ @QtPropertyWriter(name="buffers") public final void setBuffers(io.qt.qt3d.render.QClearBuffers.@NonNull BufferType buffers){ setBuffers_native_Qt3DRender_QClearBuffers_BufferType(QtJambi_LibraryUtilities.internal.nativeId(this), buffers.value()); } private native void setBuffers_native_Qt3DRender_QClearBuffers_BufferType(long __this__nativeId, int buffers); /** *

See Qt3DRender::QClearBuffers::setClearColor(QColor)

* @param color */ @QtPropertyWriter(name="clearColor") public final void setClearColor(io.qt.gui.@NonNull QColor color){ setClearColor_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(color)); } private native void setClearColor_native_cref_QColor(long __this__nativeId, long color); /** *

See Qt3DRender::QClearBuffers::setClearDepthValue(float)

* @param clearDepthValue */ @QtPropertyWriter(name="clearDepthValue") public final void setClearDepthValue(float clearDepthValue){ setClearDepthValue_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), clearDepthValue); } private native void setClearDepthValue_native_float(long __this__nativeId, float clearDepthValue); /** *

See Qt3DRender::QClearBuffers::setClearStencilValue(int)

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

See Qt3DRender::QClearBuffers::setColorBuffer(Qt3DRender::QRenderTargetOutput*)

* @param buffer */ @QtPropertyWriter(name="colorBuffer") public final void setColorBuffer(io.qt.qt3d.render.@Nullable QRenderTargetOutput buffer){ InternalAccess.NativeIdInfo __buffer__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(buffer); setColorBuffer_native_Qt3DRender_QRenderTargetOutput_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __buffer__NativeIdInfo.nativeId()); if (__buffer__NativeIdInfo.needsReferenceCounting()) { __rcColorBuffer = buffer; }else{ __rcColorBuffer = null; } } private native void setColorBuffer_native_Qt3DRender_QRenderTargetOutput_ptr(long __this__nativeId, long buffer); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QClearBuffers(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QClearBuffers(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QClearBuffers instance, QDeclarativeConstructor constructor); /** *

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

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

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.render.QClearBuffers.@NonNull BufferType getBuffers() { return buffers(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.gui.@NonNull QColor getClearColor() { return clearColor(); } /** * @hidden *

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

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

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

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

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.render.@Nullable QRenderTargetOutput getColorBuffer() { return colorBuffer(); } /** *

Overloaded function for {@link #setClearColor(io.qt.gui.QColor)}.

*/ public final void setClearColor(io.qt.core.Qt.@NonNull GlobalColor color) { setClearColor(new io.qt.gui.QColor(color)); } /** *

Overloaded function for {@link #setClearColor(io.qt.gui.QColor)}.

*/ public final void setClearColor(io.qt.gui.@NonNull QRgba64 color) { setClearColor(new io.qt.gui.QColor(color)); } /** *

Overloaded function for {@link #setClearColor(io.qt.gui.QColor)}.

*/ public final void setClearColor(java.lang.@NonNull String color) { setClearColor(new io.qt.gui.QColor(color)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy