VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Slots | Protected Attributes | Private Member Functions
makVrv::DtGroundClampingWidget Class Reference

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.

Inheritance diagram for makVrv::DtGroundClampingWidget:
Inheritance graph
[legend]

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

DtGroundClampingLogicmyLogic
 
DtPopupToolbarButtonmySliderEnableButton
 
DtGroundClampingSliderWidgetmySliderWidget
 
DtPopupToolbarmySliderToolBar
 
bool mySliderWidgetShown
 
- Protected Attributes inherited from makVrv::DtToolbarWidget
DtDemyDe
 
QToolButtonmyToolButton
 
QHBoxLayout * myWidgetLayout
 

Private Member Functions

 DtGroundClampingWidget ()
 
 DtGroundClampingWidget (const DtGroundClampingWidget &)
 
DtGroundClampingWidgetoperator= (const DtGroundClampingWidget &)
 

Constructor & Destructor Documentation

makVrv::DtGroundClampingWidget::DtGroundClampingWidget ( DtDe de,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

virtual makVrv::DtGroundClampingWidget::~DtGroundClampingWidget ( )
virtual

Destructor.

makVrv::DtGroundClampingWidget::DtGroundClampingWidget ( )
private

Default CTOR.

Note
Not implemented ( force use of initializer ).
makVrv::DtGroundClampingWidget::DtGroundClampingWidget ( const DtGroundClampingWidget )
private

Copy CTOR.

Note
Not implemented ( prevents copies ).

Member Function Documentation

DtGroundClampingWidget& makVrv::DtGroundClampingWidget::operator= ( const DtGroundClampingWidget )
private

Copy operator.

Note
Not implemented ( prevents copies ).
void makVrv::DtGroundClampingWidget::setupGui ( )

Sets up the user interface. Called from constructor.

virtual void makVrv::DtGroundClampingWidget::setEnabled ( bool  b)
virtual

Enable or disable the model scaling button. If the scale slider is up, this will also bring that down.

Implements makVrv::DtGroundClampingWidgetInterface.

virtual void makVrv::DtGroundClampingWidget::setValue ( bool  b)
virtual

Set the value of the model caling button (on/off)

Implements makVrv::DtGroundClampingWidgetInterface.

virtual void makVrv::DtGroundClampingWidget::setGroundClampingFactor ( int  factor)
virtual

Set the current model scale factor to be used by the scale factor slider.

Implements makVrv::DtGroundClampingWidgetInterface.

virtual void makVrv::DtGroundClampingWidget::slot_activate ( DtDe subject)
protectedvirtual

For Display Engine subject observer.

virtual void makVrv::DtGroundClampingWidget::slot_deactivate ( DtDe )
inlineprotectedvirtual

For Display Engine subject observer.

virtual void makVrv::DtGroundClampingWidget::on_groundClampingScaleSliderChanged ( int  )
protectedvirtualslot

connected to the internal model scale slider toggle button

virtual void makVrv::DtGroundClampingWidget::on_toolButtonClicked ( bool  checked)
protectedvirtualslot

Slot when this widget's toolbutton has been clicked.

Parameters
checkedWhether 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

Member Data Documentation

DtGroundClampingLogic* makVrv::DtGroundClampingWidget::myLogic
protected
DtPopupToolbarButton* makVrv::DtGroundClampingWidget::mySliderEnableButton
protected
DtGroundClampingSliderWidget* makVrv::DtGroundClampingWidget::mySliderWidget
protected
DtPopupToolbar* makVrv::DtGroundClampingWidget::mySliderToolBar
protected
bool makVrv::DtGroundClampingWidget::mySliderWidgetShown
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)