io.qt.qt3d.render.QComputeCommand Maven / Gradle / Ivy
package io.qt.qt3d.render;
import io.qt.*;
/**
* QComponent to issue work for the compute shader on GPU
* Java wrapper for Qt class Qt3DRender::QComputeCommand
*/
public class QComputeCommand 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(QComputeCommand.class);
/**
* Java wrapper for Qt enum Qt3DRender::QComputeCommand::RunType
*/
public enum RunType implements QtEnumerator {
/**
* Representing Qt3DRender:: QComputeCommand:: Continuous
*/
Continuous(0),
/**
* Representing Qt3DRender:: QComputeCommand:: Manual
*/
Manual(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private RunType(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 RunType resolve(int value) {
switch (value) {
case 0: return Continuous;
case 1: return Manual;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See Qt3DRender::QComputeCommand:: runTypeChanged()
*/
@QtPropertyNotify(name="runType")
public final @NonNull Signal0 runTypeChanged = new Signal0();
/**
* See Qt3DRender::QComputeCommand:: workGroupXChanged()
*/
@QtPropertyNotify(name="workGroupX")
public final @NonNull Signal0 workGroupXChanged = new Signal0();
/**
* See Qt3DRender::QComputeCommand:: workGroupYChanged()
*/
@QtPropertyNotify(name="workGroupY")
public final @NonNull Signal0 workGroupYChanged = new Signal0();
/**
* See Qt3DRender::QComputeCommand:: workGroupZChanged()
*/
@QtPropertyNotify(name="workGroupZ")
public final @NonNull Signal0 workGroupZChanged = new Signal0();
/**
* See Qt3DRender::QComputeCommand:: QComputeCommand(Qt3DCore::QNode*)
* @param parent
*/
@SuppressWarnings({"exports"})
public QComputeCommand(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QComputeCommand instance, io.qt.qt3d.core.QNode parent);
/**
* See Qt3DRender::QComputeCommand:: runType()const
* @return
*/
@QtPropertyReader(name="runType")
@QtUninvokable
public final io.qt.qt3d.render.QComputeCommand.@NonNull RunType runType(){
return io.qt.qt3d.render.QComputeCommand.RunType.resolve(runType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int runType_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QComputeCommand:: setRunType(Qt3DRender::QComputeCommand::RunType)
* @param runType
*/
@QtPropertyWriter(name="runType")
public final void setRunType(io.qt.qt3d.render.QComputeCommand.@NonNull RunType runType){
setRunType_native_Qt3DRender_QComputeCommand_RunType(QtJambi_LibraryUtilities.internal.nativeId(this), runType.value());
}
private native void setRunType_native_Qt3DRender_QComputeCommand_RunType(long __this__nativeId, int runType);
/**
* See Qt3DRender::QComputeCommand:: setWorkGroupX(int)
* @param workGroupX
*/
@QtPropertyWriter(name="workGroupX")
public final void setWorkGroupX(int workGroupX){
setWorkGroupX_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), workGroupX);
}
private native void setWorkGroupX_native_int(long __this__nativeId, int workGroupX);
/**
* See Qt3DRender::QComputeCommand:: setWorkGroupY(int)
* @param workGroupY
*/
@QtPropertyWriter(name="workGroupY")
public final void setWorkGroupY(int workGroupY){
setWorkGroupY_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), workGroupY);
}
private native void setWorkGroupY_native_int(long __this__nativeId, int workGroupY);
/**
* See Qt3DRender::QComputeCommand:: setWorkGroupZ(int)
* @param workGroupZ
*/
@QtPropertyWriter(name="workGroupZ")
public final void setWorkGroupZ(int workGroupZ){
setWorkGroupZ_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), workGroupZ);
}
private native void setWorkGroupZ_native_int(long __this__nativeId, int workGroupZ);
/**
* See Qt3DRender::QComputeCommand:: trigger(int)
* @param frameCount
*/
public final void trigger(int frameCount){
trigger_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), frameCount);
}
private native void trigger_native_int(long __this__nativeId, int frameCount);
/**
* See Qt3DRender::QComputeCommand:: trigger(int, int, int, int)
* @param workGroupX
* @param workGroupY
* @param workGroupZ
* @param frameCount
*/
public final void trigger(int workGroupX, int workGroupY, int workGroupZ, int frameCount){
trigger_native_int_int_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), workGroupX, workGroupY, workGroupZ, frameCount);
}
private native void trigger_native_int_int_int_int(long __this__nativeId, int workGroupX, int workGroupY, int workGroupZ, int frameCount);
/**
* See Qt3DRender::QComputeCommand:: workGroupX()const
* @return
*/
@QtPropertyReader(name="workGroupX")
@QtUninvokable
public final int workGroupX(){
return workGroupX_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int workGroupX_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QComputeCommand:: workGroupY()const
* @return
*/
@QtPropertyReader(name="workGroupY")
@QtUninvokable
public final int workGroupY(){
return workGroupY_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int workGroupY_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QComputeCommand:: workGroupZ()const
* @return
*/
@QtPropertyReader(name="workGroupZ")
@QtUninvokable
public final int workGroupZ(){
return workGroupZ_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int workGroupZ_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QComputeCommand(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QComputeCommand(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QComputeCommand instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QComputeCommand(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QComputeCommand() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #runType()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.QComputeCommand.@NonNull RunType getRunType() {
return runType();
}
/**
* Overloaded function for {@link #trigger(int)}
* with frameCount = 1
.
*/
public final void trigger() {
trigger((int)1);
}
/**
* Overloaded function for {@link #trigger(int, int, int, int)}
* with frameCount = 1
.
*/
public final void trigger(int workGroupX, int workGroupY, int workGroupZ) {
trigger(workGroupX, workGroupY, workGroupZ, (int)1);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #workGroupX()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getWorkGroupX() {
return workGroupX();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #workGroupY()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getWorkGroupY() {
return workGroupY();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #workGroupZ()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getWorkGroupZ() {
return workGroupZ();
}
}