Version: 9.16.0
AdvancedGUI_PipeTShapeDlg.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef ADVANCEDGUI_PIPETSHAPEDLG_H
21#define ADVANCEDGUI_PIPETSHAPEDLG_H
22
23#include <GEOMBase_Skeleton.h>
24
25class DlgRef_1Spin;
26class DlgRef_2Spin;
27class DlgRef_3Spin;
28class DlgRef_4Spin;
29class DlgRef_3Sel;
30class DlgRef_6Sel;
31class QCheckBox;
32class QLineEdit;
33class QLabel;
34class QGridLayout;
35class QGroupBox;
36class SalomeApp_DoubleSpinBox;
37
38//=================================================================================
39// class : AdvancedGUI_4Spin
40// purpose :
41//=================================================================================
43{
44 Q_OBJECT
45
46 public:
49
50 public:
52 QGridLayout *gridLayout1;
53
54 QLabel *TextLabel1;
55 QLabel *TextLabel2;
56 QLabel *TextLabel3;
57 QLabel *TextLabel4;
58 SalomeApp_DoubleSpinBox *SpinBox1;
59 SalomeApp_DoubleSpinBox *SpinBox2;
60 SalomeApp_DoubleSpinBox *SpinBox3;
61 SalomeApp_DoubleSpinBox *SpinBox4;
62};
63
64//=================================================================================
65// class : AdvancedGUI_PipeTShapeDlg
66// purpose :
67//=================================================================================
69{
70 Q_OBJECT
71
72public:
75
76protected:
77 // redefined from GEOMBase_Helper
78 virtual GEOM::GEOM_IOperations_ptr createOperation();
79 virtual bool isValid (QString&);
80 virtual bool execute (ObjectList&);
81 virtual void restoreSubShapes (SALOMEDS::SObject_ptr);
82 virtual QList<GEOM::GeomObjPtr> getSourceObjects();
83
84private:
85 void Init();
86 void enterEvent (QEvent*);
87 void resizeEvent (QResizeEvent *event);
89 bool CheckCompatiblePosition (GEOM::GEOM_Object_var theP1,
90 GEOM::GEOM_Object_var theP2,
91 GEOM::GEOM_Object_var theP3, double theTolerance);
92
93private:
98
99 // Main parameters
104 QCheckBox* HexMeshCheckBox;
105
106 // Thickness reduction parameters
110
111 // Position parameters
113
115 GEOM::GEOM_Object_var myPoint1, myPoint2, myPoint3;
118
119private slots:
120 void ClickOnOk();
121 bool ClickOnApply();
122 void ActivateThisDialog();
123 void currentChanged (int);
126 void DisplayPreview (const bool activate = false, const bool update = true,
127 const bool toRemoveFromEngine = true, const double lineWidth = -1,
128 const int displayMode = -1, const int color = -1);
129 virtual void processPreview();
130 void SetPosition (bool);
131 void ChamferOrFillet (bool);
132 void SetDoubleSpinBoxStep (double);
133 void ValueChangedInSpinBox (double);
134 void UpdatePicture (QWidget* old, QWidget* now);
135 void ApplyNewDimensions();
136 bool executeNoCheck (ObjectList& objects);
137};
138
139#endif // ADVANCEDGUI_PIPETSHAPEDLG_H
std::list< GEOM::GEOM_Object_ptr > ObjectList
Definition: GEOMBase_Helper.h:46
Definition: AdvancedGUI_PipeTShapeDlg.h:43
QLabel * TextLabel4
Definition: AdvancedGUI_PipeTShapeDlg.h:57
SalomeApp_DoubleSpinBox * SpinBox1
Definition: AdvancedGUI_PipeTShapeDlg.h:58
~AdvancedGUI_4Spin()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:1311
QLabel * TextLabel2
Definition: AdvancedGUI_PipeTShapeDlg.h:55
SalomeApp_DoubleSpinBox * SpinBox2
Definition: AdvancedGUI_PipeTShapeDlg.h:59
SalomeApp_DoubleSpinBox * SpinBox3
Definition: AdvancedGUI_PipeTShapeDlg.h:60
QGridLayout * gridLayout1
Definition: AdvancedGUI_PipeTShapeDlg.h:52
SalomeApp_DoubleSpinBox * SpinBox4
Definition: AdvancedGUI_PipeTShapeDlg.h:61
QLabel * TextLabel3
Definition: AdvancedGUI_PipeTShapeDlg.h:56
AdvancedGUI_4Spin()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:1270
QLabel * TextLabel1
Definition: AdvancedGUI_PipeTShapeDlg.h:54
QGroupBox * GroupBox1
Definition: AdvancedGUI_PipeTShapeDlg.h:51
Definition: AdvancedGUI_PipeTShapeDlg.h:69
QPixmap imagePipeTShape
Definition: AdvancedGUI_PipeTShapeDlg.h:94
QLabel * LabelImgReduction
Definition: AdvancedGUI_PipeTShapeDlg.h:97
ObjectList pipeTShapeGroupObjects
Definition: AdvancedGUI_PipeTShapeDlg.h:117
QCheckBox * HexMeshCheckBox
Definition: AdvancedGUI_PipeTShapeDlg.h:104
DlgRef_1Spin * FilletGroupParams
Definition: AdvancedGUI_PipeTShapeDlg.h:103
AdvancedGUI_4Spin * IReductionGroupParams
Definition: AdvancedGUI_PipeTShapeDlg.h:109
void SetDoubleSpinBoxStep(double)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:654
void SelectionIntoArgument()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:518
AdvancedGUI_4Spin * LReductionGroupParams
Definition: AdvancedGUI_PipeTShapeDlg.h:107
void ChamferOrFillet(bool)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:768
bool CheckCompatiblePosition(GEOM::GEOM_Object_var theP1, GEOM::GEOM_Object_var theP2, GEOM::GEOM_Object_var theP3, double theTolerance)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:938
void DisplayPreview(const bool activate=false, const bool update=true, const bool toRemoveFromEngine=true, const double lineWidth=-1, const int displayMode=-1, const int color=-1)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:808
void enterEvent(QEvent *)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:728
void resizeEvent(QResizeEvent *event)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:738
virtual bool execute(ObjectList &)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:1045
GEOM::GEOM_Object_var myPoint3
Definition: AdvancedGUI_PipeTShapeDlg.h:115
void ApplyNewDimensions()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:383
void ValueChangedInSpinBox(double)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:507
GEOM::GEOM_Object_var myPoint1
Definition: AdvancedGUI_PipeTShapeDlg.h:115
bool myOkPoint3
Definition: AdvancedGUI_PipeTShapeDlg.h:116
QString CssNormal
Definition: AdvancedGUI_PipeTShapeDlg.h:114
DlgRef_6Sel * JunctionPointsSel
Definition: AdvancedGUI_PipeTShapeDlg.h:112
QString CssRefused
Definition: AdvancedGUI_PipeTShapeDlg.h:114
QString CssAcceptable
Definition: AdvancedGUI_PipeTShapeDlg.h:114
AdvancedGUI_4Spin * RReductionGroupParams
Definition: AdvancedGUI_PipeTShapeDlg.h:108
DlgRef_3Spin * MainTubeGroupParams
Definition: AdvancedGUI_PipeTShapeDlg.h:100
bool myOkPoint2
Definition: AdvancedGUI_PipeTShapeDlg.h:116
virtual GEOM::GEOM_IOperations_ptr createOperation()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:848
virtual QList< GEOM::GeomObjPtr > getSourceObjects()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:1258
DlgRef_3Spin * IncidentTubeGroupParams
Definition: AdvancedGUI_PipeTShapeDlg.h:101
void SetPosition(bool)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:484
void UpdatePicture(QWidget *old, QWidget *now)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:423
void ClickOnOk()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:686
QLabel * LabelImgPipeTShape
Definition: AdvancedGUI_PipeTShapeDlg.h:96
~AdvancedGUI_PipeTShapeDlg()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:225
QPixmap imageReduction
Definition: AdvancedGUI_PipeTShapeDlg.h:95
bool executeNoCheck(ObjectList &objects)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:1057
DlgRef_2Spin * ChamferGroupParams
Definition: AdvancedGUI_PipeTShapeDlg.h:102
void ActivateThisDialog()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:713
void updateLabelImgPipeTShape()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:757
bool ClickOnApply()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:697
bool myOkPoint1
Definition: AdvancedGUI_PipeTShapeDlg.h:116
virtual void processPreview()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:1246
AdvancedGUI_PipeTShapeDlg(GeometryGUI *, QWidget *=0)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:52
virtual void restoreSubShapes(SALOMEDS::SObject_ptr)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:1220
void currentChanged(int)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:373
void Init()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:233
GEOM::GEOM_Object_var myPoint2
Definition: AdvancedGUI_PipeTShapeDlg.h:115
void SetEditCurrentArgument()
Definition: AdvancedGUI_PipeTShapeDlg.cxx:606
virtual bool isValid(QString &)
Definition: AdvancedGUI_PipeTShapeDlg.cxx:857
Definition: DlgRef.h:303
Definition: DlgRef.h:639
Definition: DlgRef.h:821
Definition: DlgRef.h:869
Definition: DlgRef.h:885
Definition: DlgRef.h:967
void activate(const int)
Definition: GEOMBase_Helper.cxx:447
Definition: GEOMBase_Skeleton.h:53
Definition: GeometryGUI.h:74