QString vogleditor_stateTreeMatrixRowItem::getDiffedValue() const
{
    if (m_pDiffBaseState == NULL)
    {
        return "";
    }

    const matrix44D::row_vec &baseRow = m_pDiffBaseState->get_row(m_rowIndex);

    return getValueFromDoubles(baseRow.get_ptr(), 4);
}
QString vogleditor_stateTreeItem::getValueFromDoubles(const double* values, uint count) const
{
    QString tmp;
    if (count == 0 || values == NULL)
    {
        return "";
    }
    else if (count == 1)
    {
        tmp = tmp.sprintf("%f", *values);
    }
    else
    {
        tmp = tmp.sprintf("%s, %s", getValueFromDoubles(values, 1).toStdString().c_str(), getValueFromDoubles(&(values[1]), count-1).toStdString().c_str());
    }

    return tmp;
}