13 #pragma warning(disable : 4996)
30 #include <QApplication>
31 #include <QSizePolicy>
34 #include <vtkAbstractWidget.h>
37 #include <vtkRenderWindowInteractor.h>
38 #include <vtkRenderer.h>
39 #include <vtkSmartPointer.h>
42 : QWidget(parent), m_ui(new
Ui::GenericMeasurementToolDlg) {
43 setWindowTitle(tr(
"Generic Measurement Tool"));
54 setMaximumSize(16777215, 16777215);
62 helper->setEnabled(
false,
false);
98 "[cvGenericMeasurementTool] Widget is null, shortcuts not "
110 "Tool=%1, creating shortcuts...")
111 .arg((quintptr)
this, 0, 16));
120 "Tool=%1, created %2 shortcuts")
121 .arg((quintptr)
this, 0, 16)
125 QString(
"[cvGenericMeasurementTool::setupShortcuts] Tool=%1, "
126 "shortcuts already exist (%2), updating only")
127 .arg((quintptr)
this, 0, 16)
137 helper->setEnabled(
true,
true);
164 CVLog::Error(
"[cvGenericMeasurementTool] Failed to get renderer!");
178 m_viewer->getRenderWindow()->Render();
205 vtkRenderWindowInteractor* interactor) {
247 "Tool=%1, disabling %2 shortcuts")
248 .arg((quintptr)
this, 0, 16)
254 helper->setEnabled(
false,
false);
264 helper->clearSelectionCache();
307 const QString& justification) {
313 const QString& justification) {
static bool PrintDebug(const char *format,...)
Same as Print, but works only in Debug mode.
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
static bool Error(const char *format,...)
Display an error dialog with formatted message.
vtkRenderer * getCurrentRenderer(int viewport=0)
Hierarchical CLOUDVIEWER Object.
QString getViewId() const
cvPointPickingHelper is a helper class for supporting keyboard shortcut-based point picking in measur...
Tensor Minimum(const Tensor &input, const Tensor &other)
Computes the element-wise minimum of input and other. The tensors must have same data type and device...