-
Notifications
You must be signed in to change notification settings - Fork 0
/
AttributeAverages.h
73 lines (64 loc) · 1.96 KB
/
AttributeAverages.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/**
* @file AttributeAverages.h
* @author Dan R. Lipsa
* @date 11 February 2013
* @brief Computes the average for several attributes in a view. Base
* class for AttributeAverages2D and AttributeAverages3D.
* @ingroup average
*/
#ifndef __ATTRIBUTE_AVERAGES_H__
#define __ATTRIBUTE_AVERAGES_H__
#include "AverageInterface.h"
#include "Enums.h"
class Average;
class DerivedData;
class Foam;
class ForceAverage;
class Settings;
class Simulation;
class SimulationGroup;
class ViewSettings;
/**
*
* @brief Computes the average for several attributes in a view. Base
* class for AttributeAverages2D and AttributeAverages3D.
*/
class AttributeAverages : public AverageInterface
{
public:
AttributeAverages (
ViewNumber::Enum viewNumber,
boost::shared_ptr<Settings> settings,
boost::shared_ptr<const SimulationGroup> simulationGroup,
boost::shared_ptr<DerivedData>* dd);
boost::shared_ptr<ForceAverage> GetForceAverage ()
{
return m_forceAverage;
}
const Settings& GetSettings () const;
const ViewSettings& GetViewSettings () const;
const Foam& GetFoam (ViewNumber::Enum viewNumber) const;
const Simulation& GetSimulation () const;
ViewType::Enum GetInitViewType () const
{
return m_initViewType;
}
virtual void AverageInit ();
virtual void AverageStep (int direction, size_t timeWindow);
virtual void AverageRotateAndDisplay (
StatisticsType::Enum displayType = StatisticsType::AVERAGE,
G3D::Vector2 rotationCenter = G3D::Vector2::zero (),
float angleDegrees = 0) const;
virtual void AverageRelease ();
protected:
boost::shared_ptr<Average> m_scalarAverage;
boost::shared_ptr<ForceAverage> m_forceAverage;
boost::shared_ptr<Average> m_velocityAverage;
boost::shared_ptr<Average> m_deformationAverage;
boost::shared_ptr<Average> m_t1KDE;
ViewType::Enum m_initViewType;
};
#endif //__ATTRIBUTE_AVERAGES_H__
// Local Variables:
// mode: c++
// End: