Version: 9.16.0
SMESHGUI_ReorientFacesDlg.h
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22
23// File : SMESHGUI_ReorientFacesDlg.h
24// Author : Edward AGAPOV, Open CASCADE S.A.S.
25//
26#ifndef SMESHGUI_ReorientFacesDlg_H
27#define SMESHGUI_ReorientFacesDlg_H
28
29// SMESH includes
30
31#include "SMESH_SMESHGUI.hxx"
32
33#include "SMESHGUI_Dialog.h"
35
36#include <SALOMEconfig.h>
37#include CORBA_SERVER_HEADER(SMESH_Mesh)
38
39class QButtonGroup;
40class QCheckBox;
41class QLineEdit;
45
51{
52 Q_OBJECT
53
54 public:
57
58 virtual LightApp_Dialog* dlg() const;
59
60 protected:
61
62 virtual void startOperation();
63 virtual void stopOperation();
64
65 virtual SUIT_SelectionFilter* createFilter( const int ) const;
66 virtual void selectionDone();
67
68 bool isValid( QString& );
69 void setRefFiltersByConstructor();
70 int constructorID();
71
72
73 protected slots:
74 virtual bool onApply();
75
76 private slots:
77 virtual void onActivateObject( int );
78 void redisplayPreview();
79 void onTextChange( const QString& );
80 bool onlyOneObjAllowed();
81
82 private:
83
85
88
92
93 SMESH::ListOfIDSources_var myObjects;
94 SMESH::ListOfIDSources_var myRefGroups;
95};
96
102{
103 Q_OBJECT
104
105 public:
107
108public slots:
109 void constructorChange(int id);
110
111private:
112 QWidget* createMainFrame( QWidget* );
113 void setLabel( int object, const char* text );
114
115 QButtonGroup* myConstructorGrp;
120 QCheckBox* myOutsideChk;
124 //QPushButton* myIdBtn;
125 //QLineEdit* myId;
129
131
133
134 //private slots:
135 //void ButtonToggled( bool );
136};
137
138#endif // SMESHGUI_ReorientFacesDlg_H
#define SMESHGUI_EXPORT
Definition: SMESH_SMESHGUI.hxx:36
Definition: SMESHGUI_Dialog.h:44
virtual bool isValid(SUIT_Operation *) const
Verifies whether given operator is valid for this one.
Definition: SMESHGUI_Operation.cxx:242
virtual bool onApply()
Definition: SMESHGUI_Operation.cxx:166
================================================================================
Definition: SMESHGUI_ReorientFacesDlg.h:102
QString myHelpFileName
Definition: SMESHGUI_ReorientFacesDlg.h:130
SMESHGUI_SpinBox * myZ
Definition: SMESHGUI_ReorientFacesDlg.h:123
SMESHGUI_SpinBox * myY
Definition: SMESHGUI_ReorientFacesDlg.h:122
SMESHGUI_SpinBox * myDY
Definition: SMESHGUI_ReorientFacesDlg.h:127
SMESHGUI_SpinBox * myX
Definition: SMESHGUI_ReorientFacesDlg.h:121
QFrame * myDirFrm
Definition: SMESHGUI_ReorientFacesDlg.h:118
QFrame * myPointFrm
Definition: SMESHGUI_ReorientFacesDlg.h:117
QFrame * myRefGroupFrm
Definition: SMESHGUI_ReorientFacesDlg.h:119
SMESHGUI_SpinBox * myDX
Definition: SMESHGUI_ReorientFacesDlg.h:126
QButtonGroup * myConstructorGrp
Definition: SMESHGUI_ReorientFacesDlg.h:115
SMESHGUI_SpinBox * myDZ
Definition: SMESHGUI_ReorientFacesDlg.h:128
QCheckBox * myOutsideChk
Definition: SMESHGUI_ReorientFacesDlg.h:120
QFrame * myFaceFrm
Definition: SMESHGUI_ReorientFacesDlg.h:116
================================================================================
Definition: SMESHGUI_ReorientFacesDlg.h:51
SMESH_TypeFilter * myRefMeshFilter
Definition: SMESHGUI_ReorientFacesDlg.h:91
SMESH::ListOfIDSources_var myRefGroups
Definition: SMESHGUI_ReorientFacesDlg.h:94
SMESH_TypeFilter * myRefGroupFilter
Definition: SMESHGUI_ReorientFacesDlg.h:89
SMESHGUI_ReorientFacesDlg * myDlg
Definition: SMESHGUI_ReorientFacesDlg.h:84
int mySelectionMode
Definition: SMESHGUI_ReorientFacesDlg.h:87
SMESH_Actor * myObjectActor
Definition: SMESHGUI_ReorientFacesDlg.h:86
SMESH::ListOfIDSources_var myObjects
Definition: SMESHGUI_ReorientFacesDlg.h:93
SMESH_TypeFilter * myRefSubMeshFilter
Definition: SMESHGUI_ReorientFacesDlg.h:90
Definition: SMESHGUI_SelectionOp.h:58
virtual void onActivateObject(int)
Installs filter corresponding to certain object selection widget.
Definition: SMESHGUI_SelectionOp.cxx:179
virtual void selectionDone()
Definition: SMESHGUI_SelectionOp.cxx:143
virtual void startOperation()
This enumeration is used in typeById method to distinguish objects, mesh nodes and mesh elements,...
Definition: SMESHGUI_SelectionOp.cxx:79
virtual SUIT_SelectionFilter * createFilter(const int) const
Creates filter being used when certain object selection widget is active If no filter must be used,...
Definition: SMESHGUI_SelectionOp.cxx:170
Definition: SMESHGUI_SpinBox.h:48
Definition: SMESH_Actor.h:56
Definition: SMESH_TypeFilter.hxx:35