SHAPER  9.15.0
PartSet_WidgetSketchGrid Class Referenceabstract
Inheritance diagram for PartSet_WidgetSketchGrid:
Inheritance graph

Public Member Functions

 PartSet_WidgetSketchGrid (QWidget *theParent, PartSet_WidgetSketchLabel *theSketchLabel)
 
virtual void reconfigure ()=0
 

Protected Slots

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

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
 

Friends

class PitchSpinBox
 

Constructor & Destructor Documentation

◆ PartSet_WidgetSketchGrid()

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

Member Function Documentation

◆ clampValue()

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

◆ reasonableOffsetIncrement()

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

◆ reasonablePitchIncrement()

double PartSet_WidgetSketchGrid::reasonablePitchIncrement ( double  theStep)
staticprotected
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
staticprotected

Num of digits in fractional part of translational values.

◆ NUM_OF_DECIMAL_DIGITS_ROTAT

const int PartSet_WidgetSketchGrid::NUM_OF_DECIMAL_DIGITS_ROTAT = 4
staticprotected

Num of digits in fractional part of rotational values.