Dialog to define the extents of a 3D box.
More...
#include <ccBoundingBoxEditorDlg.h>
|
| ccBoundingBoxEditorDlg (bool showBoxAxes, bool showRasterGridImage, QWidget *parent=nullptr) |
| Default constructor. More...
|
|
const ccBBox & | getBox () const |
| Returns bounding box.
|
|
void | setBox (const ccBBox &box) |
| Overrides the current bounding box. More...
|
|
void | setBaseBBox (const ccBBox &box, bool isMinimal=true) |
| Sets the (minimal) base box. More...
|
|
void | setBoxAxes (const CCVector3 &X, const CCVector3 &Y, const CCVector3 &Z) |
| Sets the box axes.
|
|
void | getBoxAxes (CCVector3d &X, CCVector3d &Y, CCVector3d &Z) |
| Returns the box axes.
|
|
void | showInclusionWarning (bool state) |
| Whether the warning about bounding box inclusion in the base one should be displayed or not. More...
|
|
void | forceKeepSquare (bool state) |
| Forces the 'keep square' mode.
|
|
bool | keepSquare () const |
| Returns whether 'keep square' mode is enabled or not.
|
|
void | set2DMode (bool state, unsigned char dim) |
| Sets 2D mode (the line 'dim' will be hidden)
|
|
virtual int | exec () |
|
|
void | squareModeActivated (bool) |
|
void | resetToDefault () |
|
void | resetToLast () |
|
void | cancel () |
|
void | saveBoxAndAccept () |
|
int | computeBestDialogHeight (bool showBoxAxes, bool showRasterGridImage) const |
|
void | updateXWidth (double) |
|
void | updateYWidth (double) |
|
void | updateZWidth (double) |
|
void | updateCurrentBBox (double dummy=0.0) |
| Updates current box based on the dialog state.
|
|
void | reflectChanges (int dummy=0) |
| Reflects changes on bbox.
|
|
void | onAxisValueChanged (double) |
| Slot called anytime a component of the box axes is modified.
|
|
void | fromClipboardClicked () |
|
void | toClipboardClicked () |
|
void | checkBaseInclusion () |
| Checks if currentBox includes baseBox.
|
|
|
ccBBox | m_baseBBox |
| Base box (invalid if none)
|
|
bool | m_baseBoxIsMinimal |
| Whether base box is minimal or not.
|
|
ccBBox | m_currentBBox |
| Current box.
|
|
ccBBox | m_initBBox |
| Box state at dialog start.
|
|
bool | m_showInclusionWarning |
| Whether to show 'inclusion' warning or not.
|
|
Dialog to define the extents of a 3D box.
◆ ccBoundingBoxEditorDlg()
ccBoundingBoxEditorDlg::ccBoundingBoxEditorDlg |
( |
bool |
showBoxAxes, |
|
|
bool |
showRasterGridImage, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
|
explicit |
Default constructor.
- Parameters
-
showBoxAxes | Whether to display the box axes or not |
showRasterGridImage | Whether to display the raster grid image or not |
parent | Parent widget |
◆ setBaseBBox()
void ccBoundingBoxEditorDlg::setBaseBBox |
( |
const ccBBox & |
box, |
|
|
bool |
isMinimal = true |
|
) |
| |
Sets the (minimal) base box.
- Parameters
-
box | base box |
isMinimal | set whether the user must define a bounding-box at least as large as this one |
◆ setBox()
void ccBoundingBoxEditorDlg::setBox |
( |
const ccBBox & |
box | ) |
|
Overrides the current bounding box.
- Parameters
-
◆ showInclusionWarning()
void ccBoundingBoxEditorDlg::showInclusionWarning |
( |
bool |
state | ) |
|
|
inline |
Whether the warning about bounding box inclusion in the base one should be displayed or not.
True by default.
The documentation for this class was generated from the following files:
- ccBoundingBoxEditorDlg.h
- ccBoundingBoxEditorDlg.cpp