io.qt.qt3d.extras.QDiffuseMapMaterial Maven / Gradle / Ivy
Show all versions of qtjambi-qt3dextras Show documentation
package io.qt.qt3d.extras;
import io.qt.*;
/**
* Java wrapper for Qt class Qt3DExtras::QDiffuseMapMaterial
*/
public class QDiffuseMapMaterial extends io.qt.qt3d.render.QMaterial
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcDiffuse;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QDiffuseMapMaterial.class);
/**
* See Qt3DExtras::QDiffuseMapMaterial:: ambientChanged(QColor)
*/
@QtPropertyNotify(name="ambient")
public final @NonNull Signal1 ambientChanged = new Signal1<>();
/**
* See Qt3DExtras::QDiffuseMapMaterial:: diffuseChanged(Qt3DRender::QAbstractTexture*)
*/
@SuppressWarnings({"exports"})
@QtPropertyNotify(name="diffuse")
public final @NonNull Signal1 diffuseChanged = new Signal1<>();
/**
* See Qt3DExtras::QDiffuseMapMaterial:: shininessChanged(float)
*/
@QtPropertyNotify(name="shininess")
public final @NonNull Signal1 shininessChanged = new Signal1<>();
/**
* See Qt3DExtras::QDiffuseMapMaterial:: specularChanged(QColor)
*/
@QtPropertyNotify(name="specular")
public final @NonNull Signal1 specularChanged = new Signal1<>();
/**
* See Qt3DExtras::QDiffuseMapMaterial:: textureScaleChanged(float)
*/
@QtPropertyNotify(name="textureScale")
public final @NonNull Signal1 textureScaleChanged = new Signal1<>();
/**
* See Qt3DExtras::QDiffuseMapMaterial:: QDiffuseMapMaterial(Qt3DCore::QNode*)
* @param parent
*/
@SuppressWarnings({"exports"})
public QDiffuseMapMaterial(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QDiffuseMapMaterial instance, io.qt.qt3d.core.QNode parent);
/**
* See Qt3DExtras::QDiffuseMapMaterial:: ambient()const
* @return
*/
@QtPropertyReader(name="ambient")
@QtUninvokable
public final io.qt.gui.@NonNull QColor ambient(){
return ambient_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QColor ambient_native_constfct(long __this__nativeId);
/**
* See Qt3DExtras::QDiffuseMapMaterial:: diffuse()const
* @return
*/
@QtPropertyReader(name="diffuse")
@SuppressWarnings({"exports"})
@QtUninvokable
public final io.qt.qt3d.render.@Nullable QAbstractTexture diffuse(){
return diffuse_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.qt3d.render.QAbstractTexture diffuse_native_constfct(long __this__nativeId);
/**
* See Qt3DExtras::QDiffuseMapMaterial:: setAmbient(QColor)
* @param color
*/
@QtPropertyWriter(name="ambient")
public final void setAmbient(io.qt.gui.@NonNull QColor color){
setAmbient_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(color));
}
private native void setAmbient_native_cref_QColor(long __this__nativeId, long color);
/**
* See Qt3DExtras::QDiffuseMapMaterial:: setDiffuse(Qt3DRender::QAbstractTexture*)
* @param diffuse
*/
@QtPropertyWriter(name="diffuse")
@SuppressWarnings({"exports"})
public final void setDiffuse(io.qt.qt3d.render.@Nullable QAbstractTexture diffuse){
InternalAccess.NativeIdInfo __diffuse__NativeIdInfo = QtJambi_LibraryUtilities.internal.checkedNativeIdInfo(diffuse);
setDiffuse_native_Qt3DRender_QAbstractTexture_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), __diffuse__NativeIdInfo.nativeId());
if (__diffuse__NativeIdInfo.needsReferenceCounting()) {
__rcDiffuse = diffuse;
}else{
__rcDiffuse = null;
}
}
private native void setDiffuse_native_Qt3DRender_QAbstractTexture_ptr(long __this__nativeId, long diffuse);
/**
* See Qt3DExtras::QDiffuseMapMaterial:: setShininess(float)
* @param shininess
*/
@QtPropertyWriter(name="shininess")
public final void setShininess(float shininess){
setShininess_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), shininess);
}
private native void setShininess_native_float(long __this__nativeId, float shininess);
/**
* See Qt3DExtras::QDiffuseMapMaterial:: setSpecular(QColor)
* @param specular
*/
@QtPropertyWriter(name="specular")
public final void setSpecular(io.qt.gui.@NonNull QColor specular){
setSpecular_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(specular));
}
private native void setSpecular_native_cref_QColor(long __this__nativeId, long specular);
/**
* See Qt3DExtras::QDiffuseMapMaterial:: setTextureScale(float)
* @param textureScale
*/
@QtPropertyWriter(name="textureScale")
public final void setTextureScale(float textureScale){
setTextureScale_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), textureScale);
}
private native void setTextureScale_native_float(long __this__nativeId, float textureScale);
/**
* See Qt3DExtras::QDiffuseMapMaterial:: shininess()const
* @return
*/
@QtPropertyReader(name="shininess")
@QtUninvokable
public final float shininess(){
return shininess_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float shininess_native_constfct(long __this__nativeId);
/**
* See Qt3DExtras::QDiffuseMapMaterial:: specular()const
* @return
*/
@QtPropertyReader(name="specular")
@QtUninvokable
public final io.qt.gui.@NonNull QColor specular(){
return specular_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QColor specular_native_constfct(long __this__nativeId);
/**
* See Qt3DExtras::QDiffuseMapMaterial:: textureScale()const
* @return
*/
@QtPropertyReader(name="textureScale")
@QtUninvokable
public final float textureScale(){
return textureScale_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float textureScale_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QDiffuseMapMaterial(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QDiffuseMapMaterial(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QDiffuseMapMaterial instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QDiffuseMapMaterial(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QDiffuseMapMaterial() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #ambient()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QColor getAmbient() {
return ambient();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #diffuse()} instead.
*/
@QtPropertyReader(enabled=false)
@SuppressWarnings({"exports"})
@QtUninvokable
public final io.qt.qt3d.render.@Nullable QAbstractTexture getDiffuse() {
return diffuse();
}
/**
* Overloaded function for {@link #setAmbient(io.qt.gui.QColor)}.
*/
public final void setAmbient(io.qt.core.Qt.@NonNull GlobalColor color) {
setAmbient(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setAmbient(io.qt.gui.QColor)}.
*/
public final void setAmbient(io.qt.gui.@NonNull QRgba64 color) {
setAmbient(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setAmbient(io.qt.gui.QColor)}.
*/
public final void setAmbient(java.lang.@NonNull String color) {
setAmbient(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setSpecular(io.qt.gui.QColor)}.
*/
public final void setSpecular(io.qt.core.Qt.@NonNull GlobalColor specular) {
setSpecular(new io.qt.gui.QColor(specular));
}
/**
* Overloaded function for {@link #setSpecular(io.qt.gui.QColor)}.
*/
public final void setSpecular(io.qt.gui.@NonNull QRgba64 specular) {
setSpecular(new io.qt.gui.QColor(specular));
}
/**
* Overloaded function for {@link #setSpecular(io.qt.gui.QColor)}.
*/
public final void setSpecular(java.lang.@NonNull String specular) {
setSpecular(new io.qt.gui.QColor(specular));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #shininess()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final float getShininess() {
return shininess();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #specular()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QColor getSpecular() {
return specular();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #textureScale()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final float getTextureScale() {
return textureScale();
}
}