void AbstractDataView::setSelection(const DataSelection & selection)
{
    if (selection == m_selection)
    {
        return;
    }

    m_selection = selection;

    onSetSelection(m_selection);

    emit selectionChanged(this, m_selection);
}
Beispiel #2
0
void RendererImplementation::setSelection(const VisualizationSelection & selection)
{
    // This is either called by the view (setVisualizationSelection etc)
    // or by the picking/highlighting implementations.

    if (selection == m_selection)
    {
        return;
    }

    m_selection = selection;

    onSetSelection(m_selection);

    m_renderView.setVisualizationSelection(selection);
}