- try {
- gp_Ax2 anAxis(myPoint1, myDir);
- mySimulationTopoDs = BRepPrimAPI_MakeTorus(anAxis, myRadius1, myRadius2).Shape();
- myGeomBase->DisplaySimulationShape(mySimulationTopoDs);
- }
- catch(Standard_Failure) {
- MESSAGE("Exception catched in MakeTorusSimulationAndDisplay");
- }
- return;
+
+//=================================================================================
+// function : getRadius1()
+// purpose :
+//=================================================================================
+double PrimitiveGUI_TorusDlg::getRadius1() const
+{
+ int aConstructorId = getConstructorId();
+ if (aConstructorId == 0)
+ return GroupPoints->SpinBox_DX->GetValue();
+ else if (aConstructorId == 1)
+ return GroupDimensions->SpinBox_DX->GetValue();
+ return 0;
+}
+
+
+//=================================================================================
+// function : getRadius2()
+// purpose :
+//=================================================================================
+double PrimitiveGUI_TorusDlg::getRadius2() const
+{
+ int aConstructorId = getConstructorId();
+ if (aConstructorId == 0)
+ return GroupPoints->SpinBox_DY->GetValue();
+ else if (aConstructorId == 1)
+ return GroupDimensions->SpinBox_DY->GetValue();
+ return 0;