8 #include "ui_pervertexcollectionsettings_form.h"
18 #include "Inventor/nodes/SoDrawStyle.h"
19 #include "Inventor/nodes/SoLightModel.h"
20 #include "Inventor/nodes/SoMaterial.h"
26 #include <QDataStream>
27 #include <QMouseEvent>
28 #include <QDragEnterEvent>
72 editwindow =
new QWidget(0,Qt::WindowStaysOnTopHint);
135 setAcceptDrops(
true);
156 if (objectName().isEmpty())
157 setObjectName(
"VertexCollectionSettingsButton");
248 if (
event->button() == Qt::LeftButton)
250 QPushButton::mousePressEvent(
event);
256 if (
event->source()!=
this &&
event->mimeData()->hasFormat(
"vp1/material"))
257 event->acceptProposedAction();
263 if (!(
event->buttons() & Qt::LeftButton))
266 < QApplication::startDragDistance())
269 QDrag *drag =
new QDrag(
this);
270 QMimeData *mimeData =
new QMimeData;
279 mimeData->setData(
"vp1/material", byteArray);
308 drag->setMimeData(mimeData);
309 drag->exec(Qt::CopyAction | Qt::MoveAction);
315 QByteArray
data =
event->mimeData()->data(
"vp1/material");
316 event->acceptProposedAction();
410 const double minFromInterface=
m_d->
editwindow_ui.doubleSpinBox_cut_r_lower->value()*1000;
411 const double maxFromInterface=
m_d->
editwindow_ui.doubleSpinBox_cut_r_upper->value()*1000;
415 min = (
m_d->
editwindow_ui.checkBox_cut_r->isChecked() ? minFromInterface : -std::numeric_limits<double>::infinity());
416 max = (
m_d->
editwindow_ui.checkBox_cut_r->isChecked() ? maxFromInterface : std::numeric_limits<double>::infinity());
436 const double minFromInterface =
m_d->
editwindow_ui.doubleSpinBox_cut_y_lower->value();
437 const double maxFromInterface =
m_d->
editwindow_ui.doubleSpinBox_cut_y_upper->value();
441 min = (
m_d->
editwindow_ui.checkBox_cut_y->isChecked() ? minFromInterface : -std::numeric_limits<double>::infinity());
442 max = (
m_d->
editwindow_ui.checkBox_cut_y->isChecked() ? maxFromInterface : std::numeric_limits<double>::infinity());
461 const double minFromInterface=
m_d->
editwindow_ui.doubleSpinBox_cut_z_lower->value();
462 const double maxFromInterface=
m_d->
editwindow_ui.doubleSpinBox_cut_z_upper->value();
466 min = (
m_d->
editwindow_ui.checkBox_cut_z->isChecked() ? minFromInterface : -std::numeric_limits<double>::infinity());
467 max = (
m_d->
editwindow_ui.checkBox_cut_z->isChecked() ? maxFromInterface : std::numeric_limits<double>::infinity());