VR-Forces 4.8 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 Member Functions | Protected Attributes
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...
 
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::DtGroundClampingWidgetInterface
virtual ~DtGroundClampingWidgetInterface ()
 Virtual DTOR. More...
 

Protected Slots

virtual void on_groundClampingToggleClicked ()
 connected to the internal model scale slider toggle button More...
 
virtual void on_groundClampingScaleSliderChanged (int)
 

Protected Member Functions

void setupGui ()
 Sets up the user interface. Called from constructor. More...
 
virtual void slot_activate (DtDe *subject)
 
virtual void slot_deactivate (DtDe *)
 

Protected Attributes

DtDemyDe
 
DtGroundClampingLogicmyLogic
 
QToolButtonmyGroundClampingToolButton
 
DtPopupToolbarButtonmySliderEnableButton
 
DtGroundClampingSliderWidgetmySliderWidget
 
DtPopupToolbarmySliderToolBar
 
bool mySliderWidgetShown
 

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.

Member Function Documentation

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.

void makVrv::DtGroundClampingWidget::setupGui ( )
protected

Sets up the user interface. Called from constructor.

virtual void makVrv::DtGroundClampingWidget::slot_activate ( DtDe subject)
protectedvirtual
virtual void makVrv::DtGroundClampingWidget::slot_deactivate ( DtDe )
inlineprotectedvirtual
virtual void makVrv::DtGroundClampingWidget::on_groundClampingToggleClicked ( )
protectedvirtualslot

connected to the internal model scale slider toggle button

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

Member Data Documentation

DtDe& makVrv::DtGroundClampingWidget::myDe
protected
DtGroundClampingLogic* makVrv::DtGroundClampingWidget::myLogic
protected
QToolButton* makVrv::DtGroundClampingWidget::myGroundClampingToolButton
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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)