VAPOR3 3.9.4
StatisticsParams.h
Go to the documentation of this file.
1//************************************************************************
2// *
3// Copyright (C) 2004 *
4// University Corporation for Atmospheric Research *
5// All Rights Reserved *
6// *
7//************************************************************************
8//
9// File: StatisticsParams.h
10//
11// Author: Samuel Li
12// National Center for Atmospheric Research
13// PO 3000, Boulder, Colorado
14//
15// Date: November 2017
16//
17// Description: Defines the StatisticsParams class.
18//
19
20#ifndef STATISTICSPARAMS_H
21#define STATISTICSPARAMS_H
22
23#include <vapor/RenderParams.h>
24
25namespace VAPoR {
26
28public:
32
34 void SetAutoUpdateEnabled(bool state);
35
36 // Note: we'll use the Get/SetCurrentTimestep() from RendererParams to
37 // represent the min timestep, MinTS, so we only need to keep track of MaxTS.
38 int GetCurrentMaxTS() const;
39 void SetCurrentMaxTS(int ts);
40
42 void SetMinEnabled(bool state);
43
45 void SetMaxEnabled(bool state);
46
48 void SetMeanEnabled(bool state);
49
51 void SetMedianEnabled(bool state);
52
54 void SetStdDevEnabled(bool state);
55
56 static string GetClassType() { return ("StatisticsParams"); }
57 virtual size_t GetRenderDim() const override { return (0); }
58 virtual string GetActualColorMapVariableName() const override { return ""; }
59
60private:
61 static const string _maxTSTag;
62 static const string _autoUpdateTag;
63 static const string _minEnabledTag;
64 static const string _maxEnabledTag;
65 static const string _meanEnabledTag;
66 static const string _medianEnabledTag;
67 static const string _stdDevEnabledTag;
68};
69
70}; // End namespace VAPoR
71#endif
A cache based data reader.
Definition: DataMgr.h:110
State capture class.
Definition: ParamsBase.h:62
A Params subclass for managing parameters used by Renderers.
Definition: RenderParams.h:43
static string GetClassType()
void SetStdDevEnabled(bool state)
void SetMeanEnabled(bool state)
virtual size_t GetRenderDim() const override
StatisticsParams(DataMgr *dmgr, ParamsBase::StateSave *ssave)
int GetCurrentMaxTS() const
void SetCurrentMaxTS(int ts)
StatisticsParams(DataMgr *dmgr, ParamsBase::StateSave *ssave, XmlNode *node)
void SetMedianEnabled(bool state)
void SetAutoUpdateEnabled(bool state)
void SetMinEnabled(bool state)
void SetMaxEnabled(bool state)
virtual string GetActualColorMapVariableName() const override
An Xml tree.
Definition: XmlNode.h:49