Beispiel #1
0
ccAlignDlg::ccAlignDlg(ccGenericPointCloud *data, ccGenericPointCloud *model, QWidget* parent)
    : QDialog(parent), Ui::AlignDialog()
{
    setupUi(this);
    setWindowFlags(Qt::Tool);

    samplingMethod->addItem("None");
    samplingMethod->addItem("Random");
    samplingMethod->addItem("Space");
    samplingMethod->addItem("Octree");
    samplingMethod->setCurrentIndex(NONE);

    QColor qRed(255,0,0);
    QColor qYellow(255,255,0);
    ccDisplayOptionsDlg::SetButtonColor(dataColorButton,qRed);
    ccDisplayOptionsDlg::SetButtonColor(modelColorButton,qYellow);

    dataObject = data;
    modelObject = model;
    setColorsAndLabels();

    changeSamplingMethod(samplingMethod->currentIndex());
    toggleNbMaxCandidates(isNbCandLimited->isChecked());

    connect(swapButton, SIGNAL(clicked()), this, SLOT(swapModelAndData()));
    connect(modelSample, SIGNAL(sliderReleased()), this, SLOT(modelSliderReleased()));
    connect(dataSample, SIGNAL(sliderReleased()), this, SLOT(dataSliderReleased()));
    connect(modelSamplingRate, SIGNAL(valueChanged(double)), this, SLOT(modelSamplingRateChanged(double)));
    connect(dataSamplingRate, SIGNAL(valueChanged(double)), this, SLOT(dataSamplingRateChanged(double)));
    connect(deltaEstimation, SIGNAL(clicked()), this, SLOT(estimateDelta()));
    connect(samplingMethod, SIGNAL(currentIndexChanged(int)), this, SLOT(changeSamplingMethod(int)));
    connect(isNbCandLimited, SIGNAL(toggled(bool)), this, SLOT(toggleNbMaxCandidates(bool)));
}
Beispiel #2
0
ccRegistrationDlg::ccRegistrationDlg(ccHObject *data, ccHObject *model, QWidget* parent/*=0*/)
	: QDialog(parent)
	, Ui::RegistrationDialog()
{
	assert(data && model);
	dataEntity = data;
	modelEntity = model;

	setupUi(this);
	errorDifferenceLineEdit->setValidator(new QDoubleValidator(errorDifferenceLineEdit));
	setWindowFlags(Qt::Tool);

	setColorsAndLabels();

	QColor qRed(255,0,0);
	QColor qYellow(255,255,0);
	ccDisplayOptionsDlg::SetButtonColor(dataColorButton,qRed);
	ccDisplayOptionsDlg::SetButtonColor(modelColorButton,qYellow);

	//restore semi-persistent settings
	adjustScaleCheckBox->setChecked(s_adjustScale);
	randomSamplingLimitSpinBox->setValue(s_randomSamplingLimit);
	errorDifferenceLineEdit->setText(QString::number(s_errorDifference,'e',3));

	connect(swapButton, SIGNAL(clicked()), this, SLOT(swapModelAndData()));
}