![]() |
VR-Forces 5.0.1 Developer's Guide
|
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.

Public Member Functions | |
| DtGroundClampingWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| virtual | ~DtGroundClampingWidget () |
| void | setupGui () |
| virtual void | setEnabled (bool b) |
| virtual void | setValue (bool b) |
| virtual void | setGroundClampingFactor (int factor) |
Public Member Functions inherited from makVrv::DtToolbarWidget | |
| DtToolbarWidget (DtDe &de, QWidget *p=0, Qt::WindowFlags f=0) | |
| virtual | ~DtToolbarWidget () |
| void | setToolButtonChecked (bool checked) |
| bool | isToolButtonChecked () const |
| void | setToolButtonStyle (Qt::ToolButtonStyle style) |
| Qt::ToolButtonStyle | toolButtonStyle () const |
Public Member Functions inherited from makVrv::DtGroundClampingWidgetInterface | |
| virtual | ~DtGroundClampingWidgetInterface () |
Protected Slots | |
| virtual void | on_groundClampingScaleSliderChanged (int) |
| virtual void | on_toolButtonClicked (bool checked) |
Protected Slots inherited from makVrv::DtToolbarWidget | |
| virtual void | on_toolButtonStyleChanged (Qt::ToolButtonStyle val) |
| virtual void | on_toolButtonClicked (bool checked)=0 |
| virtual void | on_aboutToShow () |
Protected Member Functions | |
| virtual void | slot_activate (DtDe *subject) |
| virtual void | slot_deactivate (DtDe *) |
Protected Member Functions inherited from makVrv::DtToolbarWidget | |
| virtual void | configureToolButton (const QString &text, const QString &tooltip, const QString &iconFilename, bool checkable=false, bool hasMenu=false, QToolButton::ToolButtonPopupMode menuMode=QToolButton::DelayedPopup, const QString &checkedIconFilePath=QString("")) |
| virtual void | configureThemedToolButton (const QString &text, const QString &tooltip, const QString &iconFilename, bool checkable=false, bool hasMenu=false, QToolButton::ToolButtonPopupMode menuMode=QToolButton::DelayedPopup, const QString &checkedIconFileName=QString("")) |
| virtual void | setWidgetsVisible (bool visible) |
Protected Attributes | |
| DtGroundClampingLogic * | myLogic |
| DtPopupToolbarButton * | mySliderEnableButton |
| DtGroundClampingSliderWidget * | mySliderWidget |
| DtPopupToolbar * | mySliderToolBar |
| bool | mySliderWidgetShown |
Protected Attributes inherited from makVrv::DtToolbarWidget | |
| DtDe & | myDe |
| QToolButton * | myToolButton |
| QHBoxLayout * | myWidgetLayout |
Private Member Functions | |
| DtGroundClampingWidget () | |
| DtGroundClampingWidget (const DtGroundClampingWidget &) | |
| DtGroundClampingWidget & | operator= (const DtGroundClampingWidget &) |
| 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 |
For Display Engine subject observer.
|
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 |