ccPolyline::ccPolyline(const ccPolyline& poly) : Polyline(0) , ccShiftedObject(poly) { ccPointCloud* clone = 0; initWith(clone,poly); }
bool ccCameraParamEditDlg::linkWith(ccGLWindow* win) { ccGLWindow* oldWin = m_associatedWin; if (!ccOverlayDialog::linkWith(win)) { return false; } if (oldWin) { oldWin->disconnect(this); } if (m_associatedWin) { initWith(m_associatedWin); connect(m_associatedWin, SIGNAL(baseViewMatChanged(const ccGLMatrixd&)), this, SLOT(initWithMatrix(const ccGLMatrixd&))); connect(m_associatedWin, SIGNAL(cameraPosChanged(const CCVector3d&)), this, SLOT(updateCameraCenter(const CCVector3d&))); connect(m_associatedWin, SIGNAL(pivotPointChanged(const CCVector3d&)), this, SLOT(updatePivotPoint(const CCVector3d&))); connect(m_associatedWin, SIGNAL(perspectiveStateChanged()), this, SLOT(updateViewMode())); connect(m_associatedWin, SIGNAL(destroyed(QObject*)), this, SLOT(hide())); connect(m_associatedWin, SIGNAL(fovChanged(float)), this, SLOT(updateWinFov(float))); connect(m_associatedWin, SIGNAL(zNearCoefChanged(float)), this, SLOT(updateZNearCoef(float))); PushedMatricesMapType::iterator it = pushedMatrices.find(m_associatedWin); buttonsFrame->setEnabled(it != pushedMatrices.end()); } else {
NavMeshAgent* NavMeshAgent::create(const NavMeshAgentParam ¶m) { auto ref = new (std::nothrow) NavMeshAgent(); if (ref && ref->initWith(param)) { ref->autorelease(); return ref; } CC_SAFE_DELETE(ref); return nullptr; }
AppVersion(const QString &version) { initWith(version); }
OutputContext::OutputContext(const OutputContext &other) : Linkable() { initWith(other); }