io.qt.qt3d.render.QMesh Maven / Gradle / Ivy
package io.qt.qt3d.render;
import io.qt.*;
/**
* A custom mesh loader
* Java wrapper for Qt class Qt3DRender::QMesh
*/
public class QMesh extends io.qt.qt3d.render.QGeometryRenderer
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QMesh.class);
/**
* Java wrapper for Qt enum Qt3DRender::QMesh::Status
*/
public enum Status implements QtEnumerator {
/**
* Representing Qt3DRender:: QMesh:: None
*/
None(0),
/**
* Representing Qt3DRender:: QMesh:: Loading
*/
Loading(1),
/**
* Representing Qt3DRender:: QMesh:: Ready
*/
Ready(2),
/**
* Representing Qt3DRender:: QMesh:: 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::QMesh:: meshNameChanged(QString)
*/
@QtPropertyNotify(name="meshName")
public final @NonNull Signal1 meshNameChanged = new Signal1<>();
/**
* See Qt3DRender::QMesh:: sourceChanged(QUrl)
*/
@QtPropertyNotify(name="source")
public final @NonNull Signal1 sourceChanged = new Signal1<>();
/**
* See Qt3DRender::QMesh:: statusChanged(Qt3DRender::QMesh::Status)
*/
@QtPropertyNotify(name="status")
public final @NonNull Signal1 statusChanged = new Signal1<>();
/**
* See Qt3DRender::QMesh:: QMesh(Qt3DCore::QNode*)
* @param parent
*/
@SuppressWarnings({"exports"})
public QMesh(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QMesh instance, io.qt.qt3d.core.QNode parent);
/**
* See Qt3DRender::QMesh:: meshName()const
* @return
*/
@QtPropertyReader(name="meshName")
@QtUninvokable
public final java.lang.@NonNull String meshName(){
return meshName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String meshName_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QMesh:: setMeshName(QString)
* @param meshName
*/
@QtPropertyWriter(name="meshName")
public final void setMeshName(java.lang.@NonNull String meshName){
setMeshName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), meshName);
}
private native void setMeshName_native_cref_QString(long __this__nativeId, java.lang.String meshName);
/**
* See Qt3DRender::QMesh:: 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::QMesh:: 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::QMesh:: status()const
* @return
*/
@QtPropertyReader(name="status")
@QtUninvokable
public final io.qt.qt3d.render.QMesh.@NonNull Status status(){
return io.qt.qt3d.render.QMesh.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 QMesh(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QMesh(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QMesh instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QMesh(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QMesh() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #meshName()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getMeshName() {
return meshName();
}
/**
* 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.QMesh.@NonNull Status getStatus() {
return status();
}
}