qCC  version 2.5.4 (Qt) - 19 Apr. 2014
 All Classes Functions Variables Typedefs Enumerations
Public Slots | Public Member Functions | Protected Slots | 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 Slots

virtual int exec ()
 

Public Member Functions

 ccBoundingBoxEditorDlg (QWidget *parent=0)
 Default constructor.
 
ccBBox getBox () const
 Returns bounding box.
 
void setBaseBBox (const ccBBox &box, bool isMinimal=true)
 Sets (minimal) base box. More...
 
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 ('dim' line will be hidden)
 

Protected Slots

void squareModeActivated (bool)
 
void resetToDefault ()
 
void resetToLast ()
 
void cancel ()
 
void saveBoxAndAccept ()
 
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.
 

Protected Member Functions

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.

Member Function Documentation

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

Sets (minimal) base box.

Parameters
boxbase box
isMinimalset whether the user must define a bounding-box at least as large as this one
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: