int ApduDetails::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 25) qt_static_metacall(this, _c, _id, _a); _id -= 25; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< QString*>(_v) = getAid(); break; case 1: *reinterpret_cast< bool*>(_v) = getSelectOnly(); break; case 2: *reinterpret_cast< bool*>(_v) = getPpse(); break; case 3: *reinterpret_cast< int*>(_v) = getTargetInx(); break; case 4: *reinterpret_cast< QString*>(_v) = getCla(); break; case 5: *reinterpret_cast< QString*>(_v) = getIns(); break; case 6: *reinterpret_cast< QString*>(_v) = getP1p2(); break; case 7: *reinterpret_cast< QString*>(_v) = getLc(); break; case 8: *reinterpret_cast< QString*>(_v) = getCommand(); break; case 9: *reinterpret_cast< QString*>(_v) = getLe(); break; } _id -= 10; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 0: setAid(*reinterpret_cast< QString*>(_v)); break; case 1: setSelectOnly(*reinterpret_cast< bool*>(_v)); break; case 2: setPpse(*reinterpret_cast< bool*>(_v)); break; case 3: setTargetInx(*reinterpret_cast< int*>(_v)); break; case 4: setCla(*reinterpret_cast< QString*>(_v)); break; case 5: setIns(*reinterpret_cast< QString*>(_v)); break; case 6: setP1p2(*reinterpret_cast< QString*>(_v)); break; case 7: setLc(*reinterpret_cast< QString*>(_v)); break; case 8: setCommand(*reinterpret_cast< QString*>(_v)); break; case 9: setLe(*reinterpret_cast< QString*>(_v)); break; } _id -= 10; } else if (_c == QMetaObject::ResetProperty) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 10; } #endif // QT_NO_PROPERTIES return _id; }
Color Emissive::shade(ShadeRecord& sr, const Ray& ray) { if((sr.normal * -1.0).dot(ray.direction) > 0.0) { return getLe(sr); } return BLACK; }