Version: 9.12.0
Plot2d_SetupCurveScaleDlg Class Reference

Dialog box for modifying 2d curve scale factor. More...

#include <Plot2d_SetupCurveScaleDlg.h>

Inheritance diagram for Plot2d_SetupCurveScaleDlg:
Inheritance graph

Public Member Functions

 Plot2d_SetupCurveScaleDlg (QWidget *=0)
 Constructor. More...
 
 ~Plot2d_SetupCurveScaleDlg ()
 Destructor. More...
 
void setScale (const double)
 Set scale factor. More...
 
double getScale () const
 Get scale factor. More...
 
void setUndefinedValue ()
 Clear value in the "Scale factor" spinbox. More...
 

Private Attributes

QPushButton * myOkBtn
 
QPushButton * myCancelBtn
 
QtxDoubleSpinBoxmyValueSpin
 

Detailed Description

Dialog box for modifying 2d curve scale factor.

Constructor & Destructor Documentation

◆ Plot2d_SetupCurveScaleDlg()

Plot2d_SetupCurveScaleDlg::Plot2d_SetupCurveScaleDlg ( QWidget parent = 0)

Constructor.

Parameters
parentparent widget

References SUIT_Tools::centerWidget(), MARGIN_SIZE, MIN_SPIN_WIDTH, myCancelBtn, myOkBtn, myValueSpin, setScale(), and SPACING_SIZE.

◆ ~Plot2d_SetupCurveScaleDlg()

Plot2d_SetupCurveScaleDlg::~Plot2d_SetupCurveScaleDlg ( )

Destructor.

Member Function Documentation

◆ getScale()

double Plot2d_SetupCurveScaleDlg::getScale ( ) const

Get scale factor.

Returns
chosen scale factor
See also
setScale()

References myValueSpin.

◆ setScale()

void Plot2d_SetupCurveScaleDlg::setScale ( const double  coef)

Set scale factor.

Parameters
coefscale factor
See also
getScale()

References myValueSpin.

◆ setUndefinedValue()

void Plot2d_SetupCurveScaleDlg::setUndefinedValue ( )

Clear value in the "Scale factor" spinbox.

References myValueSpin, and QtxDoubleSpinBox::setCleared().

Member Data Documentation

◆ myCancelBtn

QPushButton* Plot2d_SetupCurveScaleDlg::myCancelBtn
private

◆ myOkBtn

QPushButton* Plot2d_SetupCurveScaleDlg::myOkBtn
private

◆ myValueSpin

QtxDoubleSpinBox* Plot2d_SetupCurveScaleDlg::myValueSpin
private

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