![]() |
VR-Forces 4.10 Class Documentation
|
DtGroundClampingWidget is a toolbar widget that combines a button to enable and disable model scaling, and a drop-down button to bring up a slider for the model scale factor. More...

Public Member Functions | |
| DtGroundClampingWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| Constructor. More... | |
| virtual | ~DtGroundClampingWidget () |
| Destructor. More... | |
| void | setupGui () |
| Sets up the user interface. Called from constructor. More... | |
| virtual void | setEnabled (bool b) |
| Enable or disable the model scaling button. More... | |
| virtual void | setValue (bool b) |
| Set the value of the model caling button (on/off) More... | |
| virtual void | setGroundClampingFactor (int factor) |
| Set the current model scale factor to be used by the scale factor slider. More... | |
Public Member Functions inherited from makVrv::DtToolbarWidget | |
| DtToolbarWidget (QWidget *p=0, Qt::WindowFlags f=0) | |
| CTOR The parent widget should be a QToolBar so that we can connect to its toolButtonStyleChanged(Qt::ToolButtonStyle) signal. More... | |
| virtual | ~DtToolbarWidget () |
| DTOR. More... | |
| void | setToolButtonChecked (bool checked) |
| Set/Get whether or not the tool button is checked. More... | |
| bool | isToolButtonChecked () const |
| void | setToolButtonStyle (Qt::ToolButtonStyle style) |
| Set/Get the current toolbutton style If myToolButton is uninitialized, the getter defaults to returning Qt::ToolButtonFollowStyle. More... | |
| Qt::ToolButtonStyle | toolButtonStyle () const |
Public Member Functions inherited from makVrv::DtGroundClampingWidgetInterface | |
| virtual | ~DtGroundClampingWidgetInterface () |
| Virtual DTOR. More... | |
Protected Slots | |
| virtual void | on_groundClampingScaleSliderChanged (int) |
| connected to the internal model scale slider toggle button More... | |
| virtual void | on_toolButtonClicked (bool checked) |
| Slot when this widget's toolbutton has been clicked. More... | |
Protected Slots inherited from makVrv::DtToolbarWidget | |
| virtual void | on_toolButtonStyleChanged (Qt::ToolButtonStyle val) |
| Updates widget to match the new ToolButtonStyle. More... | |
| virtual void | on_toolButtonClicked (bool checked)=0 |
| Slot when this widget's toolbutton has been clicked. More... | |
| virtual void | on_aboutToShow () |
| Slot for when the menu for this widget is about to be shown The slot is only used if this toolbar widget is configured to have a menu. More... | |
Protected Member Functions | |
| virtual void | slot_activate (DtDe *subject) |
| For Display Engine subject observer. More... | |
| virtual void | slot_deactivate (DtDe *) |
Protected Member Functions inherited from makVrv::DtToolbarWidget | |
| virtual void | configureToolButton (const QString &text, const QString &tooltip, const QString &iconPath, bool checkable=false, bool hasMenu=false, QToolButton::ToolButtonPopupMode menuMode=QToolButton::DelayedPopup) |
| Configure the QToolButton for this toolbar widget. More... | |
| virtual void | setWidgetsVisible (bool visible) |
| Called whenever the ToolButtonStyle has changed. More... | |
Protected Attributes | |
| DtDe & | myDe |
| DtGroundClampingLogic * | myLogic |
| DtPopupToolbarButton * | mySliderEnableButton |
| DtGroundClampingSliderWidget * | mySliderWidget |
| DtPopupToolbar * | mySliderToolBar |
| bool | mySliderWidgetShown |
Protected Attributes inherited from makVrv::DtToolbarWidget | |
| QToolButton * | myToolButton |
| QHBoxLayout * | myWidgetLayout |
Private Member Functions | |
| DtGroundClampingWidget () | |
| Default CTOR. More... | |
| DtGroundClampingWidget (const DtGroundClampingWidget &) | |
| Copy CTOR. More... | |
| DtGroundClampingWidget & | operator= (const DtGroundClampingWidget &) |
| Copy operator. More... | |
DtGroundClampingWidget is a toolbar widget that combines a button to enable and disable model scaling, and a drop-down button to bring up a slider for the model scale factor.
| makVrv::DtGroundClampingWidget::DtGroundClampingWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) |
Constructor.
|
virtual |
Destructor.
|
private |
Default CTOR.
|
private |
Copy CTOR.
|
private |
Copy operator.
| void makVrv::DtGroundClampingWidget::setupGui | ( | ) |
Sets up the user interface. Called from constructor.
|
virtual |
Enable or disable the model scaling button.
If the scale slider is up, this will also bring that down
Implements makVrv::DtGroundClampingWidgetInterface.
|
virtual |
Set the value of the model caling button (on/off)
Implements makVrv::DtGroundClampingWidgetInterface.
|
virtual |
Set the current model scale factor to be used by the scale factor slider.
Implements makVrv::DtGroundClampingWidgetInterface.
|
protectedvirtual |
For Display Engine subject observer.
|
inlineprotectedvirtual |
|
protectedvirtualslot |
connected to the internal model scale slider toggle button
|
protectedvirtualslot |
Slot when this widget's toolbutton has been clicked.
| checked | Whether or not the QToolButton is checked or not This slot allows/disallows the user to use the ground clamping slider widget according to the check state |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |