X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FMeasureGUI%2FMeasureGUI_InertiaDlg.h;h=085a3b6f4d010b34a384c8a594dbd13d7285d032;hb=9caf5aba46053fce9214d64e4fb3d45ec46576c9;hp=4e6bc2f023e2dbb890c79c5ee744e32833cadade;hpb=c577ca78d7a6e286526662cf54df6de1f4f2f449;p=modules%2Fgeom.git diff --git a/src/MeasureGUI/MeasureGUI_InertiaDlg.h b/src/MeasureGUI/MeasureGUI_InertiaDlg.h index 4e6bc2f02..085a3b6f4 100644 --- a/src/MeasureGUI/MeasureGUI_InertiaDlg.h +++ b/src/MeasureGUI/MeasureGUI_InertiaDlg.h @@ -17,7 +17,7 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // // @@ -30,35 +30,44 @@ #define DIALOGBOX_INERTIA_H #include "MeasureGUI_Skeleton.h" -#include "MeasureGUI_1Sel12LineEdit_QTD.h" -#include "MeasureGUI.h" +class MeasureGUI_1Sel12LineEdit_QTD; +class gp_XYZ; +class gp_Mat; + +#if defined WNT && defined MEASUREGUI_EXPORTS +#define MEASUREGUI_EXPORT __declspec( dllexport ) +#else +#define MEASUREGUI_EXPORT +#endif //================================================================================= // class : MeasureGUI_InertiaDlg -// purpose : +// purpose : Dialog for displaying moment of inertia //================================================================================= -class MeasureGUI_InertiaDlg : public MeasureGUI_Skeleton + +class MEASUREGUI_EXPORT MeasureGUI_InertiaDlg : public MeasureGUI_Skeleton { Q_OBJECT public: - MeasureGUI_InertiaDlg(QWidget* parent = 0, const char* name = 0, SALOME_Selection* Sel = 0, bool modal = FALSE, WFlags fl = 0); - ~MeasureGUI_InertiaDlg(); + MeasureGUI_InertiaDlg( GeometryGUI* GUI, + QWidget* parent ); + ~MeasureGUI_InertiaDlg(); +protected: -private: - void Init(); - void enterEvent(QEvent* e); - void CalculateAndDisplayInertia(const TopoDS_Shape& S); + // redefined from GEOMBase_Helper and MeasureGUI_Skeleton + virtual void processObject(); - MeasureGUI_1Sel12LineEdit_QTD* GroupC1; +private: -private slots: - void SetEditCurrentArgument(); - void SelectionIntoArgument(); - void LineEditReturnPressed(); - void ActivateThisDialog(); + void Init(); + bool getParameters( gp_Mat& theMatrix, + gp_XYZ& theMoment ); +private: + + MeasureGUI_1Sel12LineEdit_QTD* myGrp; }; #endif // DIALOGBOX_INERTIA_H