-
Notifications
You must be signed in to change notification settings - Fork 0
/
AttributeAverages2D.h
60 lines (50 loc) · 1.34 KB
/
AttributeAverages2D.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
/**
* @file AttributeAverages2D.h
* @author Dan R. Lipsa
* @date 19 July 2012
* @brief Computes the average for several attributes in a 2D
* view. Casts the computed averages to the proper 2D types.
* @ingroup average
*/
#ifndef __ATTRIBUTES_AVERAGE2D_H__
#define __ATTRIBUTES_AVERAGE2D_H__
#include "AttributeAverages.h"
class ForceAverage;
class ScalarAverage;
class T1KDE2D;
class TensorAverage;
class WidgetGl;
class VectorAverage;
class ViewSettings;
/**
*
* @brief Computes the average for several attributes in a 2D
* view. Casts the computed averages to the proper 2D types.
*/
class AttributeAverages2D : public AttributeAverages
{
public:
AttributeAverages2D (ViewNumber::Enum viewNumber,
const WidgetGl& widgetGl);
ScalarAverage& GetScalarAverage () const
{
return *boost::static_pointer_cast<ScalarAverage> (m_scalarAverage);
}
T1KDE2D& GetT1KDE () const
{
return *boost::static_pointer_cast<T1KDE2D> (m_t1KDE);
}
TensorAverage& GetDeformationAverage () const
{
return *boost::static_pointer_cast<TensorAverage> (
m_deformationAverage);
}
VectorAverage& GetVelocityAverage () const
{
return *boost::static_pointer_cast<VectorAverage> (m_velocityAverage);
}
};
#endif //__ATTRIBUTES_AVERAGE2D_H__
// Local Variables:
// mode: c++
// End: