10 #include <ui_boundingBoxEditorDlg.h>
17 public Ui::BoundingBoxEditorDialog {
53 void set2DMode(
bool state,
unsigned char dim);
Dialog to define the extents of a 3D box.
void updateYWidth(double)
void showInclusionWarning(bool state)
void showBoxAxes(bool state)
Whether to display or not the box axes.
void updateCurrentBBox(double dummy=0.0)
Updates current box based on the dialog state.
void toClipboardClicked()
void updateZWidth(double)
void forceKeepSquare(bool state)
Forces the 'keep square' mode.
const ccBBox & getBox() const
Returns bounding box.
void updateXWidth(double)
ccBBox m_baseBBox
Base box (invalid if none)
void onAxisValueChanged(double)
Slot called anytime a component of the box axes is modified.
void getBoxAxes(CCVector3d &X, CCVector3d &Y, CCVector3d &Z)
Returns the box axes.
void fromClipboardClicked()
void squareModeActivated(bool)
void checkBaseInclusion()
Checks if currentBox includes baseBox.
bool m_baseBoxIsMinimal
Whether base box is minimal or not.
void set2DMode(bool state, unsigned char dim)
Sets 2D mode (the line 'dim' will be hidden)
void reflectChanges(int dummy=0)
Reflects changes on bbox.
ccBBox m_initBBox
Box state at dialog start.
ccBBox m_currentBBox
Current box.
ccBoundingBoxEditorDlg(QWidget *parent=0)
Default constructor.
void setBaseBBox(const ccBBox &box, bool isMinimal=true)
Sets the (minimal) base box.
bool m_showInclusionWarning
Whether to show 'inclusion' warning or not.
bool keepSquare() const
Returns whether 'keep square' mode is enabled or not.
void setBoxAxes(const CCVector3 &X, const CCVector3 &Y, const CCVector3 &Z)
Sets the box axes.