io.qt.datavis.QSurface3DSeries Maven / Gradle / Ivy
Show all versions of qtjambi-datavisualization Show documentation
package io.qt.datavis;
import io.qt.*;
/**
* Represents a data series in a 3D surface graph
* Java wrapper for Qt class QSurface3DSeries
*/
public class QSurface3DSeries extends io.qt.datavis.QAbstract3DSeries
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSurface3DSeries.class);
/**
* Java wrapper for Qt enum QSurface3DSeries::DrawFlag
*
* @see DrawFlags
*/
public enum DrawFlag implements QtFlagEnumerator {
/**
* Representing QSurface3DSeries:: DrawWireframe
*/
DrawWireframe(1),
/**
* Representing QSurface3DSeries:: DrawSurface
*/
DrawSurface(2),
/**
* Representing QSurface3DSeries:: DrawSurfaceAndWireframe
*/
DrawSurfaceAndWireframe(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private DrawFlag(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
@Override
public @NonNull DrawFlags asFlags() {
return new DrawFlags(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull DrawFlags combined(@NonNull DrawFlag e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull DrawFlags cleared(@NonNull DrawFlag e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link DrawFlags} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull DrawFlags flags(@Nullable DrawFlag @NonNull... values) {
return new DrawFlags(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull DrawFlag resolve(int value) {
switch (value) {
case 1: return DrawWireframe;
case 2: return DrawSurface;
case 3: return DrawSurfaceAndWireframe;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link DrawFlag}
*/
public static final class DrawFlags extends QFlags implements Comparable {
private static final long serialVersionUID = 0xcc74b066c0184b89L;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new DrawFlags where the flags in args
are set.
* @param args enum entries
*/
public DrawFlags(@Nullable DrawFlag @NonNull... args){
super(args);
}
/**
* Creates a new DrawFlags with given value
.
* @param value
*/
public DrawFlags(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new DrawFlags
*/
@Override
public final @NonNull DrawFlags combined(@StrictNonNull DrawFlag e){
return new DrawFlags(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
@Override
public final @NonNull DrawFlags setFlag(@Nullable DrawFlag e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
@Override
public final @NonNull DrawFlags setFlag(@Nullable DrawFlag e, boolean on){
if (on) {
setValue(value() | e.value());
}else {
setValue(value() & ~e.value());
}
return this;
}
/**
* Returns an array of flag objects represented by this DrawFlags.
* @return array of enum entries
*/
@Override
public final @NonNull DrawFlag @NonNull[] flags(){
return super.flags(DrawFlag.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull DrawFlags clone(){
return new DrawFlags(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull DrawFlags other){
return Integer.compare(value(), other.value());
}
}
/**
* See QSurface3DSeries:: dataProxyChanged(QSurfaceDataProxy*)
*/
@QtPropertyNotify(name="dataProxy")
public final @NonNull Signal1 dataProxyChanged = new Signal1<>();
/**
* See QSurface3DSeries:: drawModeChanged(QSurface3DSeries::DrawFlags)
*/
@QtPropertyNotify(name="drawMode")
public final @NonNull Signal1 drawModeChanged = new Signal1<>();
/**
* See QSurface3DSeries:: flatShadingEnabledChanged(bool)
*/
@QtPropertyNotify(name="flatShadingEnabled")
public final @NonNull Signal1 flatShadingEnabledChanged = new Signal1<>();
/**
* See QSurface3DSeries:: flatShadingSupportedChanged(bool)
*/
@QtPropertyNotify(name="flatShadingSupported")
public final @NonNull Signal1 flatShadingSupportedChanged = new Signal1<>();
/**
* See QSurface3DSeries:: selectedPointChanged(QPoint)
*/
@QtPropertyNotify(name="selectedPoint")
public final @NonNull Signal1 selectedPointChanged = new Signal1<>();
/**
* See QSurface3DSeries:: textureChanged(QImage)
*/
@QtPropertyNotify(name="texture")
public final @NonNull Signal1 textureChanged = new Signal1<>();
/**
* See QSurface3DSeries:: textureFileChanged(QString)
*/
@QtPropertyNotify(name="textureFile")
public final @NonNull Signal1 textureFileChanged = new Signal1<>();
/**
* See QSurface3DSeries:: wireframeColorChanged(QColor)
*/
@QtPropertyNotify(name="wireframeColor")
public final @NonNull Signal1 wireframeColorChanged = new Signal1<>();
/**
* See QSurface3DSeries:: QSurface3DSeries(QObject*)
* @param parent
*/
public QSurface3DSeries(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QSurface3DSeries instance, io.qt.core.QObject parent);
/**
* See QSurface3DSeries:: QSurface3DSeries(QSurfaceDataProxy*, QObject*)
* @param dataProxy
* @param parent
*/
public QSurface3DSeries(io.qt.datavis.@Nullable QSurfaceDataProxy dataProxy, io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, dataProxy, parent);
}
private native static void initialize_native(QSurface3DSeries instance, io.qt.datavis.QSurfaceDataProxy dataProxy, io.qt.core.QObject parent);
/**
* See QSurface3DSeries:: dataProxy()const
* @return
*/
@QtPropertyReader(name="dataProxy")
@QtUninvokable
public final io.qt.datavis.@Nullable QSurfaceDataProxy dataProxy(){
return dataProxy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.datavis.QSurfaceDataProxy dataProxy_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries:: drawMode()const
* @return
*/
@QtPropertyReader(name="drawMode")
@QtUninvokable
public final io.qt.datavis.QSurface3DSeries.@NonNull DrawFlags drawMode(){
return new io.qt.datavis.QSurface3DSeries.DrawFlags(drawMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int drawMode_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries:: isFlatShadingEnabled()const
* @return
*/
@QtPropertyReader(name="flatShadingEnabled")
@QtUninvokable
public final boolean isFlatShadingEnabled(){
return isFlatShadingEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isFlatShadingEnabled_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries:: isFlatShadingSupported()const
* @return
*/
@QtPropertyReader(name="flatShadingSupported")
@QtUninvokable
public final boolean isFlatShadingSupported(){
return isFlatShadingSupported_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isFlatShadingSupported_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries:: selectedPoint()const
* @return
*/
@QtPropertyReader(name="selectedPoint")
@QtUninvokable
public final io.qt.core.@NonNull QPoint selectedPoint(){
return selectedPoint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPoint selectedPoint_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries:: setDataProxy(QSurfaceDataProxy*)
* @param proxy
*/
@QtPropertyWriter(name="dataProxy")
@QtUninvokable
public final void setDataProxy(io.qt.datavis.@StrictNonNull QSurfaceDataProxy proxy){
if(proxy!=null){
if(proxy==dataProxy()){
throw new IllegalArgumentException("Proxy is already assigned to this series.");
}else if(proxy.series()!=null){
throw new IllegalArgumentException("Proxy is already assigned to another series.");
}
}
java.util.Objects.requireNonNull(proxy, "Argument 'proxy': null not expected.");
setDataProxy_native_QSurfaceDataProxy_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(proxy));
}
@QtUninvokable
private native void setDataProxy_native_QSurfaceDataProxy_ptr(long __this__nativeId, long proxy);
/**
* See QSurface3DSeries:: setDrawMode(QSurface3DSeries::DrawFlags)
* @param mode
*/
@QtPropertyWriter(name="drawMode")
@QtUninvokable
public final void setDrawMode(io.qt.datavis.QSurface3DSeries.@NonNull DrawFlags mode){
setDrawMode_native_QSurface3DSeries_DrawFlags(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native void setDrawMode_native_QSurface3DSeries_DrawFlags(long __this__nativeId, int mode);
/**
* See QSurface3DSeries:: setFlatShadingEnabled(bool)
* @param enabled
*/
@QtPropertyWriter(name="flatShadingEnabled")
@QtUninvokable
public final void setFlatShadingEnabled(boolean enabled){
setFlatShadingEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@QtUninvokable
private native void setFlatShadingEnabled_native_bool(long __this__nativeId, boolean enabled);
/**
* See QSurface3DSeries:: setSelectedPoint(QPoint)
* @param position
*/
@QtPropertyWriter(name="selectedPoint")
@QtUninvokable
public final void setSelectedPoint(io.qt.core.@NonNull QPoint position){
setSelectedPoint_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(position));
}
@QtUninvokable
private native void setSelectedPoint_native_cref_QPoint(long __this__nativeId, long position);
/**
* See QSurface3DSeries:: setTexture(QImage)
* @param texture
*/
@QtPropertyWriter(name="texture")
@QtUninvokable
public final void setTexture(io.qt.gui.@NonNull QImage texture){
setTexture_native_cref_QImage(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(texture));
}
@QtUninvokable
private native void setTexture_native_cref_QImage(long __this__nativeId, long texture);
/**
* See QSurface3DSeries:: setTextureFile(QString)
* @param filename
*/
@QtPropertyWriter(name="textureFile")
@QtUninvokable
public final void setTextureFile(java.lang.@NonNull String filename){
setTextureFile_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), filename);
}
@QtUninvokable
private native void setTextureFile_native_cref_QString(long __this__nativeId, java.lang.String filename);
/**
* See QSurface3DSeries:: setWireframeColor(QColor)
* @param color
*/
@QtPropertyWriter(name="wireframeColor")
@QtUninvokable
public final void setWireframeColor(io.qt.gui.@NonNull QColor color){
setWireframeColor_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(color));
}
@QtUninvokable
private native void setWireframeColor_native_cref_QColor(long __this__nativeId, long color);
/**
* See QSurface3DSeries:: texture()const
* @return
*/
@QtPropertyReader(name="texture")
@QtUninvokable
public final io.qt.gui.@NonNull QImage texture(){
return texture_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QImage texture_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries:: textureFile()const
* @return
*/
@QtPropertyReader(name="textureFile")
@QtUninvokable
public final java.lang.@NonNull String textureFile(){
return textureFile_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String textureFile_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries:: wireframeColor()const
* @return
*/
@QtPropertyReader(name="wireframeColor")
@QtUninvokable
public final io.qt.gui.@NonNull QColor wireframeColor(){
return wireframeColor_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QColor wireframeColor_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries:: invalidSelectionPosition()
* @return
*/
public native static io.qt.core.@NonNull QPoint invalidSelectionPosition();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QSurface3DSeries(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QSurface3DSeries(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QSurface3DSeries instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QSurface3DSeries(io.qt.core.QObject)}
* with parent = null
.
*/
public QSurface3DSeries() {
this((io.qt.core.QObject)null);
}
/**
* Overloaded constructor for {@link #QSurface3DSeries(io.qt.datavis.QSurfaceDataProxy, io.qt.core.QObject)}
* with parent = null
.
*/
public QSurface3DSeries(io.qt.datavis.@Nullable QSurfaceDataProxy dataProxy) {
this(dataProxy, (io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #dataProxy()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.datavis.@Nullable QSurfaceDataProxy getDataProxy() {
return dataProxy();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #drawMode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.datavis.QSurface3DSeries.@NonNull DrawFlags getDrawMode() {
return drawMode();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isFlatShadingEnabled()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getFlatShadingEnabled() {
return isFlatShadingEnabled();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isFlatShadingSupported()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getFlatShadingSupported() {
return isFlatShadingSupported();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #selectedPoint()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QPoint getSelectedPoint() {
return selectedPoint();
}
/**
* Overloaded function for {@link #setDrawMode(io.qt.datavis.QSurface3DSeries.DrawFlags)}.
*/
@QtUninvokable
public final void setDrawMode(io.qt.datavis.QSurface3DSeries.@NonNull DrawFlag @NonNull... mode) {
setDrawMode(new io.qt.datavis.QSurface3DSeries.DrawFlags(mode));
}
/**
* Overloaded function for {@link #setWireframeColor(io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setWireframeColor(io.qt.core.Qt.@NonNull GlobalColor color) {
setWireframeColor(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setWireframeColor(io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setWireframeColor(io.qt.gui.@NonNull QRgba64 color) {
setWireframeColor(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setWireframeColor(io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setWireframeColor(java.lang.@NonNull String color) {
setWireframeColor(new io.qt.gui.QColor(color));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #texture()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QImage getTexture() {
return texture();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #textureFile()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getTextureFile() {
return textureFile();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #wireframeColor()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QColor getWireframeColor() {
return wireframeColor();
}
}