QXRD  0.11.16
Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
QxrdCenterFinderDialog Class Reference

#include <qxrdcenterfinderdialog.h>

Inheritance diagram for QxrdCenterFinderDialog:
Inheritance graph
[legend]
Collaboration diagram for QxrdCenterFinderDialog:
Collaboration graph
[legend]

Public Slots

void centerMoveUpLeft ()
 
void centerMoveUp ()
 
void centerMoveUpRight ()
 
void centerMoveRight ()
 
void centerMoveDownRight ()
 
void centerMoveDown ()
 
void centerMoveDownLeft ()
 
void centerMoveLeft ()
 
void onStepSizesChanged ()
 
void onCenterChanged (double cx, double cy)
 
void onImplementTiltChanged (bool imp)
 

Public Member Functions

 QxrdCenterFinderDialog (QxrdCenterFinderPtr cen, QWidget *parent=0)
 
virtual ~QxrdCenterFinderDialog ()
 

Private Member Functions

void moveCenter (int dx, int dy)
 

Private Attributes

QxrdCenterFinderPtr m_CenterFinder
 

Detailed Description

Definition at line 8 of file qxrdcenterfinderdialog.h.

Constructor & Destructor Documentation

QxrdCenterFinderDialog::QxrdCenterFinderDialog ( QxrdCenterFinderPtr  cen,
QWidget *  parent = 0 
)

Definition at line 7 of file qxrdcenterfinderdialog.cpp.

References centerMoveDown(), centerMoveDownLeft(), centerMoveDownRight(), centerMoveLeft(), centerMoveRight(), centerMoveUp(), centerMoveUpLeft(), centerMoveUpRight(), DEBUG_CONSTRUCTORS, m_CenterFinder, onImplementTiltChanged(), onStepSizesChanged(), qcepDebug(), QcepDoubleProperty::valueChanged(), and QcepBoolProperty::valueChanged().

8  : QDockWidget(parent),
9  m_CenterFinder(cen)
10 {
12  printf("QxrdCenterFinderDialog::QxrdCenterFinderDialog(%p)\n", this);
13  }
14 
15  setupUi(this);
16 
17  connect(m_CenterMoveUpLeft, &QAbstractButton::clicked, this, &QxrdCenterFinderDialog::centerMoveUpLeft);
18  connect(m_CenterMoveUp, &QAbstractButton::clicked, this, &QxrdCenterFinderDialog::centerMoveUp);
19  connect(m_CenterMoveUpRight, &QAbstractButton::clicked, this, &QxrdCenterFinderDialog::centerMoveUpRight);
20  connect(m_CenterMoveRight, &QAbstractButton::clicked, this, &QxrdCenterFinderDialog::centerMoveRight);
21  connect(m_CenterMoveDownRight, &QAbstractButton::clicked, this, &QxrdCenterFinderDialog::centerMoveDownRight);
22  connect(m_CenterMoveDown, &QAbstractButton::clicked, this, &QxrdCenterFinderDialog::centerMoveDown);
23  connect(m_CenterMoveDownLeft, &QAbstractButton::clicked, this, &QxrdCenterFinderDialog::centerMoveDownLeft);
24  connect(m_CenterMoveLeft, &QAbstractButton::clicked, this, &QxrdCenterFinderDialog::centerMoveLeft);
25 
26  m_CenterFinder -> prop_CenterX() -> linkTo(m_CenterX);
27  m_CenterFinder -> prop_CenterY() -> linkTo(m_CenterY);
28  m_CenterFinder -> prop_CenterStep() -> linkTo(m_CenterStep);
29  m_CenterFinder -> prop_ImplementTilt() -> linkTo(m_ImplementTilt);
30  m_CenterFinder -> prop_DetectorDistance() -> linkTo(m_DetectorDistance);
31  m_CenterFinder -> prop_DetectorDistanceStep() -> linkTo(m_DetectorDistanceStep);
32  m_CenterFinder -> prop_DetectorTilt() -> linkTo(m_DetectorTilt);
33  m_CenterFinder -> prop_DetectorTiltStep() -> linkTo(m_DetectorTiltStep);
34  m_CenterFinder -> prop_TiltPlaneRotation() -> linkTo(m_TiltPlaneRotation);
35  m_CenterFinder -> prop_TiltPlaneRotationStep() -> linkTo(m_TiltPlaneRotationStep);
36  m_CenterFinder -> prop_DetectorXPixelSize() -> linkTo(m_DetectorXPixelSize);
37  m_CenterFinder -> prop_DetectorYPixelSize() -> linkTo(m_DetectorYPixelSize);
38  m_CenterFinder -> prop_Energy() -> linkTo(m_Energy);
39 
40  m_CenterFinder -> prop_PeakFitRadius() -> linkTo(m_PeakFitRadius);
41  m_CenterFinder -> prop_PeakFitDebug() -> linkTo(m_PeakFitDebug);
42  m_CenterFinder -> prop_PeakFitIterations() -> linkTo(m_PeakFitIterations);
43  m_CenterFinder -> prop_RingIndex() -> linkTo(m_RingIndex);
44  m_CenterFinder -> prop_SubtractRingAverages() -> linkTo(m_SubtractRingAverages);
45  m_CenterFinder -> prop_RingAverageDisplacement() -> linkTo(m_RingAverageDisplacement);
46  m_CenterFinder -> prop_FittedWidthMin() -> linkTo(m_FittedWidthMin);
47  m_CenterFinder -> prop_FittedWidthMax() -> linkTo(m_FittedWidthMax);
48  m_CenterFinder -> prop_FittedHeightMinRatio() -> linkTo(m_FittedHeightMinRatio);
49  m_CenterFinder -> prop_FittedPositionMaxDistance() -> linkTo(m_FittedPositionMaxDistance);
50  m_CenterFinder -> prop_FitPowderPointPosition() -> linkTo(m_FitPowderPointPosition);
51 
53 
54  onImplementTiltChanged(m_CenterFinder -> get_ImplementTilt());
55 
60 
62 }
qint64 qcepDebug(int cond)
Definition: qcepdebug.cpp:26
QxrdCenterFinderPtr m_CenterFinder
void valueChanged(double val, int index)
void valueChanged(bool val, int index)

Here is the call graph for this function:

QxrdCenterFinderDialog::~QxrdCenterFinderDialog ( )
virtual

Definition at line 64 of file qxrdcenterfinderdialog.cpp.

References DEBUG_CONSTRUCTORS, and qcepDebug().

65 {
67  printf("QxrdCenterFinderDialog::~QxrdCenterFinderDialog(%p)\n", this);
68  }
69 }
qint64 qcepDebug(int cond)
Definition: qcepdebug.cpp:26

Here is the call graph for this function:

Member Function Documentation

void QxrdCenterFinderDialog::centerMoveDown ( )
slot

Definition at line 128 of file qxrdcenterfinderdialog.cpp.

References moveCenter().

Referenced by QxrdWindow::initialize(), and QxrdCenterFinderDialog().

129 {
130  moveCenter(0,-1);
131 }
void moveCenter(int dx, int dy)

Here is the call graph for this function:

Here is the caller graph for this function:

void QxrdCenterFinderDialog::centerMoveDownLeft ( )
slot

Definition at line 133 of file qxrdcenterfinderdialog.cpp.

References moveCenter().

Referenced by QxrdCenterFinderDialog().

134 {
135  moveCenter(-1,-1);
136 }
void moveCenter(int dx, int dy)

Here is the call graph for this function:

Here is the caller graph for this function:

void QxrdCenterFinderDialog::centerMoveDownRight ( )
slot

Definition at line 123 of file qxrdcenterfinderdialog.cpp.

References moveCenter().

Referenced by QxrdCenterFinderDialog().

124 {
125  moveCenter(1,-1);
126 }
void moveCenter(int dx, int dy)

Here is the call graph for this function:

Here is the caller graph for this function:

void QxrdCenterFinderDialog::centerMoveLeft ( )
slot

Definition at line 138 of file qxrdcenterfinderdialog.cpp.

References moveCenter().

Referenced by QxrdWindow::initialize(), and QxrdCenterFinderDialog().

139 {
140  moveCenter(-1,0);
141 }
void moveCenter(int dx, int dy)

Here is the call graph for this function:

Here is the caller graph for this function:

void QxrdCenterFinderDialog::centerMoveRight ( )
slot

Definition at line 118 of file qxrdcenterfinderdialog.cpp.

References moveCenter().

Referenced by QxrdWindow::initialize(), and QxrdCenterFinderDialog().

119 {
120  moveCenter(1,0);
121 }
void moveCenter(int dx, int dy)

Here is the call graph for this function:

Here is the caller graph for this function:

void QxrdCenterFinderDialog::centerMoveUp ( )
slot

Definition at line 108 of file qxrdcenterfinderdialog.cpp.

References moveCenter().

Referenced by QxrdWindow::initialize(), and QxrdCenterFinderDialog().

109 {
110  moveCenter(0,1);
111 }
void moveCenter(int dx, int dy)

Here is the call graph for this function:

Here is the caller graph for this function:

void QxrdCenterFinderDialog::centerMoveUpLeft ( )
slot

Definition at line 103 of file qxrdcenterfinderdialog.cpp.

References moveCenter().

Referenced by QxrdCenterFinderDialog().

104 {
105  moveCenter(-1,1);
106 }
void moveCenter(int dx, int dy)

Here is the call graph for this function:

Here is the caller graph for this function:

void QxrdCenterFinderDialog::centerMoveUpRight ( )
slot

Definition at line 113 of file qxrdcenterfinderdialog.cpp.

References moveCenter().

Referenced by QxrdCenterFinderDialog().

114 {
115  moveCenter(1,1);
116 }
void moveCenter(int dx, int dy)

Here is the call graph for this function:

Here is the caller graph for this function:

void QxrdCenterFinderDialog::moveCenter ( int  dx,
int  dy 
)
private

Definition at line 97 of file qxrdcenterfinderdialog.cpp.

References m_CenterFinder.

Referenced by centerMoveDown(), centerMoveDownLeft(), centerMoveDownRight(), centerMoveLeft(), centerMoveRight(), centerMoveUp(), centerMoveUpLeft(), and centerMoveUpRight().

98 {
99  m_CenterFinder -> set_CenterX(m_CenterFinder -> get_CenterX() + m_CenterFinder -> get_CenterStep()*dx);
100  m_CenterFinder -> set_CenterY(m_CenterFinder -> get_CenterY() + m_CenterFinder -> get_CenterStep()*dy);
101 }
QxrdCenterFinderPtr m_CenterFinder

Here is the caller graph for this function:

void QxrdCenterFinderDialog::onCenterChanged ( double  cx,
double  cy 
)
slot

Definition at line 89 of file qxrdcenterfinderdialog.cpp.

References m_CenterFinder.

90 {
91  m_CenterFinder -> set_CenterX(cx);
92  m_CenterFinder -> set_CenterY(cy);
93 
94 // printf("QxrdCenterFinderDialog::onCenterChanged(%g,%g)\n", cx, cy);
95 }
QxrdCenterFinderPtr m_CenterFinder
void QxrdCenterFinderDialog::onImplementTiltChanged ( bool  imp)
slot

Definition at line 80 of file qxrdcenterfinderdialog.cpp.

Referenced by QxrdCenterFinderDialog().

81 {
82 // m_DetectorDistance -> setEnabled(true /*imp*/);
83  m_DetectorTilt -> setEnabled(imp);
84  m_DetectorTiltStep -> setEnabled(imp);
85  m_TiltPlaneRotation -> setEnabled(imp);
86  m_TiltPlaneRotationStep -> setEnabled(imp);
87 }

Here is the caller graph for this function:

void QxrdCenterFinderDialog::onStepSizesChanged ( )
slot

Definition at line 71 of file qxrdcenterfinderdialog.cpp.

Referenced by QxrdCenterFinderDialog().

72 {
73  m_CenterX -> setSingleStep(m_CenterStep->value());
74  m_CenterY -> setSingleStep(m_CenterStep->value());
75  m_DetectorDistance -> setSingleStep(m_DetectorDistanceStep->value());
76  m_DetectorTilt -> setSingleStep(m_DetectorTiltStep->value());
77  m_TiltPlaneRotation -> setSingleStep(m_TiltPlaneRotationStep->value());
78 }

Here is the caller graph for this function:

Member Data Documentation

QxrdCenterFinderPtr QxrdCenterFinderDialog::m_CenterFinder
private

Definition at line 34 of file qxrdcenterfinderdialog.h.

Referenced by moveCenter(), onCenterChanged(), and QxrdCenterFinderDialog().


The documentation for this class was generated from the following files: