void AbstractDataView::setSelection(const DataSelection & selection) { if (selection == m_selection) { return; } m_selection = selection; onSetSelection(m_selection); emit selectionChanged(this, m_selection); }
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); }