io.qt.qt3d.render.QRenderSettings Maven / Gradle / Ivy
package io.qt.qt3d.render;
import io.qt.*;
/**
* Holds settings related to rendering process and host the active FrameGraph
* Java wrapper for Qt class Qt3DRender::QRenderSettings
*/
public class QRenderSettings 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(QRenderSettings.class);
/**
* Java wrapper for Qt enum Qt3DRender::QRenderSettings::RenderPolicy
*/
public enum RenderPolicy implements QtEnumerator {
/**
* Representing Qt3DRender:: QRenderSettings:: OnDemand
*/
OnDemand(0),
/**
* Representing Qt3DRender:: QRenderSettings:: Always
*/
Always(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private RenderPolicy(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 RenderPolicy resolve(int value) {
switch (value) {
case 0: return OnDemand;
case 1: return Always;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See Qt3DRender::QRenderSettings:: activeFrameGraphChanged(Qt3DRender::QFrameGraphNode*)
*/
@QtPropertyNotify(name="activeFrameGraph")
public final @NonNull Signal1 activeFrameGraphChanged = new Signal1<>();
/**
* See Qt3DRender::QRenderSettings:: renderPolicyChanged(Qt3DRender::QRenderSettings::RenderPolicy)
*/
@QtPropertyNotify(name="renderPolicy")
public final @NonNull Signal1 renderPolicyChanged = new Signal1<>();
/**
* See Qt3DRender::QRenderSettings:: QRenderSettings(Qt3DCore::QNode*)
* @param parent
*/
@SuppressWarnings({"exports"})
public QRenderSettings(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QRenderSettings instance, io.qt.qt3d.core.QNode parent);
/**
* See Qt3DRender::QRenderSettings:: activeFrameGraph()const
* @return
*/
@QtPropertyReader(name="activeFrameGraph")
@QtUninvokable
public final io.qt.qt3d.render.@Nullable QFrameGraphNode activeFrameGraph(){
return activeFrameGraph_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.qt3d.render.QFrameGraphNode activeFrameGraph_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QRenderSettings:: pickingSettings()
* @return
*/
@QtPropertyReader(name="pickingSettings")
@QtPropertyConstant
@QtUninvokable
public final io.qt.qt3d.render.@Nullable QPickingSettings pickingSettings(){
return pickingSettings_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.qt3d.render.QPickingSettings pickingSettings_native(long __this__nativeId);
/**
* See Qt3DRender::QRenderSettings:: renderCapabilities()
* @return
*/
@QtPropertyReader(name="renderCapabilities")
@QtPropertyConstant
@QtUninvokable
public final io.qt.qt3d.render.@Nullable QRenderCapabilities renderCapabilities(){
return renderCapabilities_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.qt3d.render.QRenderCapabilities renderCapabilities_native(long __this__nativeId);
/**
* See Qt3DRender::QRenderSettings:: renderPolicy()const
* @return
*/
@QtPropertyReader(name="renderPolicy")
@QtUninvokable
public final io.qt.qt3d.render.QRenderSettings.@NonNull RenderPolicy renderPolicy(){
return io.qt.qt3d.render.QRenderSettings.RenderPolicy.resolve(renderPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int renderPolicy_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QRenderSettings:: setActiveFrameGraph(Qt3DRender::QFrameGraphNode*)
* @param activeFrameGraph
*/
@QtPropertyWriter(name="activeFrameGraph")
public final void setActiveFrameGraph(io.qt.qt3d.render.@Nullable QFrameGraphNode activeFrameGraph){
setActiveFrameGraph_native_Qt3DRender_QFrameGraphNode_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(activeFrameGraph));
}
private native void setActiveFrameGraph_native_Qt3DRender_QFrameGraphNode_ptr(long __this__nativeId, long activeFrameGraph);
/**
* See Qt3DRender::QRenderSettings:: setRenderPolicy(Qt3DRender::QRenderSettings::RenderPolicy)
* @param renderPolicy
*/
@QtPropertyWriter(name="renderPolicy")
public final void setRenderPolicy(io.qt.qt3d.render.QRenderSettings.@NonNull RenderPolicy renderPolicy){
setRenderPolicy_native_Qt3DRender_QRenderSettings_RenderPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), renderPolicy.value());
}
private native void setRenderPolicy_native_Qt3DRender_QRenderSettings_RenderPolicy(long __this__nativeId, int renderPolicy);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QRenderSettings(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QRenderSettings(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QRenderSettings instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QRenderSettings(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QRenderSettings() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #activeFrameGraph()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.@Nullable QFrameGraphNode getActiveFrameGraph() {
return activeFrameGraph();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #pickingSettings()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.@Nullable QPickingSettings getPickingSettings() {
return pickingSettings();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #renderCapabilities()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.@Nullable QRenderCapabilities getRenderCapabilities() {
return renderCapabilities();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #renderPolicy()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.qt3d.render.QRenderSettings.@NonNull RenderPolicy getRenderPolicy() {
return renderPolicy();
}
}