18 : QDialog(app ? app->getActiveWindow() : 0),
23 connect(label2DCloudComboBox, SIGNAL(currentIndexChanged(
int)),
this,
39 unsigned cloudCount = 0;
40 label2DCloudComboBox->clear();
41 for (
size_t i = 0; i < labels.size(); ++i) {
46 QVariant uniqueID(labels[i]->getUniqueID());
47 label2DCloudComboBox->addItem(
name, uniqueID);
52 if (cloudCount >= 1 &&
m_app) {
54 selectLabel2DCheckBox->setChecked(
true);
55 label2DCloudComboBox->setEnabled(
true);
58 selectLabel2DCheckBox->setChecked(
false);
59 label2DCloudComboBox->setEnabled(
false);
65 if (!label2DCloudComboBox || !
m_app) {
79 cxAxisDoubleSpinBox->setValue(center->
x);
80 cyAxisDoubleSpinBox->setValue(center->
y);
81 czAxisDoubleSpinBox->setValue(center->
z);
91 if (
name.isEmpty())
name = tr(
"unnamed");
99 assert(comboBox && dbRoot);
100 if (!comboBox || !dbRoot) {
105 int index = comboBox->currentIndex();
109 unsigned uniqueID = comboBox->itemData(index).toUInt();
void updateForeGroundPoint()
QString getEntityName(ccHObject *obj)
MinimumCutSegmentationDlg(ecvMainAppInterface *app)
void refreshLabelComboBox()
cc2DLabel * get2DLabelFromCombo(QComboBox *comboBox, ccHObject *dbRoot)
ecvMainAppInterface * m_app
Gives access to the application (data-base, UI, etc.)
2D label (typically attached to points)
const PickedPoint & getPickedPoint(unsigned index) const
Returns a given point.
Hierarchical CLOUDVIEWER Object.
ccHObject * find(unsigned uniqueID)
Finds an entity in this object hierarchy.
unsigned filterChildren(Container &filteredChildren, bool recursive=false, CV_CLASS_ENUM filter=CV_TYPES::OBJECT, bool strict=false) const
Collects the children corresponding to a certain pattern.
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
virtual QString getName() const
Returns object name.
virtual unsigned getUniqueID() const
Returns object unique ID.
bool isA(CV_CLASS_ENUM type) const
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
Main application interface (for plugins)
virtual ccHObject * dbRootObject()=0
Returns DB root (as a ccHObject)
unsigned index
Point/triangle index.
ccGenericPointCloud * cloud
Cloud.