- myRadius = 100.0;
- myHeight = 300.0;
- myOkRadius = myOkHeight = true;
- myOkPoint1 = myOkDir = false;
-
- myEdgeFilter = new GEOM_EdgeFilter(StdSelect_Line, myGeom);
- myVertexFilter = new GEOM_ShapeTypeFilter(TopAbs_VERTEX, myGeom);
- mySelection->AddFilter(myVertexFilter);
-
- /* Get setting of step value from file configuration */
- QString St = QAD_CONFIG->getSetting("Geometry:SettingsGeomStep");
- step = St.toDouble();
-
- /* min, max, step and decimals for spin boxes & initial values */
- /* First constructor : radius */
- GroupPoints->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, step, 3);
- /* First constructor : algebric height */
- GroupPoints->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
- /* Second constructor : radius */
- GroupDimensions->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, step, 3);
- /* Second constructor : algebric height */
- GroupDimensions->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
-
- GroupPoints->SpinBox_DX->SetValue(myRadius);
- GroupPoints->SpinBox_DY->SetValue(myHeight);
- GroupDimensions->SpinBox_DX->SetValue(myRadius);
- GroupDimensions->SpinBox_DY->SetValue(myHeight);
-
- /* signals and slots connections */
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));