Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

moc_renderwindowinteractor.cpp

Go to the documentation of this file.
00001 /****************************************************************************
00002 ** RenderWindowInteractor meta object code from reading C++ file 'renderwindowinteractor.h'
00003 **
00004 ** Created: Sun Jun 22 11:57:12 2003
00005 **      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.1.1   edited Dec 9 10:40 $)
00006 **
00007 ** WARNING! All changes made in this file will be lost!
00008 *****************************************************************************/
00009 
00010 #undef QT_NO_COMPAT
00011 #include "renderwindowinteractor.h"
00012 #include <qmetaobject.h>
00013 #include <qapplication.h>
00014 
00015 #include <private/qucomextra_p.h>
00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
00017 #error "This file was generated using the moc from 3.1.1. It"
00018 #error "cannot be used with the include files from this version of Qt."
00019 #error "(The moc has changed too much.)"
00020 #endif
00021 
00022 const char *RenderWindowInteractor::className() const
00023 {
00024     return "RenderWindowInteractor";
00025 }
00026 
00027 QMetaObject *RenderWindowInteractor::metaObj = 0;
00028 static QMetaObjectCleanUp cleanUp_RenderWindowInteractor( "RenderWindowInteractor", &RenderWindowInteractor::staticMetaObject );
00029 
00030 #ifndef QT_NO_TRANSLATION
00031 QString RenderWindowInteractor::tr( const char *s, const char *c )
00032 {
00033     if ( qApp )
00034         return qApp->translate( "RenderWindowInteractor", s, c, QApplication::DefaultCodec );
00035     else
00036         return QString::fromLatin1( s );
00037 }
00038 #ifndef QT_NO_TRANSLATION_UTF8
00039 QString RenderWindowInteractor::trUtf8( const char *s, const char *c )
00040 {
00041     if ( qApp )
00042         return qApp->translate( "RenderWindowInteractor", s, c, QApplication::UnicodeUTF8 );
00043     else
00044         return QString::fromUtf8( s );
00045 }
00046 #endif // QT_NO_TRANSLATION_UTF8
00047 
00048 #endif // QT_NO_TRANSLATION
00049 
00050 QMetaObject* RenderWindowInteractor::staticMetaObject()
00051 {
00052     if ( metaObj )
00053         return metaObj;
00054     QMetaObject* parentObject = RenderWindow::staticMetaObject();
00055     static const QUMethod slot_0 = {"ActorRotate", 0, 0 };
00056     static const QUMethod slot_1 = {"ActorTranslate", 0, 0 };
00057     static const QUMethod slot_2 = {"ActorZoom", 0, 0 };
00058     static const QUMethod slot_3 = {"ActorRoll", 0, 0 };
00059     static const QUMethod slot_4 = {"ActorPlaneRoll", 0, 0 };
00060     static const QUMethod slot_5 = {"ActorPlaneMove", 0, 0 };
00061     static const QUMethod slot_6 = {"CameraRotate", 0, 0 };
00062     static const QUMethod slot_7 = {"CameraTranslate", 0, 0 };
00063     static const QUMethod slot_8 = {"CameraZoom", 0, 0 };
00064     static const QUMethod slot_9 = {"CameraRoll", 0, 0 };
00065     static const QUMethod slot_10 = {"DoNothing", 0, 0 };
00066     static const QMetaData slot_tbl[] = {
00067         { "ActorRotate()", &slot_0, QMetaData::Protected },
00068         { "ActorTranslate()", &slot_1, QMetaData::Protected },
00069         { "ActorZoom()", &slot_2, QMetaData::Protected },
00070         { "ActorRoll()", &slot_3, QMetaData::Protected },
00071         { "ActorPlaneRoll()", &slot_4, QMetaData::Protected },
00072         { "ActorPlaneMove()", &slot_5, QMetaData::Protected },
00073         { "CameraRotate()", &slot_6, QMetaData::Protected },
00074         { "CameraTranslate()", &slot_7, QMetaData::Protected },
00075         { "CameraZoom()", &slot_8, QMetaData::Protected },
00076         { "CameraRoll()", &slot_9, QMetaData::Protected },
00077         { "DoNothing()", &slot_10, QMetaData::Protected }
00078     };
00079     static const QUParameter param_signal_0[] = {
00080         { "xf", &static_QUType_ptr, "float", QUParameter::In },
00081         { "yf", &static_QUType_ptr, "float", QUParameter::In }
00082     };
00083     static const QUMethod signal_0 = {"ActorRotated", 2, param_signal_0 };
00084     static const QUParameter param_signal_1[] = {
00085         { "angle", &static_QUType_ptr, "float", QUParameter::In }
00086     };
00087     static const QUMethod signal_1 = {"ActorRolled", 1, param_signal_1 };
00088     static const QUParameter param_signal_2[] = {
00089         { "x", &static_QUType_int, 0, QUParameter::In },
00090         { "y", &static_QUType_int, 0, QUParameter::In }
00091     };
00092     static const QUMethod signal_2 = {"Released", 2, param_signal_2 };
00093     static const QMetaData signal_tbl[] = {
00094         { "ActorRotated(float,float)", &signal_0, QMetaData::Public },
00095         { "ActorRolled(float)", &signal_1, QMetaData::Public },
00096         { "Released(int,int)", &signal_2, QMetaData::Public }
00097     };
00098     metaObj = QMetaObject::new_metaobject(
00099         "RenderWindowInteractor", parentObject,
00100         slot_tbl, 11,
00101         signal_tbl, 3,
00102 #ifndef QT_NO_PROPERTIES
00103         0, 0,
00104         0, 0,
00105 #endif // QT_NO_PROPERTIES
00106         0, 0 );
00107     cleanUp_RenderWindowInteractor.setMetaObject( metaObj );
00108     return metaObj;
00109 }
00110 
00111 void* RenderWindowInteractor::qt_cast( const char* clname )
00112 {
00113     if ( !qstrcmp( clname, "RenderWindowInteractor" ) )
00114         return this;
00115     return RenderWindow::qt_cast( clname );
00116 }
00117 
00118 #include <qobjectdefs.h>
00119 #include <qsignalslotimp.h>
00120 
00121 // SIGNAL ActorRotated
00122 void RenderWindowInteractor::ActorRotated( float t0, float t1 )
00123 {
00124     if ( signalsBlocked() )
00125         return;
00126     QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 );
00127     if ( !clist )
00128         return;
00129     QUObject o[3];
00130     static_QUType_ptr.set(o+1,&t0);
00131     static_QUType_ptr.set(o+2,&t1);
00132     activate_signal( clist, o );
00133 }
00134 
00135 // SIGNAL ActorRolled
00136 void RenderWindowInteractor::ActorRolled( float t0 )
00137 {
00138     if ( signalsBlocked() )
00139         return;
00140     QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 1 );
00141     if ( !clist )
00142         return;
00143     QUObject o[2];
00144     static_QUType_ptr.set(o+1,&t0);
00145     activate_signal( clist, o );
00146 }
00147 
00148 // SIGNAL Released
00149 void RenderWindowInteractor::Released( int t0, int t1 )
00150 {
00151     if ( signalsBlocked() )
00152         return;
00153     QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 2 );
00154     if ( !clist )
00155         return;
00156     QUObject o[3];
00157     static_QUType_int.set(o+1,t0);
00158     static_QUType_int.set(o+2,t1);
00159     activate_signal( clist, o );
00160 }
00161 
00162 bool RenderWindowInteractor::qt_invoke( int _id, QUObject* _o )
00163 {
00164     switch ( _id - staticMetaObject()->slotOffset() ) {
00165     case 0: ActorRotate(); break;
00166     case 1: ActorTranslate(); break;
00167     case 2: ActorZoom(); break;
00168     case 3: ActorRoll(); break;
00169     case 4: ActorPlaneRoll(); break;
00170     case 5: ActorPlaneMove(); break;
00171     case 6: CameraRotate(); break;
00172     case 7: CameraTranslate(); break;
00173     case 8: CameraZoom(); break;
00174     case 9: CameraRoll(); break;
00175     case 10: DoNothing(); break;
00176     default:
00177         return RenderWindow::qt_invoke( _id, _o );
00178     }
00179     return TRUE;
00180 }
00181 
00182 bool RenderWindowInteractor::qt_emit( int _id, QUObject* _o )
00183 {
00184     switch ( _id - staticMetaObject()->signalOffset() ) {
00185     case 0: ActorRotated((float)(*((float*)static_QUType_ptr.get(_o+1))),(float)(*((float*)static_QUType_ptr.get(_o+2)))); break;
00186     case 1: ActorRolled((float)(*((float*)static_QUType_ptr.get(_o+1)))); break;
00187     case 2: Released((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break;
00188     default:
00189         return RenderWindow::qt_emit(_id,_o);
00190     }
00191     return TRUE;
00192 }
00193 #ifndef QT_NO_PROPERTIES
00194 
00195 bool RenderWindowInteractor::qt_property( int id, int f, QVariant* v)
00196 {
00197     return RenderWindow::qt_property( id, f, v);
00198 }
00199 
00200 bool RenderWindowInteractor::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
00201 #endif // QT_NO_PROPERTIES

Generated on Sun Jun 22 12:13:09 2003 for Catmull Clark by doxygen 1.3.2