2016-10-07 03:51:08 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016 Statoil ASA
|
2017-12-12 00:42:16 -06:00
|
|
|
//
|
2016-10-07 03:51:08 -05:00
|
|
|
// 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.
|
2017-12-12 00:42:16 -06:00
|
|
|
//
|
2016-10-07 03:51:08 -05:00
|
|
|
// 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.
|
2017-12-12 00:42:16 -06:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2016-10-07 03:51:08 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2017-11-14 05:33:24 -06:00
|
|
|
#include "RimSummaryAxisProperties.h"
|
2016-10-07 03:51:08 -05:00
|
|
|
|
2017-06-13 08:41:52 -05:00
|
|
|
#include "RiaDefines.h"
|
2017-12-12 00:42:16 -06:00
|
|
|
#include "RimSummaryPlot.h"
|
2016-10-07 03:51:08 -05:00
|
|
|
|
2017-12-11 04:37:31 -06:00
|
|
|
#include "cafPdmUiSliderEditor.h"
|
|
|
|
|
|
|
|
#include <cmath>
|
|
|
|
|
2017-12-12 01:35:37 -06:00
|
|
|
// clang-format off
|
2016-10-07 03:51:08 -05:00
|
|
|
namespace caf
|
|
|
|
{
|
2017-12-12 00:42:16 -06:00
|
|
|
template<>
|
|
|
|
void caf::AppEnum<RimSummaryAxisProperties::NumberFormatType>::setUp()
|
|
|
|
{
|
|
|
|
addItem(RimSummaryAxisProperties::NUMBER_FORMAT_AUTO, "NUMBER_FORMAT_AUTO", "Auto");
|
|
|
|
addItem(RimSummaryAxisProperties::NUMBER_FORMAT_DECIMAL, "NUMBER_FORMAT_DECIMAL", "Decimal");
|
|
|
|
addItem(RimSummaryAxisProperties::NUMBER_FORMAT_SCIENTIFIC, "NUMBER_FORMAT_SCIENTIFIC", "Scientific");
|
2016-10-07 03:51:08 -05:00
|
|
|
|
2017-12-12 00:42:16 -06:00
|
|
|
setDefault(RimSummaryAxisProperties::NUMBER_FORMAT_AUTO);
|
2016-10-07 03:51:08 -05:00
|
|
|
}
|
|
|
|
|
2016-11-18 08:03:35 -06:00
|
|
|
template<>
|
2017-12-12 00:42:16 -06:00
|
|
|
void caf::AppEnum<RimSummaryAxisProperties::AxisTitlePositionType>::setUp()
|
2016-11-18 08:03:35 -06:00
|
|
|
{
|
2017-12-12 00:42:16 -06:00
|
|
|
addItem(RimSummaryAxisProperties::AXIS_TITLE_CENTER, "AXIS_TITLE_CENTER", "Center");
|
|
|
|
addItem(RimSummaryAxisProperties::AXIS_TITLE_END, "AXIS_TITLE_END", "At End");
|
2016-11-18 08:03:35 -06:00
|
|
|
|
2017-11-14 05:33:24 -06:00
|
|
|
setDefault(RimSummaryAxisProperties::AXIS_TITLE_CENTER);
|
2016-11-18 08:03:35 -06:00
|
|
|
}
|
2017-12-12 00:42:16 -06:00
|
|
|
} // namespace caf
|
2016-11-18 08:03:35 -06:00
|
|
|
|
2017-11-14 05:33:24 -06:00
|
|
|
CAF_PDM_SOURCE_INIT(RimSummaryAxisProperties, "SummaryYAxisProperties");
|
2016-10-07 03:51:08 -05:00
|
|
|
|
2016-10-10 04:05:45 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2016-10-10 04:05:45 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-11-14 05:33:24 -06:00
|
|
|
RimSummaryAxisProperties::RimSummaryAxisProperties()
|
2016-10-10 04:05:45 -05:00
|
|
|
{
|
2016-11-18 03:48:35 -06:00
|
|
|
CAF_PDM_InitObject("Y-Axis Properties", ":/LeftAxis16x16.png", "", "");
|
2016-10-10 04:05:45 -05:00
|
|
|
|
2016-11-11 08:38:02 -06:00
|
|
|
CAF_PDM_InitField(&m_isActive, "Active", true, "Active", "", "", "");
|
|
|
|
m_isActive.uiCapability()->setUiHidden(true);
|
|
|
|
|
2016-10-10 04:05:45 -05:00
|
|
|
CAF_PDM_InitFieldNoDefault(&m_name, "Name", "Name", "", "", "");
|
|
|
|
m_name.uiCapability()->setUiHidden(true);
|
|
|
|
|
|
|
|
CAF_PDM_InitField(&isAutoTitle, "AutoTitle", true, "Auto Title", "", "", "");
|
2017-12-11 09:41:18 -06:00
|
|
|
|
2017-12-12 01:35:37 -06:00
|
|
|
CAF_PDM_InitField(&m_displayLongName, "DisplayLongName", true, " Names", "", "", "");
|
2018-01-03 08:30:24 -06:00
|
|
|
CAF_PDM_InitField(&m_displayShortName, "DisplayShortName", false, " Acronyms", "", "", "");
|
2017-12-12 01:35:37 -06:00
|
|
|
CAF_PDM_InitField(&m_displayUnitText, "DisplayUnitText", true, " Units", "", "", "");
|
2017-12-11 09:41:18 -06:00
|
|
|
|
2017-12-12 01:35:37 -06:00
|
|
|
CAF_PDM_InitFieldNoDefault(&customTitle, "CustomTitle", "Title", "", "", "");
|
|
|
|
CAF_PDM_InitFieldNoDefault(&titlePositionEnum, "TitlePosition", "Title Position", "", "", "");
|
|
|
|
CAF_PDM_InitField(&titleFontSize, "FontSize", 11, "Font Size", "", "", "");
|
2016-10-10 04:05:45 -05:00
|
|
|
|
2017-06-13 08:41:52 -05:00
|
|
|
CAF_PDM_InitField(&visibleRangeMax, "VisibleRangeMax", RiaDefines::maximumDefaultValuePlot(), "Max", "", "", "");
|
|
|
|
CAF_PDM_InitField(&visibleRangeMin, "VisibleRangeMin", RiaDefines::minimumDefaultValuePlot(), "Min", "", "", "");
|
2016-10-10 04:05:45 -05:00
|
|
|
|
2017-12-12 01:35:37 -06:00
|
|
|
CAF_PDM_InitFieldNoDefault(&numberFormat, "NumberFormat", "Number Format", "", "", "");
|
|
|
|
CAF_PDM_InitField(&numberOfDecimals, "Decimals", 2, "Number of Decimals", "", "", "");
|
|
|
|
CAF_PDM_InitField(&scaleFactor, "ScaleFactor", 1.0, "Scale Factor", "", "", "");
|
|
|
|
CAF_PDM_InitField(&valuesFontSize, "ValuesFontSize", 11, "Font Size", "", "", "");
|
2017-12-11 04:37:31 -06:00
|
|
|
|
|
|
|
numberOfDecimals.uiCapability()->setUiEditorTypeName(caf::PdmUiSliderEditor::uiEditorTypeName());
|
|
|
|
|
2016-10-10 04:05:45 -05:00
|
|
|
CAF_PDM_InitField(&isLogarithmicScaleEnabled, "LogarithmicScale", false, "Logarithmic Scale", "", "", "");
|
|
|
|
|
|
|
|
updateOptionSensitivity();
|
|
|
|
}
|
|
|
|
|
2017-12-12 01:35:37 -06:00
|
|
|
// clang-format on
|
|
|
|
|
2016-10-07 03:51:08 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2016-10-07 03:51:08 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-11-14 05:33:24 -06:00
|
|
|
caf::PdmFieldHandle* RimSummaryAxisProperties::userDescriptionField()
|
2016-10-07 03:51:08 -05:00
|
|
|
{
|
|
|
|
return &m_name;
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2016-10-07 03:51:08 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
QList<caf::PdmOptionItemInfo> RimSummaryAxisProperties::calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions,
|
|
|
|
bool* useOptionsOnly)
|
2016-10-07 03:51:08 -05:00
|
|
|
{
|
|
|
|
QList<caf::PdmOptionItemInfo> options;
|
|
|
|
*useOptionsOnly = true;
|
|
|
|
|
2017-12-12 00:42:16 -06:00
|
|
|
if (&titleFontSize == fieldNeedingOptions || &valuesFontSize == fieldNeedingOptions)
|
2016-10-07 03:51:08 -05:00
|
|
|
{
|
|
|
|
std::vector<int> fontSizes;
|
|
|
|
fontSizes.push_back(8);
|
2017-12-11 06:09:51 -06:00
|
|
|
fontSizes.push_back(9);
|
2016-10-07 03:51:08 -05:00
|
|
|
fontSizes.push_back(10);
|
2017-12-11 06:09:51 -06:00
|
|
|
fontSizes.push_back(11);
|
2016-10-07 03:51:08 -05:00
|
|
|
fontSizes.push_back(12);
|
2017-12-11 06:09:51 -06:00
|
|
|
fontSizes.push_back(14);
|
2016-10-07 03:51:08 -05:00
|
|
|
fontSizes.push_back(16);
|
2017-12-11 06:09:51 -06:00
|
|
|
fontSizes.push_back(18);
|
2016-10-07 03:51:08 -05:00
|
|
|
fontSizes.push_back(24);
|
|
|
|
|
|
|
|
for (int value : fontSizes)
|
|
|
|
{
|
|
|
|
QString text = QString("%1").arg(value);
|
|
|
|
options.push_back(caf::PdmOptionItemInfo(text, value));
|
|
|
|
}
|
|
|
|
}
|
2017-12-11 04:37:31 -06:00
|
|
|
else if (fieldNeedingOptions == &scaleFactor)
|
|
|
|
{
|
|
|
|
for (int exp = -12; exp <= 12; exp += 3)
|
|
|
|
{
|
2017-12-12 00:42:16 -06:00
|
|
|
QString uiText = exp == 0 ? "1" : QString("10 ^ %1").arg(exp);
|
|
|
|
double value = std::pow(10, exp);
|
2017-12-11 04:37:31 -06:00
|
|
|
|
|
|
|
options.push_back(caf::PdmOptionItemInfo(uiText, value));
|
|
|
|
}
|
|
|
|
}
|
2016-10-07 03:51:08 -05:00
|
|
|
|
|
|
|
return options;
|
|
|
|
}
|
|
|
|
|
2017-04-07 03:54:03 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2017-04-07 03:54:03 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-11-14 05:33:24 -06:00
|
|
|
void RimSummaryAxisProperties::defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering)
|
2017-04-07 03:54:03 -05:00
|
|
|
{
|
2017-12-11 09:41:18 -06:00
|
|
|
{
|
2017-12-12 01:35:37 -06:00
|
|
|
caf::PdmUiGroup* titleTextGroup = uiOrdering.addNewGroup("Title Text");
|
2017-12-12 00:42:16 -06:00
|
|
|
|
2017-12-12 01:35:37 -06:00
|
|
|
titleTextGroup->add(&isAutoTitle);
|
|
|
|
|
|
|
|
if (isAutoTitle())
|
|
|
|
{
|
|
|
|
titleTextGroup->add(&m_displayLongName);
|
|
|
|
titleTextGroup->add(&m_displayShortName);
|
|
|
|
titleTextGroup->add(&m_displayUnitText);
|
|
|
|
|
|
|
|
customTitle.uiCapability()->setUiReadOnly(true);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
titleTextGroup->add(&customTitle);
|
|
|
|
customTitle.uiCapability()->setUiReadOnly(false);
|
|
|
|
}
|
2017-12-11 09:41:18 -06:00
|
|
|
}
|
2017-12-12 01:35:37 -06:00
|
|
|
|
2017-12-11 09:41:18 -06:00
|
|
|
{
|
2017-12-12 01:35:37 -06:00
|
|
|
caf::PdmUiGroup* titleGroup = uiOrdering.addNewGroup("Title Layout");
|
|
|
|
titleGroup->add(&titlePositionEnum);
|
|
|
|
titleGroup->add(&titleFontSize);
|
2017-12-11 09:41:18 -06:00
|
|
|
}
|
|
|
|
|
2017-12-12 00:42:16 -06:00
|
|
|
caf::PdmUiGroup& scaleGroup = *(uiOrdering.addNewGroup("Axis Values"));
|
2017-04-07 03:54:03 -05:00
|
|
|
scaleGroup.add(&isLogarithmicScaleEnabled);
|
|
|
|
scaleGroup.add(&numberFormat);
|
2017-12-12 00:42:16 -06:00
|
|
|
|
2017-12-11 04:37:31 -06:00
|
|
|
if (numberFormat() != NUMBER_FORMAT_AUTO)
|
|
|
|
{
|
|
|
|
scaleGroup.add(&numberOfDecimals);
|
|
|
|
scaleGroup.add(&scaleFactor);
|
|
|
|
}
|
|
|
|
|
2017-04-07 03:54:03 -05:00
|
|
|
scaleGroup.add(&visibleRangeMin);
|
|
|
|
scaleGroup.add(&visibleRangeMax);
|
2017-12-11 06:42:54 -06:00
|
|
|
scaleGroup.add(&valuesFontSize);
|
2017-12-11 09:41:18 -06:00
|
|
|
|
2017-12-11 04:37:31 -06:00
|
|
|
uiOrdering.skipRemainingFields(true);
|
2017-04-07 03:54:03 -05:00
|
|
|
}
|
|
|
|
|
2016-10-07 03:51:08 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2016-10-07 03:51:08 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-11-14 05:33:24 -06:00
|
|
|
void RimSummaryAxisProperties::setNameAndAxis(const QString& name, QwtPlot::Axis axis)
|
2016-10-07 03:51:08 -05:00
|
|
|
{
|
2016-10-10 04:05:45 -05:00
|
|
|
m_name = name;
|
|
|
|
m_axis = axis;
|
2016-11-18 03:48:35 -06:00
|
|
|
|
|
|
|
if (axis == QwtPlot::yRight) this->setUiIcon(QIcon(":/RightAxis16x16.png"));
|
2017-11-14 06:54:19 -06:00
|
|
|
if (axis == QwtPlot::xBottom) this->setUiIcon(QIcon(":/BottomAxis16x16.png"));
|
2016-10-07 03:51:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2016-10-07 03:51:08 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-11-14 05:33:24 -06:00
|
|
|
QwtPlot::Axis RimSummaryAxisProperties::qwtPlotAxisType() const
|
2016-10-07 03:51:08 -05:00
|
|
|
{
|
2016-10-10 04:05:45 -05:00
|
|
|
return m_axis;
|
2016-10-07 03:51:08 -05:00
|
|
|
}
|
|
|
|
|
2016-11-24 02:13:20 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2016-11-24 02:13:20 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-11-14 05:33:24 -06:00
|
|
|
RiaDefines::PlotAxis RimSummaryAxisProperties::plotAxisType() const
|
2016-11-24 02:13:20 -06:00
|
|
|
{
|
2017-06-13 08:41:52 -05:00
|
|
|
if (m_axis == QwtPlot::yRight) return RiaDefines::PLOT_AXIS_RIGHT;
|
2017-11-14 06:54:19 -06:00
|
|
|
if (m_axis == QwtPlot::xBottom) return RiaDefines::PLOT_AXIS_BOTTOM;
|
2016-11-24 02:13:20 -06:00
|
|
|
|
2017-06-13 08:41:52 -05:00
|
|
|
return RiaDefines::PLOT_AXIS_LEFT;
|
2016-11-24 02:13:20 -06:00
|
|
|
}
|
|
|
|
|
2017-12-11 09:41:18 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2017-12-11 09:41:18 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
bool RimSummaryAxisProperties::useAutoTitle() const
|
|
|
|
{
|
|
|
|
return isAutoTitle();
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2017-12-11 09:41:18 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
bool RimSummaryAxisProperties::showDescription() const
|
|
|
|
{
|
|
|
|
return m_displayLongName();
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2017-12-11 09:41:18 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
bool RimSummaryAxisProperties::showAcronym() const
|
|
|
|
{
|
|
|
|
return m_displayShortName();
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2017-12-11 09:41:18 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
bool RimSummaryAxisProperties::showUnitText() const
|
|
|
|
{
|
|
|
|
return m_displayUnitText();
|
|
|
|
}
|
|
|
|
|
2016-11-11 08:38:02 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2016-11-11 08:38:02 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-11-14 05:33:24 -06:00
|
|
|
bool RimSummaryAxisProperties::isActive() const
|
2016-11-11 08:38:02 -06:00
|
|
|
{
|
|
|
|
return m_isActive;
|
|
|
|
}
|
|
|
|
|
2016-10-07 03:51:08 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2016-10-07 03:51:08 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
void RimSummaryAxisProperties::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue,
|
|
|
|
const QVariant& newValue)
|
2016-10-07 03:51:08 -05:00
|
|
|
{
|
2016-10-10 08:52:18 -05:00
|
|
|
if (changedField == &isAutoTitle)
|
2016-10-07 03:51:08 -05:00
|
|
|
{
|
|
|
|
updateOptionSensitivity();
|
|
|
|
}
|
2017-02-24 09:00:56 -06:00
|
|
|
|
|
|
|
RimSummaryPlot* rimSummaryPlot = nullptr;
|
|
|
|
this->firstAncestorOrThisOfType(rimSummaryPlot);
|
|
|
|
if (rimSummaryPlot)
|
2016-10-11 12:40:45 -05:00
|
|
|
{
|
2017-02-24 09:00:56 -06:00
|
|
|
if (changedField == &visibleRangeMax)
|
|
|
|
{
|
|
|
|
if (visibleRangeMin > visibleRangeMax) visibleRangeMax = oldValue.toDouble();
|
2017-12-12 00:42:16 -06:00
|
|
|
|
2017-02-24 09:00:56 -06:00
|
|
|
rimSummaryPlot->disableAutoZoom();
|
|
|
|
}
|
|
|
|
else if (changedField == &visibleRangeMin)
|
|
|
|
{
|
|
|
|
if (visibleRangeMin > visibleRangeMax) visibleRangeMin = oldValue.toDouble();
|
2017-12-12 00:42:16 -06:00
|
|
|
|
2017-02-24 09:00:56 -06:00
|
|
|
rimSummaryPlot->disableAutoZoom();
|
|
|
|
}
|
2016-10-07 08:36:52 -05:00
|
|
|
|
2017-02-24 09:00:56 -06:00
|
|
|
if (changedField == &isLogarithmicScaleEnabled)
|
|
|
|
{
|
|
|
|
rimSummaryPlot->loadDataAndUpdate();
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
rimSummaryPlot->updateAxes();
|
|
|
|
}
|
2016-10-12 05:20:49 -05:00
|
|
|
}
|
2016-10-07 03:51:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2016-10-07 03:51:08 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-11-14 05:33:24 -06:00
|
|
|
void RimSummaryAxisProperties::updateOptionSensitivity()
|
2016-10-07 03:51:08 -05:00
|
|
|
{
|
|
|
|
customTitle.uiCapability()->setUiReadOnly(isAutoTitle);
|
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2016-10-07 03:51:08 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-11-14 05:33:24 -06:00
|
|
|
void RimSummaryAxisProperties::initAfterRead()
|
2016-10-07 03:51:08 -05:00
|
|
|
{
|
|
|
|
updateOptionSensitivity();
|
|
|
|
}
|
|
|
|
|
2016-11-11 08:38:02 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-12-12 00:42:16 -06:00
|
|
|
///
|
2016-11-11 08:38:02 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-11-14 05:33:24 -06:00
|
|
|
caf::PdmFieldHandle* RimSummaryAxisProperties::objectToggleField()
|
2016-11-11 08:38:02 -06:00
|
|
|
{
|
|
|
|
return &m_isActive;
|
|
|
|
}
|