ccBBox ccSubMesh::getMyOwnBB() { if (size() != 0) { if ( !m_bBox.isValid() || getLastModificationTime() < m_associatedMesh->getLastModificationTime() || (m_associatedMesh->getAssociatedCloud() && getLastModificationTime() < m_associatedMesh->getAssociatedCloud()->getLastModificationTime()) ) { refreshBB(); } } return m_bBox; }
/** Writes group fields to the stream. Returns true on success, false in case of error. */ bool PwGroupV3::writeToStream(QDataStream& stream) { stream << FIELD_GROUP_ID; PwStreamUtilsV3::writeInt32(stream, getId()); stream << FIELD_NAME; PwStreamUtilsV3::writeString(stream, getName()); stream << FIELD_CREATION_TIME; PwStreamUtilsV3::writeTimestamp(stream, getCreationTime()); stream << FIELD_LAST_MODIFIED_TIME; PwStreamUtilsV3::writeTimestamp(stream, getLastModificationTime()); stream << FIELD_LAST_ACCESS_TIME; PwStreamUtilsV3::writeTimestamp(stream, getLastAccessTime()); stream << FIELD_EXPIRATION_TIME; PwStreamUtilsV3::writeTimestamp(stream, getExpiryTime()); stream << FIELD_ICON_ID; PwStreamUtilsV3::writeInt32(stream, getIconId()); stream << FIELD_GROUP_LEVEL; PwStreamUtilsV3::writeUInt16(stream, getLevel()); stream << FIELD_GROUP_FLAGS; PwStreamUtilsV3::writeInt32(stream, getFlags()); stream << FIELD_END << (qint32)0; return (stream.status() == QDataStream::Ok); }
int ccHObject::getLastModificationTime_recursive() const { int t = getLastModificationTime(); for (Container::const_iterator it = m_children.begin(); it!=m_children.end(); ++it) { int child_t = (*it)->getLastModificationTime_recursive(); t = std::max(t,child_t); } return t; }