VR-Forces 4.10 Class Documentation
 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. More...

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

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

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

Private Member Functions

 DtGroundClampingWidget ()
 Default CTOR. More...
 
 DtGroundClampingWidget (const DtGroundClampingWidget &)
 Copy CTOR. More...
 
DtGroundClampingWidgetoperator= (const DtGroundClampingWidget &)
 Copy operator. More...
 

Detailed Description

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.

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

DtDe& makVrv::DtGroundClampingWidget::myDe
protected
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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)