File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ void ScatterplotPlugin::samplePoints()
456456{
457457 auto & samplerPixelSelectionTool = _scatterPlotWidget->getSamplerPixelSelectionTool ();
458458
459- if (!_positionDataset.isValid () || !samplerPixelSelectionTool. isActive () || _scatterPlotWidget->_pointRenderer .getNavigator ().isNavigating () || !samplerPixelSelectionTool.isEnabled ())
459+ if (!_positionDataset.isValid () || _scatterPlotWidget->_pointRenderer .getNavigator ().isNavigating () || !samplerPixelSelectionTool.isActive ())
460460 return ;
461461
462462 auto selectionAreaImage = samplerPixelSelectionTool.getAreaPixmap ().toImage ();
Original file line number Diff line number Diff line change 44
55#include < util/Exception.h>
66
7- #include < vector >
7+ #include < ViewPlugin.h >
88
99#include < QDebug>
10- #include < QGuiApplication>
11- #include < QMatrix4x4>
1210#include < QOpenGLFramebufferObject>
1311#include < QPainter>
1412#include < QSize>
1513#include < QWheelEvent>
1614#include < QWindow>
1715#include < QRectF>
1816
19- #include < math.h>
20-
21- #include < ViewPlugin.h>
17+ #include < vector>
2218
2319using namespace mv ;
2420
@@ -76,10 +72,6 @@ ScatterplotWidget::ScatterplotWidget(mv::plugin::ViewPlugin* parentPlugin) :
7672 _pixelSelectionTool.setMainColor (QColor (Qt::black));
7773 _pixelSelectionTool.setFixedBrushRadiusModifier (Qt::AltModifier);
7874
79- _samplerPixelSelectionTool.setEnabled (true );
80- _samplerPixelSelectionTool.setMainColor (QColor (Qt::black));
81- _samplerPixelSelectionTool.setFixedBrushRadiusModifier (Qt::AltModifier);
82-
8375 connect (&_pixelSelectionTool, &PixelSelectionTool::shapeChanged, [this ]() {
8476 if (isInitialized ())
8577 update ();
@@ -169,6 +161,10 @@ ScatterplotWidget::ScatterplotWidget(mv::plugin::ViewPlugin* parentPlugin) :
169161
170162 _pointRenderer.getNavigator ().initialize (this );
171163 _densityRenderer.getNavigator ().initialize (this );
164+
165+ _samplerPixelSelectionTool.setEnabled (true );
166+ _samplerPixelSelectionTool.setMainColor (QColor (Qt::black));
167+ _samplerPixelSelectionTool.setFixedBrushRadiusModifier (Qt::AltModifier);
172168}
173169
174170bool ScatterplotWidget::event (QEvent* event)
@@ -432,7 +428,7 @@ mv::Vector3f ScatterplotWidget::getColorMapRange() const
432428 break ;
433429 }
434430
435- return Vector3f () ;
431+ return {} ;
436432}
437433
438434void ScatterplotWidget::setColorMapRange (const float & min, const float & max)
You can’t perform that action at this time.
0 commit comments