Mercurial > hg > aimc
comparison src/Modules/Output/Graphics/GraphicsViewTime.cc @ 121:3cdaa81c3aca
- Massive refactoring to make module tree stuff work. In theory we now support configuration files again. The graphics stuff is untested as yet.
author | tomwalters |
---|---|
date | Mon, 18 Oct 2010 04:42:28 +0000 |
parents | 18237d55e346 |
children | a9cb396529c2 |
comparison
equal
deleted
inserted
replaced
120:89e4facffd93 | 121:3cdaa81c3aca |
---|---|
34 | 34 |
35 namespace aimc { | 35 namespace aimc { |
36 | 36 |
37 GraphicsViewTime::GraphicsViewTime(Parameters *pParam) | 37 GraphicsViewTime::GraphicsViewTime(Parameters *pParam) |
38 : GraphicsView(pParam) { | 38 : GraphicsView(pParam) { |
39 module_description_ = "Graphics output."; | |
40 module_identifier_ = "graphics_time"; | |
41 module_type_ = "output"; | |
42 module_version_ = "$Id: $"; | |
39 } | 43 } |
40 | 44 |
41 GraphicsViewTime *GraphicsViewTime::Clone(GraphicsOutputDevice *pDev) { | 45 GraphicsViewTime *GraphicsViewTime::Clone(GraphicsOutputDevice *pDev) { |
42 GraphicsViewTime *pView = new GraphicsViewTime(m_pParam); | 46 GraphicsViewTime *pView = new GraphicsViewTime(m_pParam); |
43 // Copy everything | 47 // Copy everything |
73 m_pAxisFreq->m_sLabel ? m_pAxisFreq->m_sLabel : "", | 77 m_pAxisFreq->m_sLabel ? m_pAxisFreq->m_sLabel : "", |
74 m_pAxisFreq->m_fMin, m_pAxisFreq->m_fMax, | 78 m_pAxisFreq->m_fMin, m_pAxisFreq->m_fMax, |
75 m_pAxisFreq->m_pScale->getName()); | 79 m_pAxisFreq->m_pScale->getName()); |
76 m_pDev->gText2f(0.0025f, 0.35f, sTxt, true); | 80 m_pDev->gText2f(0.0025f, 0.35f, sTxt, true); |
77 snprintf(sTxt, sizeof(sTxt) / sizeof(sTxt[0]), | 81 snprintf(sTxt, sizeof(sTxt) / sizeof(sTxt[0]), |
78 _S("%s [%.2f..%.2f ms, %s scale]"), | 82 _S("%s [%.2f..%.2f ms, %s scale]"), |
79 m_pAxisX->m_sLabel ? m_pAxisX->m_sLabel : "", | 83 m_pAxisX->m_sLabel ? m_pAxisX->m_sLabel : "", |
80 m_pAxisX->m_fMin, | 84 m_pAxisX->m_fMin, |
81 m_pAxisX->m_fMax, | 85 m_pAxisX->m_fMax, |
82 m_pAxisX->m_pScale->getName()); | 86 m_pAxisX->m_pScale->getName()); |
83 | 87 |
84 m_pDev->gText2f(m_fMarginLeft, 0.0025f, sTxt, false); | 88 m_pDev->gText2f(m_fMarginLeft, 0.0025f, sTxt, false); |
85 | 89 |
86 // Frame time | 90 // Frame time |
87 //snprintf(sTxt, sizeof(sTxt)/sizeof(sTxt[0]), _S("t=%.0f ms"), | 91 //snprintf(sTxt, sizeof(sTxt)/sizeof(sTxt[0]), _S("t=%.0f ms"), |