/*! Create a copy of this QGLCamera, parented onto the \a parent given, by default 0 (which results in no parenting). The copy returned has exactly the same state as the original. */ QGLCamera *QGLCamera::clone(QObject *parent) const { Q_D(const QGLCamera); QGLCamera *copy = new QGLCamera(parent); copy->d_func()->projectionType = d->projectionType; copy->d_func()->fieldOfView = d->fieldOfView; copy->d_func()->nearPlane = d->nearPlane; copy->d_func()->farPlane = d->farPlane; copy->d_func()->viewSize = d->viewSize; copy->d_func()->minViewSize = d->minViewSize; copy->d_func()->screenRotation = d->screenRotation; copy->d_func()->eye = d->eye; copy->d_func()->upVector = d->upVector; copy->d_func()->center = d->center; copy->d_func()->viewVector = d->viewVector; copy->d_func()->eyeSeparation = d->eyeSeparation; copy->d_func()->motionAdjustment = d->motionAdjustment; copy->d_func()->adjustForAspectRatio = d->adjustForAspectRatio; return copy; }