[drape] central storage for VisualScale and may be for some other vizualization params in future

This commit is contained in:
ExMix 2014-01-28 14:00:08 +03:00 committed by Alex Zolotarev
parent 93bd500250
commit 4750652638
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,22 @@
#include "vizualization_params.hpp"
#include "../base/math.hpp"
#include "../base/assert.hpp"
#include "../std/limits.hpp"
namespace df
{
double VizualizationParams::GetVisualScale()
{
ASSERT(!my::AlmostEqual(m_visualScale, numeric_limits<double>::min()), ());
return m_visualScale;
}
void VizualizationParams::SetVisualScale(double visualScale)
{
m_visualScale = visualScale;
}
double VizualizationParams::m_visualScale = numeric_limits<double>::min();
}

View file

@ -0,0 +1,14 @@
#pragma once
namespace df
{
class VizualizationParams
{
public:
static double GetVisualScale();
static void SetVisualScale(double visualScale);
private:
static double m_visualScale;
};
}