QXRD  0.11.16
Classes | Functions
qxrdcenterfinder.cpp File Reference

(Commit a65ccc9... : jennings : 2016-03-15 14:00:18 -0500)

#include "qxrdcenterfinder.h"
#include "qxrdcenterfinderdialog.h"
#include "qxrdcenterfinderpicker.h"
#include "qxrdwindow.h"
#include <qwt_plot_marker.h>
#include "qcepmutexlocker.h"
#include "levmar.h"
#include <QMessageBox>
#include "qxrdapplication.h"
#include <QtConcurrentMap>
#include "qxrddebug.h"
#include "qxrdfitterpeakpoint.h"
#include "qxrdfitterringpoint.h"
#include "qxrdfitterringcircle.h"
#include "qxrdfitterringellipse.h"
#include <QVector>
#include "triangulate.h"
#include "qxrdplanefitter.h"
#include "qcepdatasetmodel-ptr.h"
#include "qcepdatasetmodel.h"
#include "qxrdcalibrantlibrary.h"
Include dependency graph for qxrdcenterfinder.cpp:

Go to the source code of this file.

Classes

class  QuadInt
 

Functions

static int XYZCompare (const void *v1, const void *v2)
 
static int compareXYX (const XYZ &a, const XYZ &b)
 
static int differentVertices (const XYZ &a, const XYZ &b)
 
static int nearby (double x1, double y1, double x2, double y2)
 

Function Documentation

static int compareXYX ( const XYZ a,
const XYZ b 
)
static

Definition at line 1417 of file qxrdcenterfinder.cpp.

References XYZ::x.

Referenced by QxrdCenterFinder::calculateCalibration().

1418 {
1419  return a.x < b.x;
1420 }
double x
Definition: triangulate.c:14

Here is the caller graph for this function:

static int differentVertices ( const XYZ a,
const XYZ b 
)
static

Definition at line 1422 of file qxrdcenterfinder.cpp.

References XYZ::x, and XYZ::y.

Referenced by QxrdCenterFinder::calculateCalibration().

1423 {
1424  return (a.x != b.x) || (a.y != b.y);
1425 }
double x
Definition: triangulate.c:14
double y
Definition: triangulate.c:14

Here is the caller graph for this function:

static int nearby ( double  x1,
double  y1,
double  x2,
double  y2 
)
static

Definition at line 1427 of file qxrdcenterfinder.cpp.

Referenced by QxrdCenterFinder::calculateCalibration().

1428 {
1429  double dx = x1 - x2;
1430  double dy = y1 - y2;
1431 
1432  return sqrt(dx*dx + dy*dy) < 100;
1433 }

Here is the caller graph for this function:

static int XYZCompare ( const void *  v1,
const void *  v2 
)
static

Definition at line 1404 of file qxrdcenterfinder.cpp.

References XYZ::x.

1405 {
1406  XYZ *p1,*p2;
1407  p1 = (XYZ*) v1;
1408  p2 = (XYZ*) v2;
1409  if (p1->x < p2->x)
1410  return(-1);
1411  else if (p1->x > p2->x)
1412  return(1);
1413  else
1414  return(0);
1415 }
double x
Definition: triangulate.c:14