io.qt.qt3d.render.QSpotLight Maven / Gradle / Ivy
package io.qt.qt3d.render;
import io.qt.*;
/**
* Encapsulate a Spot Light object in a Qt 3D scene
* Java wrapper for Qt class Qt3DRender::QSpotLight
*/
public class QSpotLight extends io.qt.qt3d.render.QAbstractLight
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSpotLight.class);
/**
* See Qt3DRender::QSpotLight:: constantAttenuationChanged(float)
*/
@QtPropertyNotify(name="constantAttenuation")
public final @NonNull Signal1 constantAttenuationChanged = new Signal1<>();
/**
* See Qt3DRender::QSpotLight:: cutOffAngleChanged(float)
*/
@QtPropertyNotify(name="cutOffAngle")
public final @NonNull Signal1 cutOffAngleChanged = new Signal1<>();
/**
* See Qt3DRender::QSpotLight:: linearAttenuationChanged(float)
*/
@QtPropertyNotify(name="linearAttenuation")
public final @NonNull Signal1 linearAttenuationChanged = new Signal1<>();
/**
* See Qt3DRender::QSpotLight:: localDirectionChanged(QVector3D)
*/
@QtPropertyNotify(name="localDirection")
public final @NonNull Signal1 localDirectionChanged = new Signal1<>();
/**
* See Qt3DRender::QSpotLight:: quadraticAttenuationChanged(float)
*/
@QtPropertyNotify(name="quadraticAttenuation")
public final @NonNull Signal1 quadraticAttenuationChanged = new Signal1<>();
/**
* See Qt3DRender::QSpotLight:: QSpotLight(Qt3DCore::QNode*)
* @param parent
*/
@SuppressWarnings({"exports"})
public QSpotLight(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QSpotLight instance, io.qt.qt3d.core.QNode parent);
/**
* See Qt3DRender::QSpotLight:: constantAttenuation()const
* @return
*/
@QtPropertyReader(name="constantAttenuation")
@QtUninvokable
public final float constantAttenuation(){
return constantAttenuation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float constantAttenuation_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QSpotLight:: cutOffAngle()const
* @return
*/
@QtPropertyReader(name="cutOffAngle")
@QtUninvokable
public final float cutOffAngle(){
return cutOffAngle_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float cutOffAngle_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QSpotLight:: linearAttenuation()const
* @return
*/
@QtPropertyReader(name="linearAttenuation")
@QtUninvokable
public final float linearAttenuation(){
return linearAttenuation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float linearAttenuation_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QSpotLight:: localDirection()const
* @return
*/
@QtPropertyReader(name="localDirection")
@QtUninvokable
public final io.qt.gui.@NonNull QVector3D localDirection(){
return localDirection_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QVector3D localDirection_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QSpotLight:: quadraticAttenuation()const
* @return
*/
@QtPropertyReader(name="quadraticAttenuation")
@QtUninvokable
public final float quadraticAttenuation(){
return quadraticAttenuation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float quadraticAttenuation_native_constfct(long __this__nativeId);
/**
* See Qt3DRender::QSpotLight:: setConstantAttenuation(float)
* @param value
*/
@QtPropertyWriter(name="constantAttenuation")
public final void setConstantAttenuation(float value){
setConstantAttenuation_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
private native void setConstantAttenuation_native_float(long __this__nativeId, float value);
/**
* See Qt3DRender::QSpotLight:: setCutOffAngle(float)
* @param cutOffAngle
*/
@QtPropertyWriter(name="cutOffAngle")
public final void setCutOffAngle(float cutOffAngle){
setCutOffAngle_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), cutOffAngle);
}
private native void setCutOffAngle_native_float(long __this__nativeId, float cutOffAngle);
/**
* See Qt3DRender::QSpotLight:: setLinearAttenuation(float)
* @param value
*/
@QtPropertyWriter(name="linearAttenuation")
public final void setLinearAttenuation(float value){
setLinearAttenuation_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
private native void setLinearAttenuation_native_float(long __this__nativeId, float value);
/**
* See Qt3DRender::QSpotLight:: setLocalDirection(QVector3D)
* @param localDirection
*/
@QtPropertyWriter(name="localDirection")
public final void setLocalDirection(io.qt.gui.@NonNull QVector3D localDirection){
setLocalDirection_native_cref_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(localDirection));
}
private native void setLocalDirection_native_cref_QVector3D(long __this__nativeId, long localDirection);
/**
* See Qt3DRender::QSpotLight:: setQuadraticAttenuation(float)
* @param value
*/
@QtPropertyWriter(name="quadraticAttenuation")
public final void setQuadraticAttenuation(float value){
setQuadraticAttenuation_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
private native void setQuadraticAttenuation_native_float(long __this__nativeId, float value);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QSpotLight(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QSpotLight(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QSpotLight instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QSpotLight(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QSpotLight() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #constantAttenuation()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final float getConstantAttenuation() {
return constantAttenuation();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #cutOffAngle()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final float getCutOffAngle() {
return cutOffAngle();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #linearAttenuation()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final float getLinearAttenuation() {
return linearAttenuation();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #localDirection()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QVector3D getLocalDirection() {
return localDirection();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #quadraticAttenuation()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final float getQuadraticAttenuation() {
return quadraticAttenuation();
}
}