-
Notifications
You must be signed in to change notification settings - Fork 0
/
AttributeAverages3D.h
65 lines (55 loc) · 1.66 KB
/
AttributeAverages3D.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
/**
* @file AttributeAverages3D.h
* @author Dan R. Lipsa
* @date 7 February 2013
* @brief Computes the average for several attributes in a 3D
* view. Casts the computed averages to the proper 3D types.
* @ingroup average
*/
#ifndef __ATTRIBUTES_AVERAGE3D_H__
#define __ATTRIBUTES_AVERAGE3D_H__
#include "AttributeAverages.h"
class ForceAverage;
class RegularGridAverage;
class Settings;
class SimulationGroup;
class ViewSettings;
/**
* @brief Computes the average for several attributes in a 3D
* view. Casts the computed averages to the proper 3D types.
*/
class AttributeAverages3D : public AttributeAverages
{
public:
AttributeAverages3D (
ViewNumber::Enum viewNumber,
boost::shared_ptr<Settings> settings,
boost::shared_ptr<const SimulationGroup> simulationGroup,
boost::shared_ptr<DerivedData>* dd);
void ComputeAverage ();
boost::shared_ptr<RegularGridAverage> GetScalarAverage ()
{
return boost::static_pointer_cast<RegularGridAverage> (
m_scalarAverage);
}
boost::shared_ptr<RegularGridAverage> GetT1KDE ()
{
return boost::static_pointer_cast<RegularGridAverage> (
m_t1KDE);
}
boost::shared_ptr<RegularGridAverage> GetBodyOrOtherScalarAverage ();
boost::shared_ptr<RegularGridAverage> GetVelocityAverage ()
{
return boost::static_pointer_cast<RegularGridAverage> (
m_velocityAverage);
}
boost::shared_ptr<RegularGridAverage> GetDeformationAverage ()
{
return boost::static_pointer_cast<RegularGridAverage> (
m_deformationAverage);
}
};
#endif //__ATTRIBUTES_AVERAGE3D_H__
// Local Variables:
// mode: c++
// End: