diff --git a/Code/FBSD/DirectionalScanner/scannerprovider.cpp b/Code/FBSD/DirectionalScanner/scannerprovider.cpp index 8d4d4926429304368b9071a3939ba759b315cf96..4f01c7b640e41e5604cd38c1045e485987f1452d 100755 --- a/Code/FBSD/DirectionalScanner/scannerprovider.cpp +++ b/Code/FBSD/DirectionalScanner/scannerprovider.cpp @@ -14,9 +14,9 @@ DirectionalScanner *ScannerProvider::getScanner (Pt2i p1, Pt2i p2, { // Enforces P1 to be lower than P2 // or to left of P2 in case of equality - lastScanReversed = (p1.y () > p2.y ()) - || ((p1.y () == p2.y ()) && (p1.x () > p2.x ())); - if (lastScanReversed) + last_scan_reversed = (p1.y () > p2.y ()) + || ((p1.y () == p2.y ()) && (p1.x () > p2.x ())); + if (last_scan_reversed) { Pt2i tmp (p1); p1.set (p2); @@ -122,7 +122,8 @@ DirectionalScanner *ScannerProvider::getScanner (Pt2i centre, Vr2i normal, // Orients rightwards int a = normal.x (); int b = normal.y (); // as equation is (ax + by = c) - if (a < 0 || (a == 0 && b < 0)) + last_scan_reversed = (a < 0 || (a == 0 && b < 0)); + if (last_scan_reversed) { a = -a; b = -b; diff --git a/Code/FBSD/DirectionalScanner/scannerprovider.h b/Code/FBSD/DirectionalScanner/scannerprovider.h index f8af1f7d32565915ae335f67e1bf3d5ceb56de53..a731e3def86accb9edd041f8c09467b906db7377 100755 --- a/Code/FBSD/DirectionalScanner/scannerprovider.h +++ b/Code/FBSD/DirectionalScanner/scannerprovider.h @@ -17,7 +17,7 @@ public: /** * \brief Builds a directional scanner provider. */ - ScannerProvider () : isOrtho (false), lastScanReversed (false), + ScannerProvider () : isOrtho (false), last_scan_reversed (false), xmin (0), ymin (0), xmax (100), ymax (100) { } /** @@ -54,7 +54,7 @@ public: * The scan strip is composed of parallel scans (line segments), * the first one defined by its center, its direct vector, and its length. * @param centre Initial scan center. - * @param normal Initial scan direct vector. + * @param normal Initial scan director vector. * @param length Initial scan length. * @param controlable Control modality (true for an adaptive scanner). */ @@ -64,7 +64,7 @@ public: /** * \brief Returns whether the currently used scan end points were permutated. */ - inline bool isLastScanReversed () const { return lastScanReversed; } + inline bool isLastScanReversed () const { return last_scan_reversed; } /** * \brief Sets the orthogonal scanner modality. @@ -78,7 +78,7 @@ private: /** Orthogonal scanner modality. */ bool isOrtho; /** Last scan end points permutation modality. */ - bool lastScanReversed; + bool last_scan_reversed; /** Scan area lowest x coordinate. */ int xmin; diff --git a/Expes/Testers/TestLines/DirectionalScanner/scannerprovider.cpp b/Expes/Testers/TestLines/DirectionalScanner/scannerprovider.cpp index 8d4d4926429304368b9071a3939ba759b315cf96..4f01c7b640e41e5604cd38c1045e485987f1452d 100644 --- a/Expes/Testers/TestLines/DirectionalScanner/scannerprovider.cpp +++ b/Expes/Testers/TestLines/DirectionalScanner/scannerprovider.cpp @@ -14,9 +14,9 @@ DirectionalScanner *ScannerProvider::getScanner (Pt2i p1, Pt2i p2, { // Enforces P1 to be lower than P2 // or to left of P2 in case of equality - lastScanReversed = (p1.y () > p2.y ()) - || ((p1.y () == p2.y ()) && (p1.x () > p2.x ())); - if (lastScanReversed) + last_scan_reversed = (p1.y () > p2.y ()) + || ((p1.y () == p2.y ()) && (p1.x () > p2.x ())); + if (last_scan_reversed) { Pt2i tmp (p1); p1.set (p2); @@ -122,7 +122,8 @@ DirectionalScanner *ScannerProvider::getScanner (Pt2i centre, Vr2i normal, // Orients rightwards int a = normal.x (); int b = normal.y (); // as equation is (ax + by = c) - if (a < 0 || (a == 0 && b < 0)) + last_scan_reversed = (a < 0 || (a == 0 && b < 0)); + if (last_scan_reversed) { a = -a; b = -b; diff --git a/Expes/Testers/TestLines/DirectionalScanner/scannerprovider.h b/Expes/Testers/TestLines/DirectionalScanner/scannerprovider.h index f8af1f7d32565915ae335f67e1bf3d5ceb56de53..a731e3def86accb9edd041f8c09467b906db7377 100644 --- a/Expes/Testers/TestLines/DirectionalScanner/scannerprovider.h +++ b/Expes/Testers/TestLines/DirectionalScanner/scannerprovider.h @@ -17,7 +17,7 @@ public: /** * \brief Builds a directional scanner provider. */ - ScannerProvider () : isOrtho (false), lastScanReversed (false), + ScannerProvider () : isOrtho (false), last_scan_reversed (false), xmin (0), ymin (0), xmax (100), ymax (100) { } /** @@ -54,7 +54,7 @@ public: * The scan strip is composed of parallel scans (line segments), * the first one defined by its center, its direct vector, and its length. * @param centre Initial scan center. - * @param normal Initial scan direct vector. + * @param normal Initial scan director vector. * @param length Initial scan length. * @param controlable Control modality (true for an adaptive scanner). */ @@ -64,7 +64,7 @@ public: /** * \brief Returns whether the currently used scan end points were permutated. */ - inline bool isLastScanReversed () const { return lastScanReversed; } + inline bool isLastScanReversed () const { return last_scan_reversed; } /** * \brief Sets the orthogonal scanner modality. @@ -78,7 +78,7 @@ private: /** Orthogonal scanner modality. */ bool isOrtho; /** Last scan end points permutation modality. */ - bool lastScanReversed; + bool last_scan_reversed; /** Scan area lowest x coordinate. */ int xmin; diff --git a/Expes/YorkUrbanDB/Scripts/ytimes.c b/Expes/YorkUrbanDB/Scripts/ytimes.c index 3ebf161fbf993d2040c254d4284abfe757297968..cb01756ede28ea045847081ce3e0d82a32cf9e9c 100644 --- a/Expes/YorkUrbanDB/Scripts/ytimes.c +++ b/Expes/YorkUrbanDB/Scripts/ytimes.c @@ -135,10 +135,10 @@ int main (int argc, char *argv[]) } else if (tir[j] == 3) // fbsd { - sprintf (val, "\\cp Images/%s/%s.jpg %sData/image.jpg", - ims[i], ims[i], FBSD_DIR); + sprintf (val, "\\cp Images/%s/%s.jpg %s%sData/image.jpg", + ims[i], ims[i], EXPES_DIR, FBSD_DIR); fprintf (fcom, "%s\n", val); - sprintf (val, "cd %s", FBSD_DIR); + sprintf (val, "cd %s%s", EXPES_DIR, FBSD_DIR); fprintf (fcom, "%s\n", val); sprintf (val, "echo 'TIMING %d (%s) on fbsd'", (i+1), ims[i]); fprintf (fcom, "%s\n", val);