All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.qt3d.render.QPickEvent Maven / Gradle / Ivy

The newest version!
package io.qt.qt3d.render;

import io.qt.*;


/**
 * 

Holds information when an object is picked

*

Java wrapper for Qt class Qt3DRender::QPickEvent

*/ public class QPickEvent extends io.qt.core.QObject { 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(QPickEvent.class); /** *

Java wrapper for Qt enum Qt3DRender::QPickEvent::Buttons

*/ public enum Buttons implements QtEnumerator { /** *

Representing Qt3DRender::QPickEvent::LeftButton

*/ LeftButton(1), /** *

Representing Qt3DRender::QPickEvent::RightButton

*/ RightButton(2), /** *

Representing Qt3DRender::QPickEvent::MiddleButton

*/ MiddleButton(4), /** *

Representing Qt3DRender::QPickEvent::BackButton

*/ BackButton(8), /** *

Representing Qt3DRender::QPickEvent::NoButton

*/ NoButton(0); static { QtJambi_LibraryUtilities.initialize(); } private Buttons(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 Buttons resolve(int value) { switch (value) { case 1: return LeftButton; case 2: return RightButton; case 4: return MiddleButton; case 8: return BackButton; case 0: return NoButton; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum Qt3DRender::QPickEvent::Modifiers

*/ public enum Modifiers implements QtEnumerator { /** *

Representing Qt3DRender::QPickEvent::NoModifier

*/ NoModifier(0), /** *

Representing Qt3DRender::QPickEvent::ShiftModifier

*/ ShiftModifier(33554432), /** *

Representing Qt3DRender::QPickEvent::ControlModifier

*/ ControlModifier(67108864), /** *

Representing Qt3DRender::QPickEvent::AltModifier

*/ AltModifier(134217728), /** *

Representing Qt3DRender::QPickEvent::MetaModifier

*/ MetaModifier(268435456), /** *

Representing Qt3DRender::QPickEvent::KeypadModifier

*/ KeypadModifier(536870912); static { QtJambi_LibraryUtilities.initialize(); } private Modifiers(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 Modifiers resolve(int value) { switch (value) { case 0: return NoModifier; case 33554432: return ShiftModifier; case 67108864: return ControlModifier; case 134217728: return AltModifier; case 268435456: return MetaModifier; case 536870912: return KeypadModifier; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See Qt3DRender::QPickEvent::acceptedChanged(bool)

*/ @QtPropertyNotify(name="accepted") public final @NonNull Signal1 acceptedChanged = new Signal1<>(); /** *

See Qt3DRender::QPickEvent::QPickEvent()

*/ public QPickEvent(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QPickEvent instance); /** *

See Qt3DRender::QPickEvent::QPickEvent(QPointF,QVector3D,QVector3D,float)

* @param position * @param worldIntersection * @param localIntersection * @param distance */ public QPickEvent(io.qt.core.@NonNull QPointF position, io.qt.gui.@NonNull QVector3D worldIntersection, io.qt.gui.@NonNull QVector3D localIntersection, float distance){ super((QPrivateConstructor)null); initialize_native(this, position, worldIntersection, localIntersection, distance); } private native static void initialize_native(QPickEvent instance, io.qt.core.QPointF position, io.qt.gui.QVector3D worldIntersection, io.qt.gui.QVector3D localIntersection, float distance); /** *

See Qt3DRender::QPickEvent::QPickEvent(QPointF,QVector3D,QVector3D,float,Qt3DRender::QPickEvent::Buttons,int,int)

* @param position * @param worldIntersection * @param localIntersection * @param distance * @param button * @param buttons * @param modifiers */ public QPickEvent(io.qt.core.@NonNull QPointF position, io.qt.gui.@NonNull QVector3D worldIntersection, io.qt.gui.@NonNull QVector3D localIntersection, float distance, io.qt.qt3d.render.QPickEvent.@NonNull Buttons button, int buttons, int modifiers){ super((QPrivateConstructor)null); initialize_native(this, position, worldIntersection, localIntersection, distance, button, buttons, modifiers); } private native static void initialize_native(QPickEvent instance, io.qt.core.QPointF position, io.qt.gui.QVector3D worldIntersection, io.qt.gui.QVector3D localIntersection, float distance, io.qt.qt3d.render.QPickEvent.Buttons button, int buttons, int modifiers); /** *

QPickEvent::button Returns mouse button that caused the event

*

See Qt3DRender::QPickEvent::button()const

* @return */ @QtPropertyReader(name="button") @QtPropertyConstant @QtUninvokable public final io.qt.qt3d.render.QPickEvent.@NonNull Buttons button(){ return io.qt.qt3d.render.QPickEvent.Buttons.resolve(button_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int button_native_constfct(long __this__nativeId); /** *

QPickEvent::buttons Returns bitfield to be used to check for mouse buttons that may be accompanying the pick event

*

See Qt3DRender::QPickEvent::buttons()const

* @return */ @QtPropertyReader(name="buttons") @QtPropertyConstant @QtUninvokable public final int buttons(){ return buttons_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int buttons_native_constfct(long __this__nativeId); /** *

QPickEvent::distance Returns distance from camera to pick point

*

See Qt3DRender::QPickEvent::distance()const

* @return */ @QtPropertyReader(name="distance") @QtPropertyConstant @QtUninvokable public final float distance(){ return distance_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float distance_native_constfct(long __this__nativeId); /** *

See Qt3DRender::QPickEvent::entity()const

* @return */ @QtPropertyReader(name="entity") @QtPropertyConstant @SuppressWarnings({"exports"}) @QtUninvokable public final io.qt.qt3d.core.@Nullable QEntity entity(){ return entity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.qt3d.core.QEntity entity_native_constfct(long __this__nativeId); /** *

QPickEvent::isAccepted Returns true if the event has been accepted

*

See Qt3DRender::QPickEvent::isAccepted()const

* @return */ @QtPropertyReader(name="accepted") @QtUninvokable public final boolean isAccepted(){ return isAccepted_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isAccepted_native_constfct(long __this__nativeId); /** *

QPickEvent::localIntersection Returns coordinates of the hit in the local coordinate system of the picked entity

*

See Qt3DRender::QPickEvent::localIntersection()const

* @return */ @QtPropertyReader(name="localIntersection") @QtPropertyConstant @QtUninvokable public final io.qt.gui.@NonNull QVector3D localIntersection(){ return localIntersection_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QVector3D localIntersection_native_constfct(long __this__nativeId); /** *

QPickEvent::modifiers Returns bitfield to be used to check for keyboard modifiers that may be accompanying the pick event

*

See Qt3DRender::QPickEvent::modifiers()const

* @return */ @QtPropertyReader(name="modifiers") @QtPropertyConstant @QtUninvokable public final int modifiers(){ return modifiers_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int modifiers_native_constfct(long __this__nativeId); /** *

QPickEvent::position Returns mouse pointer coordinate of the pick query

*

See Qt3DRender::QPickEvent::position()const

* @return */ @QtPropertyReader(name="position") @QtPropertyConstant @QtUninvokable public final io.qt.core.@NonNull QPointF position(){ return position_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QPointF position_native_constfct(long __this__nativeId); /** *

QPickEvent::setAccepted set if the event has been accepted to accepted

*

See Qt3DRender::QPickEvent::setAccepted(bool)

* @param accepted */ @QtPropertyWriter(name="accepted") public final void setAccepted(boolean accepted){ setAccepted_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), accepted); } private native void setAccepted_native_bool(long __this__nativeId, boolean accepted); /** *

See Qt3DRender::QPickEvent::viewport()const

* @return */ @QtPropertyReader(name="viewport") @QtPropertyConstant @QtUninvokable public final io.qt.qt3d.render.@Nullable QViewport viewport(){ return viewport_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.qt3d.render.QViewport viewport_native_constfct(long __this__nativeId); /** *

QPickEvent::worldIntersection Returns coordinates of the hit in world coordinate system

*

See Qt3DRender::QPickEvent::worldIntersection()const

* @return */ @QtPropertyReader(name="worldIntersection") @QtPropertyConstant @QtUninvokable public final io.qt.gui.@NonNull QVector3D worldIntersection(){ return worldIntersection_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QVector3D worldIntersection_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QPickEvent(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QPickEvent(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QPickEvent instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QPickEvent(io.qt.core.QPointF, io.qt.gui.QVector3D, io.qt.gui.QVector3D, float)}.

*/ public QPickEvent(io.qt.core.@NonNull QPoint position, io.qt.gui.@NonNull QVector3D worldIntersection, io.qt.gui.@NonNull QVector3D localIntersection, float distance) { this(new io.qt.core.QPointF(position), worldIntersection, localIntersection, distance); } /** *

Overloaded constructor for {@link #QPickEvent(io.qt.core.QPointF, io.qt.gui.QVector3D, io.qt.gui.QVector3D, float, io.qt.qt3d.render.QPickEvent.Buttons, int, int)}.

*/ public QPickEvent(io.qt.core.@NonNull QPoint position, io.qt.gui.@NonNull QVector3D worldIntersection, io.qt.gui.@NonNull QVector3D localIntersection, float distance, io.qt.qt3d.render.QPickEvent.@NonNull Buttons button, int buttons, int modifiers) { this(new io.qt.core.QPointF(position), worldIntersection, localIntersection, distance, button, buttons, modifiers); } /** * @hidden *

Kotlin property getter. In Java use {@link #button()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.render.QPickEvent.@NonNull Buttons getButton() { return button(); } /** * @hidden *

Kotlin property getter. In Java use {@link #buttons()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getButtons() { return buttons(); } /** * @hidden *

Kotlin property getter. In Java use {@link #distance()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final float getDistance() { return distance(); } /** * @hidden *

Kotlin property getter. In Java use {@link #entity()} instead.

*/ @QtPropertyReader(enabled=false) @SuppressWarnings({"exports"}) @QtUninvokable public final io.qt.qt3d.core.@Nullable QEntity getEntity() { return entity(); } /** * @hidden *

Kotlin property getter. In Java use {@link #isAccepted()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final boolean getAccepted() { return isAccepted(); } /** * @hidden *

Kotlin property getter. In Java use {@link #localIntersection()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.gui.@NonNull QVector3D getLocalIntersection() { return localIntersection(); } /** * @hidden *

Kotlin property getter. In Java use {@link #modifiers()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final int getModifiers() { return modifiers(); } /** * @hidden *

Kotlin property getter. In Java use {@link #position()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QPointF getPosition() { return position(); } /** * @hidden *

Kotlin property getter. In Java use {@link #viewport()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.render.@Nullable QViewport getViewport() { return viewport(); } /** * @hidden *

Kotlin property getter. In Java use {@link #worldIntersection()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.gui.@NonNull QVector3D getWorldIntersection() { return worldIntersection(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy