
io.qt.datavis.QSurface3DSeries Maven / Gradle / Ivy
package io.qt.datavis;
/**
* 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.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QSurface3DSeries.class);
/**
* Java wrapper for Qt enum QSurface3DSeries::DrawFlag
*
* @see DrawFlags
*/
public enum DrawFlag implements io.qt.QtFlagEnumerator {
DrawWireframe(1),
DrawSurface(2),
DrawSurfaceAndWireframe(3);
private DrawFlag(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public DrawFlags asFlags() {
return new DrawFlags(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public DrawFlags combined(DrawFlag e) {
return new DrawFlags(this, e);
}
/**
* Creates a new {@link DrawFlags} from the entries.
* @param values entries
* @return new flag
*/
public static DrawFlags flags(DrawFlag ... values) {
return new DrawFlags(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static DrawFlag resolve(int value) {
switch (value) {
case 1: return DrawWireframe;
case 2: return DrawSurface;
case 3: return DrawSurfaceAndWireframe;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link DrawFlag}
*/
public static final class DrawFlags extends io.qt.QFlags implements Comparable {
private static final long serialVersionUID = 0xcc74b066c0184b89L;
/**
* Creates a new DrawFlags where the flags in args
are set.
* @param args enum entries
*/
public DrawFlags(DrawFlag ... 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 DrawFlags combined(DrawFlag e){
return new DrawFlags(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final DrawFlags setFlag(DrawFlag e){
super.setFlag(e);
return this;
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final DrawFlags setFlag(DrawFlag e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this DrawFlags.
* @return array of enum entries
*/
@Override
public final DrawFlag[] flags(){
return super.flags(DrawFlag.values());
}
/**
* {@inheritDoc}
*/
@Override
public final DrawFlags clone(){
return new DrawFlags(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(DrawFlags other){
return Integer.compare(value(), other.value());
}
}
/**
* See QSurface3DSeries::dataProxyChanged(QSurfaceDataProxy*)
*/
@io.qt.QtPropertyNotify(name="dataProxy")
public final Signal1 dataProxyChanged = new Signal1<>();
/**
* See QSurface3DSeries::drawModeChanged(QSurface3DSeries::DrawFlags)
*/
@io.qt.QtPropertyNotify(name="drawMode")
public final Signal1 drawModeChanged = new Signal1<>();
/**
* See QSurface3DSeries::flatShadingEnabledChanged(bool)
*/
@io.qt.QtPropertyNotify(name="flatShadingEnabled")
public final Signal1<@io.qt.QtPrimitiveType Boolean> flatShadingEnabledChanged = new Signal1<>();
/**
* See QSurface3DSeries::flatShadingSupportedChanged(bool)
*/
@io.qt.QtPropertyNotify(name="flatShadingSupported")
public final Signal1<@io.qt.QtPrimitiveType Boolean> flatShadingSupportedChanged = new Signal1<>();
/**
* See QSurface3DSeries::selectedPointChanged(QPoint)
*/
@io.qt.QtPropertyNotify(name="selectedPoint")
public final Signal1 selectedPointChanged = new Signal1<>();
/**
* See QSurface3DSeries::textureChanged(QImage)
*/
@io.qt.QtPropertyNotify(name="texture")
public final Signal1 textureChanged = new Signal1<>();
/**
* See QSurface3DSeries::textureFileChanged(QString)
*/
@io.qt.QtPropertyNotify(name="textureFile")
public final Signal1 textureFileChanged = new Signal1<>();
/**
* See QSurface3DSeries::wireframeColorChanged(QColor)
*/
@io.qt.QtPropertyNotify(name="wireframeColor")
public final Signal1 wireframeColorChanged = new Signal1<>();
/**
* Overloaded constructor for {@link #QSurface3DSeries(io.qt.core.QObject)}
* with parent = null
.
*/
public QSurface3DSeries() {
this((io.qt.core.QObject)null);
}
/**
* See QSurface3DSeries::QSurface3DSeries(QObject*)
*/
public QSurface3DSeries(io.qt.core.QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QSurface3DSeries instance, io.qt.core.QObject parent);
/**
* Overloaded constructor for {@link #QSurface3DSeries(io.qt.datavis.QSurfaceDataProxy, io.qt.core.QObject)}
* with parent = null
.
*/
public QSurface3DSeries(io.qt.datavis.QSurfaceDataProxy dataProxy) {
this(dataProxy, (io.qt.core.QObject)null);
}
/**
* See QSurface3DSeries::QSurface3DSeries(QSurfaceDataProxy*,QObject*)
*/
public QSurface3DSeries(io.qt.datavis.QSurfaceDataProxy dataProxy, io.qt.core.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
*/
@io.qt.QtPropertyReader(name="dataProxy")
@io.qt.QtUninvokable
public final io.qt.datavis.QSurfaceDataProxy dataProxy(){
return dataProxy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.datavis.QSurfaceDataProxy dataProxy_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries::drawMode()const
*/
@io.qt.QtPropertyReader(name="drawMode")
@io.qt.QtUninvokable
public final io.qt.datavis.QSurface3DSeries.DrawFlags drawMode(){
return new io.qt.datavis.QSurface3DSeries.DrawFlags(drawMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int drawMode_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries::isFlatShadingEnabled()const
*/
@io.qt.QtPropertyReader(name="flatShadingEnabled")
@io.qt.QtUninvokable
public final boolean isFlatShadingEnabled(){
return isFlatShadingEnabled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isFlatShadingEnabled_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries::isFlatShadingSupported()const
*/
@io.qt.QtPropertyReader(name="flatShadingSupported")
@io.qt.QtUninvokable
public final boolean isFlatShadingSupported(){
return isFlatShadingSupported_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isFlatShadingSupported_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries::selectedPoint()const
*/
@io.qt.QtPropertyReader(name="selectedPoint")
@io.qt.QtUninvokable
public final io.qt.core.QPoint selectedPoint(){
return selectedPoint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint selectedPoint_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries::setDataProxy(QSurfaceDataProxy*)
*/
@io.qt.QtPropertyWriter(name="dataProxy")
@io.qt.QtUninvokable
public final void setDataProxy(io.qt.datavis.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));
}
@io.qt.QtUninvokable
private native void setDataProxy_native_QSurfaceDataProxy_ptr(long __this__nativeId, long proxy);
/**
* Overloaded function for {@link #setDrawMode(io.qt.datavis.QSurface3DSeries.DrawFlags)}.
*/
@io.qt.QtUninvokable
public final void setDrawMode(io.qt.datavis.QSurface3DSeries.DrawFlag ... mode){
setDrawMode(new io.qt.datavis.QSurface3DSeries.DrawFlags(mode));
}
/**
* See QSurface3DSeries::setDrawMode(DrawFlags)
*/
@io.qt.QtPropertyWriter(name="drawMode")
@io.qt.QtUninvokable
public final void setDrawMode(io.qt.datavis.QSurface3DSeries.DrawFlags mode){
setDrawMode_native_QFlags_QSurface3DSeries_DrawFlag_(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@io.qt.QtUninvokable
private native void setDrawMode_native_QFlags_QSurface3DSeries_DrawFlag_(long __this__nativeId, int mode);
/**
* See QSurface3DSeries::setFlatShadingEnabled(bool)
*/
@io.qt.QtPropertyWriter(name="flatShadingEnabled")
@io.qt.QtUninvokable
public final void setFlatShadingEnabled(boolean enabled){
setFlatShadingEnabled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@io.qt.QtUninvokable
private native void setFlatShadingEnabled_native_bool(long __this__nativeId, boolean enabled);
/**
* See QSurface3DSeries::setSelectedPoint(QPoint)
*/
@io.qt.QtPropertyWriter(name="selectedPoint")
@io.qt.QtUninvokable
public final void setSelectedPoint(io.qt.core.QPoint position){
setSelectedPoint_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(position));
}
@io.qt.QtUninvokable
private native void setSelectedPoint_native_cref_QPoint(long __this__nativeId, long position);
/**
* See QSurface3DSeries::setTexture(QImage)
*/
@io.qt.QtPropertyWriter(name="texture")
@io.qt.QtUninvokable
public final void setTexture(io.qt.gui.QImage texture){
setTexture_native_cref_QImage(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(texture));
}
@io.qt.QtUninvokable
private native void setTexture_native_cref_QImage(long __this__nativeId, long texture);
/**
* See QSurface3DSeries::setTextureFile(QString)
*/
@io.qt.QtPropertyWriter(name="textureFile")
@io.qt.QtUninvokable
public final void setTextureFile(java.lang.String filename){
setTextureFile_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), filename);
}
@io.qt.QtUninvokable
private native void setTextureFile_native_cref_QString(long __this__nativeId, java.lang.String filename);
/**
* See QSurface3DSeries::setWireframeColor(QColor)
*/
@io.qt.QtPropertyWriter(name="wireframeColor")
@io.qt.QtUninvokable
public final void setWireframeColor(io.qt.gui.QColor color){
setWireframeColor_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(color));
}
@io.qt.QtUninvokable
private native void setWireframeColor_native_cref_QColor(long __this__nativeId, long color);
/**
* See QSurface3DSeries::texture()const
*/
@io.qt.QtPropertyReader(name="texture")
@io.qt.QtUninvokable
public final io.qt.gui.QImage texture(){
return texture_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QImage texture_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries::textureFile()const
*/
@io.qt.QtPropertyReader(name="textureFile")
@io.qt.QtUninvokable
public final java.lang.String textureFile(){
return textureFile_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String textureFile_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries::wireframeColor()const
*/
@io.qt.QtPropertyReader(name="wireframeColor")
@io.qt.QtUninvokable
public final io.qt.gui.QColor wireframeColor(){
return wireframeColor_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QColor wireframeColor_native_constfct(long __this__nativeId);
/**
* See QSurface3DSeries::invalidSelectionPosition()
*/
public native static io.qt.core.QPoint invalidSelectionPosition();
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QSurface3DSeries(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@io.qt.NativeAccess
protected QSurface3DSeries(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@io.qt.QtUninvokable
private static native void initialize_native(QSurface3DSeries instance, QDeclarativeConstructor constructor);
}