Version: 9.16.0
StdMeshersGUI_QuadrangleParamWdg.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// File : StdMeshersGUI_QuadrangleParamWdg.h
20// Author : Open CASCADE S.A.S. (jfa)
21
22#ifndef STDMESHERSGUI_QUADRANGLEPARAMWDG_H
23#define STDMESHERSGUI_QUADRANGLEPARAMWDG_H
24
25// SMESH includes
28
29#include <SALOME_InteractiveObject.hxx>
30
31// Qt includes
32#include <QWidget>
33#include <QItemDelegate>
34
35
36class QButtonGroup;
37class QLineEdit;
38class QListWidget;
39class QPushButton;
40class QTabWidget;
41class QTreeWidget;
44
45//================================================================================
50{
51 Q_OBJECT
52
53 class ItemDelegate;
54
55 public:
56 StdMeshersGUI_QuadrangleParamCreator( const QString& aHypType );
57
58 //virtual bool checkParams( QString& ) const;
59 virtual QString helpPage() const;
60
61 protected:
62 virtual QFrame* buildFrame();
63 virtual void retrieveParams() const;
64 virtual QString storeParams() const;
65
66 private slots:
67
68 void onTypeChanged(int type);
69 void onAddShape();
70 void onRemoveShape();
71 void onAddPoint();
72 void onRemovePoint();
73 void onSelectionChanged();
74 void onTabChanged(int);
75
76 private:
77
78 QLineEdit* myName;
82 QListWidget* myShapesList;
83 QPushButton* myAddShapeBut;
85 QTabWidget* myTabs;
86 Handle(SALOME_InteractiveObject) mySelectedShapeIO;
87};
88
89//================================================================================
94{
95 Q_OBJECT
96
97 public:
100
101 void SetType (int theType);
102 int GetType ();
103
104 GEOM::ListOfGO* GetShapes();
106 void Set( GEOM::ListOfGO_var shapes, SMESH::nodes_array_var points );
107
108 signals:
109
110 void typeChanged(int);
111
112 private:
113 QButtonGroup* myType; // Quadrangle preference, Triangle preference, Reduced
114};
115
116//================================================================================
121{
122 Q_OBJECT
123public:
125 QWidget* createEditor( QWidget*, const QStyleOptionViewItem&, const QModelIndex& ) const;
126};
127
128#endif // STDMESHERSGUI_QUADRANGLEPARAMWDG_H
#define STDMESHERSGUI_EXPORT
Definition: SMESH_StdMeshersGUI.hxx:36
virtual QString helpPage() const
Definition: SMESHGUI_Hypotheses.cxx:591
Item delegate for a tree widget.
Definition: StdMeshersGUI_QuadrangleParamWdg.h:121
ItemDelegate(QObject *)
Constructor.
Definition: StdMeshersGUI_QuadrangleParamWdg.cxx:493
QWidget * createEditor(QWidget *, const QStyleOptionViewItem &, const QModelIndex &) const
Create item editor widget.
Definition: StdMeshersGUI_QuadrangleParamWdg.cxx:501
Quadrangle Parameters Creator.
Definition: StdMeshersGUI_QuadrangleParamWdg.h:50
QTabWidget * myTabs
Definition: StdMeshersGUI_QuadrangleParamWdg.h:85
StdMeshersGUI_QuadrangleParamWdg * myTypeWdg
Definition: StdMeshersGUI_QuadrangleParamWdg.h:79
StdMeshersGUI_SubShapeSelectorWdg * myCornersSelWdg
Definition: StdMeshersGUI_QuadrangleParamWdg.h:81
Handle(SALOME_InteractiveObject) mySelectedShapeIO
StdMeshersGUI_SubShapeSelectorWdg * myVertexSelWdg
Definition: StdMeshersGUI_QuadrangleParamWdg.h:80
QListWidget * myShapesList
Definition: StdMeshersGUI_QuadrangleParamWdg.h:82
QPushButton * myAddShapeBut
Definition: StdMeshersGUI_QuadrangleParamWdg.h:83
QTreeWidget * myCoordsTreeWdg
Definition: StdMeshersGUI_QuadrangleParamWdg.h:84
QLineEdit * myName
Definition: StdMeshersGUI_QuadrangleParamWdg.h:78
Transition type widget.
Definition: StdMeshersGUI_QuadrangleParamWdg.h:94
QButtonGroup * myType
Definition: StdMeshersGUI_QuadrangleParamWdg.h:113
void Set(GEOM::ListOfGO_var shapes, SMESH::nodes_array_var points)
SMESH::nodes_array * GetPoints()
Class for creation of standard hypotheses.
Definition: StdMeshersGUI_StdHypothesisCreator.h:38
virtual void retrieveParams() const
Initialise parameter values in controls.
Definition: StdMeshersGUI_StdHypothesisCreator.cxx:159
virtual QFrame * buildFrame()
Builds dlg layout.
Definition: StdMeshersGUI_StdHypothesisCreator.cxx:148
virtual QString storeParams() const
Store params from GUI controls to a hypothesis.
Definition: StdMeshersGUI_StdHypothesisCreator.cxx:506
Definition: StdMeshersGUI_SubShapeSelectorWdg.h:49
sequence< PointStruct > nodes_array
Definition: SMESH_Mesh.idl:97