ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvComputeOctreeDlg.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <ui_computeOctreeDlg.h>
11 
12 // CV_DB_LIB
13 #include <ecvBBox.h>
14 
16 
18 class ccComputeOctreeDlg : public QDialog, public Ui::ComputeOctreeDialog {
19  Q_OBJECT
20 
21 public:
23  ccComputeOctreeDlg(const ccBBox& baseBBox,
24  double minCellSize,
25  QWidget* parent = 0);
26 
29 
31  ComputationMode getMode() const;
32 
34  double getMinCellSize() const;
35 
37  ccBBox getCustomBBox() const;
38 
39 protected:
42 };
ccComputeOctreeDlg::DEFAULT
@ DEFAULT
Definition: ecvComputeOctreeDlg.h:28
ccBoundingBoxEditorDlg::setBaseBBox
void setBaseBBox(const ccBBox &box, bool isMinimal=true)
Sets the (minimal) base box.
Definition: ecvBoundingBoxEditorDlg.cpp:199
ecvBoundingBoxEditorDlg.h
ccComputeOctreeDlg::ComputationMode
ComputationMode
Computation mode.
Definition: ecvComputeOctreeDlg.h:28
ccBBox
Bounding box structure.
Definition: ecvBBox.h:25
ecvBBox.h
ccComputeOctreeDlg::ccComputeOctreeDlg
ccComputeOctreeDlg(const ccBBox &baseBBox, double minCellSize, QWidget *parent=0)
Default constructor.
Definition: ecvComputeOctreeDlg.cpp:16
ccComputeOctreeDlg::MIN_CELL_SIZE
@ MIN_CELL_SIZE
Definition: ecvComputeOctreeDlg.h:28
cloudViewer::DgmOctree::MAX_OCTREE_LEVEL
static const int MAX_OCTREE_LEVEL
Max octree subdivision level.
Definition: DgmOctree.h:67
ccComputeOctreeDlg::getMinCellSize
double getMinCellSize() const
Returns cell size at max level.
Definition: ecvComputeOctreeDlg.cpp:60
ecvComputeOctreeDlg.h
ccComputeOctreeDlg::CUSTOM_BBOX
@ CUSTOM_BBOX
Definition: ecvComputeOctreeDlg.h:28
ccBoundingBoxEditorDlg::getBox
const ccBBox & getBox() const
Returns bounding box.
Definition: ecvBoundingBoxEditorDlg.h:25
ccComputeOctreeDlg
Dialog for octree computation.
Definition: ecvComputeOctreeDlg.h:18
Ui
Definition: sfEditDlg.h:16
cloudViewer::BoundingBoxTpl::isValid
bool isValid() const
Returns whether bounding box is valid or not.
Definition: BoundingBox.h:203
ccBoundingBoxEditorDlg
Dialog to define the extents of a 3D box.
Definition: ecvBoundingBoxEditorDlg.h:16
ccComputeOctreeDlg::getCustomBBox
ccBBox getCustomBBox() const
Returns custom bbox.
Definition: ecvComputeOctreeDlg.cpp:64
ccComputeOctreeDlg::getMode
ComputationMode getMode() const
Returns octree computation mode.
Definition: ecvComputeOctreeDlg.cpp:49
CVLog::Warning
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
ccComputeOctreeDlg::m_bbEditorDlg
ccBoundingBoxEditorDlg * m_bbEditorDlg
Associated dialog.
Definition: ecvComputeOctreeDlg.h:41
ccBoundingBoxEditorDlg::forceKeepSquare
void forceKeepSquare(bool state)
Forces the 'keep square' mode.
Definition: ecvBoundingBoxEditorDlg.cpp:169
ecvOctree.h
ccBoundingBoxEditorDlg::exec
virtual int exec()
Definition: ecvBoundingBoxEditorDlg.cpp:273