20 class Ui_GlobalShiftAndScaleDlg;
21 class QAbstractButton;
51 void setShiftFieldsPrecision(
int precision);
60 double getScale()
const;
69 void showScaleItems(
bool state);
72 void showApplyAllButton(
bool state);
74 void showApplyButton(
bool state);
76 void showNoButton(
bool state);
78 void showCancelButton(
bool state);
81 void showWarning(
bool state);
84 void showTitle(
bool state);
87 void showKeepGlobalPosCheckbox(
bool state);
89 bool keepGlobalPos()
const;
91 void setKeepGlobalPos(
bool state);
94 void showPreserveShiftOnSave(
bool state);
96 bool preserveShiftOnSave()
const;
98 void setPreserveShiftOnSave(
bool state);
110 int addShiftInfo(
const std::vector<ecvGlobalShiftManager::ShiftInfo>& info);
116 size_t infoCount()
const {
return m_defaultInfos.size(); }
119 void setCurrentProfile(
int index);
130 void onLoadIndexChanged(
int);
132 void onGlobalPosCheckBoxToggled(
bool);
134 void onClick(QAbstractButton* button);
136 void updateGlobalAndLocalSystems();
138 void displayMoreInfo();
148 void setScale(
double scale);
151 void updateLocalSystem();
153 void updateGlobalSystem();
160 bool loadInfoFromFile(QString
filename);
163 Ui_GlobalShiftAndScaleDlg*
m_ui;
Dialog for selection of cloud center.
size_t infoCount() const
Returns the number of info currently stored.
bool m_applyAll
Whether shift should be applied to all files.
CCVector3d m_localPoint
Local coordinate system point (reversed mode only)
bool m_cancel
Whether the user has clicked on Cancel or not.
int m_activeInfoIndex
Active info entry index.
std::vector< ecvGlobalShiftManager::ShiftInfo > m_defaultInfos
Default infos (typically loaded from the global_shift_list.txt' file)
static void SetLastInfo(const CCVector3d &shift, double scale)
Sets the last shift and scale information.
double m_originalDiagonal
Original coordinate system diagonal.
bool applyAll() const
Whether shift should be applied to all files.
bool cancelled() const
Whether the user has clicked on the cancel button or not.
double m_localDiagonal
Local coordinate system diagonal (reversed mode only)
bool m_reversedMode
Whether the reverse mode is active or not.
Ui_GlobalShiftAndScaleDlg * m_ui
Associated UI.
CCVector3d m_originalPoint
Original coordinate system point.