mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
48 lines
1.5 KiB
C++
48 lines
1.5 KiB
C++
#include "RimPlotInterface.h"
|
|
|
|
#include "RimGridPlotWindow.h"
|
|
#include "RimPlotWindow.h"
|
|
|
|
#include "RiuQwtPlotWidget.h"
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
namespace caf
|
|
{
|
|
template <>
|
|
void RimPlotInterface::WidthScaleFactorEnum::setUp()
|
|
{
|
|
addItem( RimPlotInterface::EXTRA_NARROW, "EXTRA_NARROW_TRACK", "Extra Narrow" );
|
|
addItem( RimPlotInterface::NARROW, "NARROW_TRACK", "Narrow" );
|
|
addItem( RimPlotInterface::NORMAL, "NORMAL_TRACK", "Normal" );
|
|
addItem( RimPlotInterface::WIDE, "WIDE_TRACK", "Wide" );
|
|
addItem( RimPlotInterface::EXTRA_WIDE, "EXTRA_WIDE_TRACK", "Extra wide" );
|
|
setDefault( RimPlotInterface::NORMAL );
|
|
}
|
|
} // namespace caf
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
bool RimPlotInterface::isStandalonePlot() const
|
|
{
|
|
const caf::PdmObject* thisPdm = dynamic_cast<const caf::PdmObject*>( this );
|
|
CAF_ASSERT( thisPdm );
|
|
|
|
if ( thisPdm )
|
|
{
|
|
RimGridPlotWindow* gridPlotWindow = nullptr;
|
|
thisPdm->firstAncestorOrThisOfType( gridPlotWindow );
|
|
return gridPlotWindow == nullptr;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
///
|
|
//--------------------------------------------------------------------------------------------------
|
|
QString RimPlotInterface::asciiDataForPlotExport() const
|
|
{
|
|
return "";
|
|
}
|