ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
implicitplanewidgetobserver.cpp
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 
9 
10 #include <vtkImplicitPlaneWidget.h>
11 
12 namespace VtkUtils {
13 
15  : AbstractWidgetObserver(parent) {}
16 
17 void ImplicitPlaneWidgetObserver::Execute(vtkObject* caller,
18  unsigned long eventId,
19  void* callData) {
20  Q_UNUSED(eventId)
21  Q_UNUSED(callData)
22 
23  vtkImplicitPlaneWidget* widget =
24  reinterpret_cast<vtkImplicitPlaneWidget*>(caller);
25  if (widget) {
26  emit originChanged(widget->GetOrigin());
27  emit normalChanged(widget->GetNormal());
28  }
29 }
30 } // namespace VtkUtils
void Execute(vtkObject *caller, unsigned long eventId, void *callData)