Changeset 12055
- Timestamp:
- 09/09/11 10:12:06 (13 years ago)
- Location:
- trunk/FACT++/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/BasicGlCamera.cc
r12052 r12055 6 6 #include <sstream> 7 7 #include "src/tools.h" 8 9 using namespace std;; 8 10 9 11 const PixelMapEntry PixelMap::empty = { 0, 0, 0, 0, 0, 0 }; … … 268 270 { 269 271 } 270 void BasicGlCamera::assignPixelMap( PixelMap& map)272 void BasicGlCamera::assignPixelMap(const PixelMap& map) 271 273 { 272 274 fPixelMap = map; … … 277 279 } 278 280 } 279 void BasicGlCamera::assignTriggerPatchesMap( vector<int>& pa)281 void BasicGlCamera::assignTriggerPatchesMap(const vector<int>& pa) 280 282 { 281 283 vector<vector<int> > intervec; … … 296 298 297 299 //now construct the correspondance between pixels and patches 298 for (i nt i=0;i<NTMARK;i++)300 for (i=0;i<NTMARK;i++) 299 301 for (int j=0;j<9;j++) 300 302 pixelsPatch[softwareMapping[patches[i][j]]] = i; 301 303 302 for (i nt i=0;i<1440;i++)304 for (i=0;i<1440;i++) 303 305 updateNeighbors(i); 304 306 … … 379 381 380 382 mean /= ACTUAL_NUM_PIXELS; 381 rms = sqrt(rms/ACTUAL_NUM_PIXELS - sum * sum);383 rms = sqrt(rms/ACTUAL_NUM_PIXELS - mean * mean); 382 384 383 385 multiset<double>::iterator it = medianSet.begin(); -
trunk/FACT++/gui/BasicGlCamera.h
r12012 r12055 9 9 #define ACTUAL_NUM_PIXELS 1440 10 10 11 #include <set> 12 #include <vector> 13 11 14 #include <QtOpenGL/QGLWidget> 12 15 #include <QtGui/QMouseEvent> 13 #include <vector>14 16 15 17 #include <QtGui/QRadioButton> … … 17 19 #include <QtGui/QButtonGroup> 18 20 19 #include <set>20 21 21 #include "src/PixelMap.h" 22 22 23 using namespace std;24 23 //#include <QtGui/QMouseEvent> 25 24 ///structure for storing edges of hexagons (for blurry display) … … 69 68 GLfloat tooLowValueCoulour[3]; 70 69 71 st ring dataText;72 st ring unitsText;73 st ring titleText;70 std::string dataText; 71 std::string unitsText; 72 std::string titleText; 74 73 75 void setUnits(const st ring& units);76 void setTitle(const st ring& title);74 void setUnits(const std::string& units); 75 void setTitle(const std::string& title); 77 76 void SetWhite(int idx); 78 77 void SetMin(int64_t min); … … 80 79 void SetAutoRefresh(bool on); 81 80 void updateCamera(); 82 void assignPixelMap( PixelMap& );83 void assignTriggerPatchesMap( vector<int>& );81 void assignPixelMap(const PixelMap& ); 82 void assignTriggerPatchesMap(const std::vector<int>& ); 84 83 85 84 float ss[5];// = {0.00, 0.25, 0.5, 0.75, 1.00}; … … 125 124 int fPixelStride; 126 125 int fcSlice; 127 vector<double>fData;126 std::vector<double>fData; 128 127 129 128 // bool recalcColorPlease; … … 133 132 GLfloat pixelsColor[NPIX][3]; 134 133 static GLfloat verticesList[NPIX*6][2]; 135 static vector<edge> patchesIndices[160];134 static std::vector<edge> patchesIndices[160]; 136 135 static int verticesIndices[NPIX][6]; 137 136 static int pixelsPatch[NPIX];
Note:
See TracChangeset
for help on using the changeset viewer.