mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
Repository wide spelling correction overly -> overlay
* Impacts CAF and ResInsight
This commit is contained in:
parent
89a68d099a
commit
be95eefd69
@ -64,7 +64,7 @@ RiuCvfOverlayItemWidget::~RiuCvfOverlayItemWidget()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuCvfOverlayItemWidget::updateFromOverlyItem( cvf::OverlayItem * item)
|
||||
void RiuCvfOverlayItemWidget::updateFromOverlayItem( cvf::OverlayItem * item)
|
||||
{
|
||||
// Use the render size of the overlayItem (sizeHint should be renamed)
|
||||
|
||||
|
@ -38,7 +38,7 @@ public:
|
||||
explicit RiuCvfOverlayItemWidget(QWidget* parent = nullptr);
|
||||
~RiuCvfOverlayItemWidget() override;
|
||||
|
||||
void updateFromOverlyItem( cvf::OverlayItem * item);
|
||||
void updateFromOverlayItem( cvf::OverlayItem * item);
|
||||
|
||||
// virtual QSize sizeHint() const override;
|
||||
// virtual QSize minimumSizeHint() const override;
|
||||
|
@ -136,10 +136,10 @@ void RiuSummaryQwtPlot::addOrUpdateEnsembleCurveSetLegend(RimEnsembleCurveSet* c
|
||||
|
||||
if (overlayWidget)
|
||||
{
|
||||
caf::TitledOverlayFrame* overlyItem = curveSetToShowLegendFor->legendConfig()->titledOverlayFrame();
|
||||
overlyItem->setRenderSize(overlyItem->preferredSize());
|
||||
caf::TitledOverlayFrame* overlayItem = curveSetToShowLegendFor->legendConfig()->titledOverlayFrame();
|
||||
overlayItem->setRenderSize(overlayItem->preferredSize());
|
||||
|
||||
overlayWidget->updateFromOverlyItem(curveSetToShowLegendFor->legendConfig()->titledOverlayFrame());
|
||||
overlayWidget->updateFromOverlayItem(curveSetToShowLegendFor->legendConfig()->titledOverlayFrame());
|
||||
overlayWidget->show();
|
||||
}
|
||||
|
||||
|
@ -100,7 +100,7 @@ RiuViewer::RiuViewer(const QGLFormat& format, QWidget* parent)
|
||||
m_mainRendering->addOverlayItem(m_axisCross.p());
|
||||
m_showAxisCross = true;
|
||||
|
||||
this->enableOverlyPainting(true);
|
||||
this->enableOverlayPainting(true);
|
||||
this->setReleaseOGLResourcesEachFrame(true);
|
||||
|
||||
// Info Text
|
||||
|
@ -572,13 +572,13 @@ void caf::Viewer::paintEvent(QPaintEvent* event)
|
||||
}
|
||||
|
||||
m_overlayPaintingQImage.fill(Qt::transparent);
|
||||
QPainter overlyPainter(&m_overlayPaintingQImage);
|
||||
QPainter overlayPainter(&m_overlayPaintingQImage);
|
||||
|
||||
// Call virtual method to allow subclasses to paint on the OpenGlCanvas
|
||||
|
||||
if (m_isOverlayPaintingEnabled)
|
||||
{
|
||||
this->paintOverlayItems(&overlyPainter);
|
||||
this->paintOverlayItems(&overlayPainter);
|
||||
}
|
||||
|
||||
// Draw performance overlay
|
||||
@ -589,7 +589,7 @@ void caf::Viewer::paintEvent(QPaintEvent* event)
|
||||
hud.addStrings(m_renderingSequence->performanceInfo());
|
||||
hud.addStrings(*m_mainCamera);
|
||||
hud.addString(QString("PaintCount: %1").arg(m_paintCounter++));
|
||||
hud.draw(&overlyPainter, width(), height());
|
||||
hud.draw(&overlayPainter, width(), height());
|
||||
}
|
||||
|
||||
// Convert the QImage into the cvf::TextureImage,
|
||||
@ -977,7 +977,7 @@ int caf::Viewer::currentFrameIndex() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool caf::Viewer::isOverlyPaintingEnabled() const
|
||||
bool caf::Viewer::isOverlayPaintingEnabled() const
|
||||
{
|
||||
return m_isOverlayPaintingEnabled;
|
||||
}
|
||||
@ -985,7 +985,7 @@ bool caf::Viewer::isOverlyPaintingEnabled() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void caf::Viewer::enableOverlyPainting(bool val)
|
||||
void caf::Viewer::enableOverlayPainting(bool val)
|
||||
{
|
||||
m_isOverlayPaintingEnabled = val;
|
||||
updateOverlayImagePresence();
|
||||
|
@ -140,8 +140,8 @@ public:
|
||||
|
||||
// QPainter based drawing on top of the OpenGL graphics
|
||||
|
||||
bool isOverlyPaintingEnabled() const;
|
||||
void enableOverlyPainting(bool val);
|
||||
bool isOverlayPaintingEnabled() const;
|
||||
void enableOverlayPainting(bool val);
|
||||
|
||||
// Performance information for debugging etc.
|
||||
void enablePerfInfoHud(bool enable);
|
||||
|
@ -64,8 +64,8 @@ using namespace cvf;
|
||||
m_renderConf = new caf::TransparentWBRenderConfiguration;
|
||||
m_renderConf->setUpRenderSequence(m_renderingSequence.p());
|
||||
|
||||
// Cerate overly item if needed
|
||||
cvf::OverlyItem* overlayItem; // = new someTtem
|
||||
// Cerate overlay item if needed
|
||||
cvf::OverlayItem* overlayItem; // = new someTtem
|
||||
m_renderConf->overlayRendering()->addOverlayItem(overlayItem);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user