-
Notifications
You must be signed in to change notification settings - Fork 0
/
DisplayElement.cpp
47 lines (39 loc) · 1.36 KB
/
DisplayElement.cpp
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
/**
* @file DisplayElement.cpp
* @author Dan R. Lipsa
* @date 1 Feb. 2013
*
* Definitions for methods of the DisplayElement class.
*/
#include "DisplayElement.h"
#include "Settings.h"
// DisplayElementProperty
//======================================================================
template<typename PropertySetter>
ViewNumber::Enum DisplayElementProperty<PropertySetter>::GetViewNumber () const
{
return m_propertySetter.GetViewNumber ();
}
template<typename PropertySetter>
const ViewSettings& DisplayElementProperty<PropertySetter>::GetViewSettings () const
{
return m_settings.GetViewSettings (GetViewNumber ());
}
template<typename PropertySetter>
bool DisplayElementProperty<PropertySetter>::Is2D () const
{
return m_propertySetter.Is2D ();
}
// DisplayElementFocus
//======================================================================
const ViewSettings& DisplayElementFocus::GetViewSettings () const
{
return m_settings.GetViewSettings (GetViewNumber ());
}
// Template instantiations
// ======================================================================
template class DisplayElementProperty<SetterTextureCoordinate>;
template class DisplayElementProperty<SetterVelocity>;
template class DisplayElementProperty<SetterVertexAttribute>;
template class DisplayElementProperty<SetterNop>;
template class DisplayElementProperty<SetterDeformation>;