mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
* Prepare for more customization of annotation objects * Move files * Add configuration of readout lines in sub plots. The location along the time axis is based on the current mouse cursor position. The location is distributed to all sub plots. Optional support for readout of values at the current time.
67 lines
2.2 KiB
C++
67 lines
2.2 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2025 Equinor ASA
|
|
//
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
//
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
// for more details.
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
#include "RiaPlotDefines.h"
|
|
|
|
#include "cafPdmField.h"
|
|
#include "cafPdmObject.h"
|
|
#include "cafPdmUiItem.h"
|
|
|
|
class RimAnnotationLineAppearance;
|
|
|
|
//==================================================================================================
|
|
///
|
|
///
|
|
//==================================================================================================
|
|
class RimSummaryPlotReadOut : public caf::PdmObject
|
|
{
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
enum class ReadOutType
|
|
{
|
|
NONE,
|
|
SNAP_TO_POINT,
|
|
TIME_TRACKING,
|
|
TIME_VALUE_TRACKING
|
|
};
|
|
|
|
public:
|
|
RimSummaryPlotReadOut();
|
|
|
|
bool enableCurvePointTracking() const;
|
|
bool enableHorizontalLine() const;
|
|
bool enableVerticalLine() const;
|
|
RimAnnotationLineAppearance* lineAppearance() const;
|
|
RiaDefines::TextAlignment verticalLineLabelAlignment() const;
|
|
RiaDefines::TextAlignment horizontalLineLabelAlignment() const;
|
|
|
|
private:
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
|
|
private:
|
|
caf::PdmField<caf::AppEnum<ReadOutType>> m_readOutType;
|
|
|
|
caf::PdmChildField<RimAnnotationLineAppearance*> m_lineAppearance;
|
|
|
|
caf::PdmField<caf::AppEnum<RiaDefines::TextAlignment>> m_verticalLineLabelAlignment;
|
|
caf::PdmField<caf::AppEnum<RiaDefines::TextAlignment>> m_horizontalLineLabelAlignment;
|
|
};
|