Logo Search packages:      
Sourcecode: labplot version File versions

moc_qwt3d_plot.cc

/****************************************************************************
** Qwt3D::Plot3D meta object code from reading C++ file 'qwt3d_plot.h'
**
** Created: Mon Oct 18 00:20:39 2004
**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.3.1   edited Feb 18 14:21 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "qwt3d_plot.h"
#include <qmetaobject.h>
#include <qapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.3.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

const char *Qwt3D::Plot3D::className() const
{
    return "Qwt3D::Plot3D";
}

QMetaObject *Qwt3D::Plot3D::metaObj = 0;
static QMetaObjectCleanUp cleanUp_Qwt3D__Plot3D( "Qwt3D::Plot3D", &Qwt3D::Plot3D::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString Qwt3D::Plot3D::tr( const char *s, const char *c )
{
    if ( qApp )
      return qApp->translate( "Qwt3D::Plot3D", s, c, QApplication::DefaultCodec );
    else
      return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString Qwt3D::Plot3D::trUtf8( const char *s, const char *c )
{
    if ( qApp )
      return qApp->translate( "Qwt3D::Plot3D", s, c, QApplication::UnicodeUTF8 );
    else
      return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* Qwt3D::Plot3D::staticMetaObject()
{
    if ( metaObj )
      return metaObj;
    QMetaObject* parentObject = QGLWidget::staticMetaObject();
    static const QUParameter param_slot_0[] = {
      { "xVal", &static_QUType_double, 0, QUParameter::In },
      { "yVal", &static_QUType_double, 0, QUParameter::In },
      { "zVal", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_0 = {"setRotation", 3, param_slot_0 };
    static const QUParameter param_slot_1[] = {
      { "xVal", &static_QUType_double, 0, QUParameter::In },
      { "yVal", &static_QUType_double, 0, QUParameter::In },
      { "zVal", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_1 = {"setShift", 3, param_slot_1 };
    static const QUParameter param_slot_2[] = {
      { "xVal", &static_QUType_double, 0, QUParameter::In },
      { "yVal", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_2 = {"setViewportShift", 2, param_slot_2 };
    static const QUParameter param_slot_3[] = {
      { "xVal", &static_QUType_double, 0, QUParameter::In },
      { "yVal", &static_QUType_double, 0, QUParameter::In },
      { "zVal", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_3 = {"setScale", 3, param_slot_3 };
    static const QUParameter param_slot_4[] = {
      { 0, &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_4 = {"setZoom", 1, param_slot_4 };
    static const QUParameter param_slot_5[] = {
      { 0, &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_5 = {"setOrtho", 1, param_slot_5 };
    static const QUMethod slot_6 = {"enableMouse", 0, 0 };
    static const QUParameter param_slot_7[] = {
      { "val", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_7 = {"enableMouse", 1, param_slot_7 };
    static const QUMethod slot_8 = {"disableMouse", 0, 0 };
    static const QUParameter param_slot_9[] = {
      { "val", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_9 = {"disableMouse", 1, param_slot_9 };
    static const QUMethod slot_10 = {"enableKeyboard", 0, 0 };
    static const QUParameter param_slot_11[] = {
      { "val", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_11 = {"enableKeyboard", 1, param_slot_11 };
    static const QUMethod slot_12 = {"disableKeyboard", 0, 0 };
    static const QUParameter param_slot_13[] = {
      { "val", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_13 = {"disableKeyboard", 1, param_slot_13 };
    static const QUMethod slot_14 = {"enableLighting", 0, 0 };
    static const QUParameter param_slot_15[] = {
      { "val", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_15 = {"enableLighting", 1, param_slot_15 };
    static const QUMethod slot_16 = {"disableLighting", 0, 0 };
    static const QUParameter param_slot_17[] = {
      { "val", &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod slot_17 = {"disableLighting", 1, param_slot_17 };
    static const QUParameter param_slot_18[] = {
      { "xVal", &static_QUType_double, 0, QUParameter::In },
      { "yVal", &static_QUType_double, 0, QUParameter::In },
      { "zVal", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_18 = {"setLightRotation", 3, param_slot_18 };
    static const QUParameter param_slot_19[] = {
      { "xVal", &static_QUType_double, 0, QUParameter::In },
      { "yVal", &static_QUType_double, 0, QUParameter::In },
      { "zVal", &static_QUType_double, 0, QUParameter::In },
      { "idx", &static_QUType_ptr, "unsigned", QUParameter::In }
    };
    static const QUMethod slot_19 = {"setLightRotation", 4, param_slot_19 };
    static const QUParameter param_slot_20[] = {
      { "xVal", &static_QUType_double, 0, QUParameter::In },
      { "yVal", &static_QUType_double, 0, QUParameter::In },
      { "zVal", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod slot_20 = {"setLightShift", 3, param_slot_20 };
    static const QUParameter param_slot_21[] = {
      { "xVal", &static_QUType_double, 0, QUParameter::In },
      { "yVal", &static_QUType_double, 0, QUParameter::In },
      { "zVal", &static_QUType_double, 0, QUParameter::In },
      { "idx", &static_QUType_ptr, "unsigned", QUParameter::In }
    };
    static const QUMethod slot_21 = {"setLightShift", 4, param_slot_21 };
    static const QUParameter param_slot_22[] = {
      { 0, &static_QUType_bool, 0, QUParameter::Out },
      { "fileName", &static_QUType_QString, 0, QUParameter::In },
      { "format", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_22 = {"savePixmap", 3, param_slot_22 };
    static const QUParameter param_slot_23[] = {
      { 0, &static_QUType_bool, 0, QUParameter::Out },
      { "fileName", &static_QUType_QString, 0, QUParameter::In },
      { "format", &static_QUType_QString, 0, QUParameter::In },
      { "text", &static_QUType_ptr, "VectorWriter::TEXTMODE", QUParameter::In },
      { "sortmode", &static_QUType_ptr, "VectorWriter::SORTMODE", QUParameter::In }
    };
    static const QUMethod slot_23 = {"saveVector", 5, param_slot_23 };
    static const QUParameter param_slot_24[] = {
      { 0, &static_QUType_bool, 0, QUParameter::Out },
      { "fileName", &static_QUType_QString, 0, QUParameter::In },
      { "format", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_24 = {"save", 3, param_slot_24 };
    static const QMetaData slot_tbl[] = {
      { "setRotation(double,double,double)", &slot_0, QMetaData::Public },
      { "setShift(double,double,double)", &slot_1, QMetaData::Public },
      { "setViewportShift(double,double)", &slot_2, QMetaData::Public },
      { "setScale(double,double,double)", &slot_3, QMetaData::Public },
      { "setZoom(double)", &slot_4, QMetaData::Public },
      { "setOrtho(bool)", &slot_5, QMetaData::Public },
      { "enableMouse()", &slot_6, QMetaData::Public },
      { "enableMouse(bool)", &slot_7, QMetaData::Public },
      { "disableMouse()", &slot_8, QMetaData::Public },
      { "disableMouse(bool)", &slot_9, QMetaData::Public },
      { "enableKeyboard()", &slot_10, QMetaData::Public },
      { "enableKeyboard(bool)", &slot_11, QMetaData::Public },
      { "disableKeyboard()", &slot_12, QMetaData::Public },
      { "disableKeyboard(bool)", &slot_13, QMetaData::Public },
      { "enableLighting()", &slot_14, QMetaData::Public },
      { "enableLighting(bool)", &slot_15, QMetaData::Public },
      { "disableLighting()", &slot_16, QMetaData::Public },
      { "disableLighting(bool)", &slot_17, QMetaData::Public },
      { "setLightRotation(double,double,double)", &slot_18, QMetaData::Public },
      { "setLightRotation(double,double,double,unsigned)", &slot_19, QMetaData::Public },
      { "setLightShift(double,double,double)", &slot_20, QMetaData::Public },
      { "setLightShift(double,double,double,unsigned)", &slot_21, QMetaData::Public },
      { "savePixmap(const QString&,const QString&)", &slot_22, QMetaData::Public },
      { "saveVector(const QString&,const QString&,VectorWriter::TEXTMODE,VectorWriter::SORTMODE)", &slot_23, QMetaData::Public },
      { "save(const QString&,const QString&)", &slot_24, QMetaData::Public }
    };
    static const QUParameter param_signal_0[] = {
      { "xAngle", &static_QUType_double, 0, QUParameter::In },
      { "yAngle", &static_QUType_double, 0, QUParameter::In },
      { "zAngle", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod signal_0 = {"rotationChanged", 3, param_signal_0 };
    static const QUParameter param_signal_1[] = {
      { "xShift", &static_QUType_double, 0, QUParameter::In },
      { "yShift", &static_QUType_double, 0, QUParameter::In },
      { "zShift", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod signal_1 = {"shiftChanged", 3, param_signal_1 };
    static const QUParameter param_signal_2[] = {
      { "xShift", &static_QUType_double, 0, QUParameter::In },
      { "yShift", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod signal_2 = {"vieportShiftChanged", 2, param_signal_2 };
    static const QUParameter param_signal_3[] = {
      { "xScale", &static_QUType_double, 0, QUParameter::In },
      { "yScale", &static_QUType_double, 0, QUParameter::In },
      { "zScale", &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod signal_3 = {"scaleChanged", 3, param_signal_3 };
    static const QUParameter param_signal_4[] = {
      { 0, &static_QUType_double, 0, QUParameter::In }
    };
    static const QUMethod signal_4 = {"zoomChanged", 1, param_signal_4 };
    static const QUParameter param_signal_5[] = {
      { 0, &static_QUType_bool, 0, QUParameter::In }
    };
    static const QUMethod signal_5 = {"projectionChanged", 1, param_signal_5 };
    static const QMetaData signal_tbl[] = {
      { "rotationChanged(double,double,double)", &signal_0, QMetaData::Public },
      { "shiftChanged(double,double,double)", &signal_1, QMetaData::Public },
      { "vieportShiftChanged(double,double)", &signal_2, QMetaData::Public },
      { "scaleChanged(double,double,double)", &signal_3, QMetaData::Public },
      { "zoomChanged(double)", &signal_4, QMetaData::Public },
      { "projectionChanged(bool)", &signal_5, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
      "Qwt3D::Plot3D", parentObject,
      slot_tbl, 25,
      signal_tbl, 6,
#ifndef QT_NO_PROPERTIES
      0, 0,
      0, 0,
#endif // QT_NO_PROPERTIES
      0, 0 );
    cleanUp_Qwt3D__Plot3D.setMetaObject( metaObj );
    return metaObj;
}

void* Qwt3D::Plot3D::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "Qwt3D::Plot3D" ) )
      return this;
    return QGLWidget::qt_cast( clname );
}

#include <qobjectdefs.h>
#include <qsignalslotimp.h>

// SIGNAL rotationChanged
00252 void Qwt3D::Plot3D::rotationChanged( double t0, double t1, double t2 )
{
    if ( signalsBlocked() )
      return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
    if ( !clist )
      return;
    QUObject o[4];
    static_QUType_double.set(o+1,t0);
    static_QUType_double.set(o+2,t1);
    static_QUType_double.set(o+3,t2);
    activate_signal( clist, o );
}

// SIGNAL shiftChanged
00267 void Qwt3D::Plot3D::shiftChanged( double t0, double t1, double t2 )
{
    if ( signalsBlocked() )
      return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 1 );
    if ( !clist )
      return;
    QUObject o[4];
    static_QUType_double.set(o+1,t0);
    static_QUType_double.set(o+2,t1);
    static_QUType_double.set(o+3,t2);
    activate_signal( clist, o );
}

// SIGNAL vieportShiftChanged
00282 void Qwt3D::Plot3D::vieportShiftChanged( double t0, double t1 )
{
    if ( signalsBlocked() )
      return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 2 );
    if ( !clist )
      return;
    QUObject o[3];
    static_QUType_double.set(o+1,t0);
    static_QUType_double.set(o+2,t1);
    activate_signal( clist, o );
}

// SIGNAL scaleChanged
00296 void Qwt3D::Plot3D::scaleChanged( double t0, double t1, double t2 )
{
    if ( signalsBlocked() )
      return;
    QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 3 );
    if ( !clist )
      return;
    QUObject o[4];
    static_QUType_double.set(o+1,t0);
    static_QUType_double.set(o+2,t1);
    static_QUType_double.set(o+3,t2);
    activate_signal( clist, o );
}

// SIGNAL zoomChanged
00311 void Qwt3D::Plot3D::zoomChanged( double t0 )
{
    activate_signal( staticMetaObject()->signalOffset() + 4, t0 );
}

// SIGNAL projectionChanged
00317 void Qwt3D::Plot3D::projectionChanged( bool t0 )
{
    activate_signal_bool( staticMetaObject()->signalOffset() + 5, t0 );
}

bool Qwt3D::Plot3D::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: setRotation((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2),(double)static_QUType_double.get(_o+3)); break;
    case 1: setShift((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2),(double)static_QUType_double.get(_o+3)); break;
    case 2: setViewportShift((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2)); break;
    case 3: setScale((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2),(double)static_QUType_double.get(_o+3)); break;
    case 4: setZoom((double)static_QUType_double.get(_o+1)); break;
    case 5: setOrtho((bool)static_QUType_bool.get(_o+1)); break;
    case 6: enableMouse(); break;
    case 7: enableMouse((bool)static_QUType_bool.get(_o+1)); break;
    case 8: disableMouse(); break;
    case 9: disableMouse((bool)static_QUType_bool.get(_o+1)); break;
    case 10: enableKeyboard(); break;
    case 11: enableKeyboard((bool)static_QUType_bool.get(_o+1)); break;
    case 12: disableKeyboard(); break;
    case 13: disableKeyboard((bool)static_QUType_bool.get(_o+1)); break;
    case 14: enableLighting(); break;
    case 15: enableLighting((bool)static_QUType_bool.get(_o+1)); break;
    case 16: disableLighting(); break;
    case 17: disableLighting((bool)static_QUType_bool.get(_o+1)); break;
    case 18: setLightRotation((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2),(double)static_QUType_double.get(_o+3)); break;
    case 19: setLightRotation((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2),(double)static_QUType_double.get(_o+3),(unsigned)(*((unsigned*)static_QUType_ptr.get(_o+4)))); break;
    case 20: setLightShift((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2),(double)static_QUType_double.get(_o+3)); break;
    case 21: setLightShift((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2),(double)static_QUType_double.get(_o+3),(unsigned)(*((unsigned*)static_QUType_ptr.get(_o+4)))); break;
    case 22: static_QUType_bool.set(_o,savePixmap((const QString&)static_QUType_QString.get(_o+1),(const QString&)static_QUType_QString.get(_o+2))); break;
    case 23: static_QUType_bool.set(_o,saveVector((const QString&)static_QUType_QString.get(_o+1),(const QString&)static_QUType_QString.get(_o+2),(VectorWriter::TEXTMODE)(*((VectorWriter::TEXTMODE*)static_QUType_ptr.get(_o+3))),(VectorWriter::SORTMODE)(*((VectorWriter::SORTMODE*)static_QUType_ptr.get(_o+4))))); break;
    case 24: static_QUType_bool.set(_o,save((const QString&)static_QUType_QString.get(_o+1),(const QString&)static_QUType_QString.get(_o+2))); break;
    default:
      return QGLWidget::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool Qwt3D::Plot3D::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: rotationChanged((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2),(double)static_QUType_double.get(_o+3)); break;
    case 1: shiftChanged((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2),(double)static_QUType_double.get(_o+3)); break;
    case 2: vieportShiftChanged((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2)); break;
    case 3: scaleChanged((double)static_QUType_double.get(_o+1),(double)static_QUType_double.get(_o+2),(double)static_QUType_double.get(_o+3)); break;
    case 4: zoomChanged((double)static_QUType_double.get(_o+1)); break;
    case 5: projectionChanged((bool)static_QUType_bool.get(_o+1)); break;
    default:
      return QGLWidget::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

bool Qwt3D::Plot3D::qt_property( int id, int f, QVariant* v)
{
    return QGLWidget::qt_property( id, f, v);
}

bool Qwt3D::Plot3D::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES

Generated by  Doxygen 1.6.0   Back to index