SHAPER  9.15.0
PartSet_WidgetSketchRectangularGrid Class Reference
Inheritance diagram for PartSet_WidgetSketchRectangularGrid:
Inheritance graph

Public Member Functions

 PartSet_WidgetSketchRectangularGrid (QWidget *theParent, PartSet_WidgetSketchLabel *theSketchLabel)
 
virtual void reconfigure ()
 Must be called after PartSet_PreviewSketchPlane is configured. More...
 

Protected Slots

virtual void onResetClicked ()
 
virtual void onOffsetAngleChanged (double theOffset)
 
virtual void onOffsetXChanged (double theOffset)
 
virtual void onOffsetYChanged (double theOffset)
 

Protected Member Functions

void retrieveSketchAndPlane ()
 

Static Protected Member Functions

static double clampValue (double theValue, double theIntervalWidth)
 
static double reasonableOffsetIncrement (double theStep)
 
static double reasonablePitchIncrement (double theStep)
 

Protected Attributes

PartSet_WidgetSketchLabel *const mySketchLabel
 
PartSet_PreviewSketchPlanemyPreviewPlane
 
QGridLayout * myLayout
 
QPushButton * myResetButton
 
QDoubleSpinBoxmyOffsetXSpinBox
 
QDoubleSpinBoxmyOffsetYSpinBox
 
QDoubleSpinBoxmyOffsetAngleSpinBox
 

Static Protected Attributes

static const int NUM_OF_DECIMAL_DIGITS_TRANS = 3
 Num of digits in fractional part of translational values. More...
 
static const int NUM_OF_DECIMAL_DIGITS_ROTAT = 4
 Num of digits in fractional part of rotational values. More...
 
static const int SPIN_BOX_MIN_WIDTH = 80
 

Constructor & Destructor Documentation

◆ PartSet_WidgetSketchRectangularGrid()

PartSet_WidgetSketchRectangularGrid::PartSet_WidgetSketchRectangularGrid ( QWidget theParent,
PartSet_WidgetSketchLabel theSketchLabel 
)
Parameters
theSketchLabelmust not be nullptr.

Member Function Documentation

◆ reconfigure()

void PartSet_WidgetSketchRectangularGrid::reconfigure ( )
virtual

Must be called after PartSet_PreviewSketchPlane is configured.

Implements PartSet_WidgetSketchGrid.

◆ clampValue()

double PartSet_WidgetSketchGrid::clampValue ( double  theValue,
double  theIntervalWidth 
)
staticprotectedinherited
Returns
Modulo of theValue in (-theIntervalWidth/2; theIntervalWidth/2].

◆ reasonableOffsetIncrement()

double PartSet_WidgetSketchGrid::reasonableOffsetIncrement ( double  theStep)
staticprotectedinherited
Returns
Reasonable increment for offset spinbox for given grid pitch.

◆ reasonablePitchIncrement()

double PartSet_WidgetSketchGrid::reasonablePitchIncrement ( double  theStep)
staticprotectedinherited
Returns
Reasonable increment for pitch spinbox for given grid pitch.

Field Documentation

◆ NUM_OF_DECIMAL_DIGITS_TRANS

const int PartSet_WidgetSketchGrid::NUM_OF_DECIMAL_DIGITS_TRANS = 3
staticprotectedinherited

Num of digits in fractional part of translational values.

◆ NUM_OF_DECIMAL_DIGITS_ROTAT

const int PartSet_WidgetSketchGrid::NUM_OF_DECIMAL_DIGITS_ROTAT = 4
staticprotectedinherited

Num of digits in fractional part of rotational values.