NDEVR
API Documentation
PointScannerKeyController.h
1#pragma once
2#include <NDEVR/KeyController.h>
3namespace NDEVR
4{
5 class PointScannerDialog;
30
35 class PointScannerKeyController : public BasicKeyController
36 {
37 public:
38 PointScannerKeyController();
45 virtual bool processKeyEvent(const StringView& id, const KeyEvent& key_event, DesignObjectLookup* lookup, Camera* camera) override;
47 virtual void resetKeyControllerToDefaults() override;
50 virtual void setDialog(PointScannerDialog* dialog);
51 protected:
52 PointScannerDialog* m_dialog = nullptr;
53 };
54}
BasicKeyController(const TranslatedString &key_controller_title)
Constructs a BasicKeyController with the given title.
A core object representing a user view as well as convenience functions for moving this view through ...
Definition Camera.h:95
A core class where all Design Objects including models, materials, and geometries are stored.
Describes a user key press event used to trigger behavior in the NDEVR API.
Definition Event.h:49
virtual bool processKeyEvent(const StringView &id, const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) override
Process a key event and dispatch scanner actions.
PointScannerDialog * m_dialog
Target dialog for dispatched actions.
virtual void resetKeyControllerToDefaults() override
Reset all key bindings to their factory defaults.
virtual void setDialog(PointScannerDialog *dialog)
Set the scanner dialog that receives dispatched actions.
The core String View class for the NDEVR API.
Definition StringView.h:58
The primary namespace for the NDEVR SDK.
ScanDialogAction
Actions that can be triggered from keyboard shortcuts in the point scanner dialog.
@ e_toggle_last_hit
Toggle display of the last hit point.
@ e_zoom_to_probe
Zoom the viewport to the probe position.
@ e_action_size
Number of scan dialog actions.
@ e_swap_cameras
Swap between available camera feeds.
@ e_take_reading
Record a single range measurement.
@ e_zoom_to_deployment
Zoom the viewport to the deployment location.
@ e_edit_deployment_length
Edit the deployment length.
@ e_show_temp
Display the temperature reading.
@ e_calibrate_gyro
Start gyroscope calibration.
@ e_toggle_deployment_mode
Toggle between scan and deployment modes.
@ e_pause_scan
Pause the active scan.
@ e_show_battery
Display the battery status.
@ e_remove_last_reading
Undo the most recent measurement.
@ e_perform_deployment_scan
Execute a deployment-specific scan.
@ e_edit_station
Open the station editor.
@ e_toggle_light
Toggle the scanner light on/off.
@ e_start_scan
Begin scanning.