qCC version 2.13.alpha (Qt) - 31 May 2022
Main CloudCompare application (GUI & command line)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ccBoundingBoxEditorDlg Class Reference

Dialog to define the extents of a 3D box. More...

#include <ccBoundingBoxEditorDlg.h>

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

Public Member Functions

 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 ()
 

Protected Member Functions

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.
 

Protected Attributes

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.
 

Detailed Description

Dialog to define the extents of a 3D box.

Constructor & Destructor Documentation

◆ ccBoundingBoxEditorDlg()

ccBoundingBoxEditorDlg::ccBoundingBoxEditorDlg ( bool  showBoxAxes,
bool  showRasterGridImage,
QWidget *  parent = nullptr 
)
explicit

Default constructor.

Parameters
showBoxAxesWhether to display the box axes or not
showRasterGridImageWhether to display the raster grid image or not
parentParent widget

Member Function Documentation

◆ setBaseBBox()

void ccBoundingBoxEditorDlg::setBaseBBox ( const ccBBox &  box,
bool  isMinimal = true 
)

Sets the (minimal) base box.

Parameters
boxbase box
isMinimalset 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
boxbounding box

◆ 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: