API Documentation
Loading...
Searching...
No Matches
ScaleCommandWidget.h
Go to the documentation of this file.
1#pragma once
2#include <NDEVR/ModelCommandsWidget.h>
3#if NDEVR_VIEWPORT
4namespace NDEVR
5{
6 /**--------------------------------------------------------------------------------------------------
7 \brief A widget that is shown when the user scales a 3D model.
8 **/
9 class ScaleCommandWidget : public QtModelFunction, public QWidget
10 {
11 public:
12 ScaleCommandWidget(QTModelManager* manager);
13 virtual ~ScaleCommandWidget();
14 virtual TranslatedString group() const override;
15 virtual TranslatedString hint() const override;
16 virtual TranslatedString expandedHint() const override;
17 virtual bool processKeyEvent(const KeyEvent& event, DesignObjectLookup* lookup, Camera* camera) override;
18 virtual bool selectionModeAllowed(const SubSelectionMode& mode) const override;
19 virtual void refreshState(ModelEditController& controller) override;
20 virtual SubSelectionMode defaultSelectionMode() const override;
21 virtual void setupFilters(SelectionController* controller) override;
22 virtual void onSelect(const Buffer<UUID>& selection) override;
23 virtual bool isSelecting() const override;
24 virtual void onCancel() override;
25 virtual QWidget* editWidget() override;
26 protected:
27 QTModelManager* m_manager;
28 };
29}
30#endif
Definition ACIColor.h:37