mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-11 09:53:07 +05:00
PAL13460 (force the mesh to go through a point)
extract SMESH_MeshEditor.idl from SMESH_Mesh.idl
This commit is contained in:
parent
2069193969
commit
0510c5f9c6
@ -55,6 +55,8 @@
|
|||||||
|
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
|
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
// OCCT Includes
|
// OCCT Includes
|
||||||
#include <TColStd_MapOfInteger.hxx>
|
#include <TColStd_MapOfInteger.hxx>
|
||||||
#include <TColStd_IndexedMapOfInteger.hxx>
|
#include <TColStd_IndexedMapOfInteger.hxx>
|
||||||
|
@ -46,6 +46,8 @@
|
|||||||
|
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
|
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
// OCCT Includes
|
// OCCT Includes
|
||||||
#include <TColStd_MapOfInteger.hxx>
|
#include <TColStd_MapOfInteger.hxx>
|
||||||
#include <TColStd_IndexedMapOfInteger.hxx>
|
#include <TColStd_IndexedMapOfInteger.hxx>
|
||||||
|
@ -42,6 +42,8 @@
|
|||||||
|
|
||||||
#include "LightApp_UpdateFlags.h"
|
#include "LightApp_UpdateFlags.h"
|
||||||
|
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
//================================================================================
|
//================================================================================
|
||||||
/*!
|
/*!
|
||||||
* \brief Constructor
|
* \brief Constructor
|
||||||
|
@ -84,6 +84,7 @@
|
|||||||
// IDL Headers
|
// IDL Headers
|
||||||
#include "SALOMEconfig.h"
|
#include "SALOMEconfig.h"
|
||||||
#include CORBA_SERVER_HEADER(SMESH_Group)
|
#include CORBA_SERVER_HEADER(SMESH_Group)
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -36,6 +36,8 @@
|
|||||||
|
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
|
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
// QT Includes
|
// QT Includes
|
||||||
#include <qapplication.h>
|
#include <qapplication.h>
|
||||||
#include <qbuttongroup.h>
|
#include <qbuttongroup.h>
|
||||||
|
@ -88,6 +88,7 @@
|
|||||||
// IDL Headers
|
// IDL Headers
|
||||||
#include "SALOMEconfig.h"
|
#include "SALOMEconfig.h"
|
||||||
#include CORBA_SERVER_HEADER(SMESH_Group)
|
#include CORBA_SERVER_HEADER(SMESH_Group)
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -123,6 +123,7 @@ private:
|
|||||||
QLabel* StartPointLab;
|
QLabel* StartPointLab;
|
||||||
QToolButton* SelectStartPointButton;
|
QToolButton* SelectStartPointButton;
|
||||||
QLineEdit* StartPointLineEdit;
|
QLineEdit* StartPointLineEdit;
|
||||||
|
QCheckBox* LinearAnglesCheck;
|
||||||
QCheckBox* AnglesCheck;
|
QCheckBox* AnglesCheck;
|
||||||
QGroupBox* AnglesGrp;
|
QGroupBox* AnglesGrp;
|
||||||
QListBox* AnglesList;
|
QListBox* AnglesList;
|
||||||
|
@ -79,6 +79,7 @@
|
|||||||
// IDL Headers
|
// IDL Headers
|
||||||
#include "SALOMEconfig.h"
|
#include "SALOMEconfig.h"
|
||||||
#include CORBA_SERVER_HEADER(SMESH_Group)
|
#include CORBA_SERVER_HEADER(SMESH_Group)
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -54,6 +54,8 @@
|
|||||||
|
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
|
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
// OCCT Includes
|
// OCCT Includes
|
||||||
#include <TColStd_MapOfInteger.hxx>
|
#include <TColStd_MapOfInteger.hxx>
|
||||||
|
|
||||||
|
@ -82,6 +82,7 @@
|
|||||||
// IDL Headers
|
// IDL Headers
|
||||||
#include <SALOMEconfig.h>
|
#include <SALOMEconfig.h>
|
||||||
#include CORBA_SERVER_HEADER(SMESH_Mesh)
|
#include CORBA_SERVER_HEADER(SMESH_Mesh)
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
#define MARGIN 10
|
#define MARGIN 10
|
||||||
#define SPACING 5
|
#define SPACING 5
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
#include <SALOMEconfig.h>
|
#include <SALOMEconfig.h>
|
||||||
#include CORBA_SERVER_HEADER(SMESH_Mesh)
|
#include CORBA_SERVER_HEADER(SMESH_Mesh)
|
||||||
#include CORBA_SERVER_HEADER(SMESH_Filter)
|
#include CORBA_SERVER_HEADER(SMESH_Filter)
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
class SMESHGUI;
|
class SMESHGUI;
|
||||||
class SMESHGUI_FilterDlg;
|
class SMESHGUI_FilterDlg;
|
||||||
|
@ -89,6 +89,8 @@
|
|||||||
#include <qvalidator.h>
|
#include <qvalidator.h>
|
||||||
#include <qevent.h>
|
#include <qevent.h>
|
||||||
|
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
||||||
|
@ -71,6 +71,8 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : SMESHGUI_RemoveElementsDlg()
|
// class : SMESHGUI_RemoveElementsDlg()
|
||||||
// purpose :
|
// purpose :
|
||||||
|
@ -71,6 +71,8 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : SMESHGUI_RemoveNodesDlg()
|
// class : SMESHGUI_RemoveNodesDlg()
|
||||||
// purpose :
|
// purpose :
|
||||||
|
@ -59,6 +59,8 @@
|
|||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : SMESHGUI_RenumberingDlg()
|
// class : SMESHGUI_RenumberingDlg()
|
||||||
// purpose :
|
// purpose :
|
||||||
|
@ -73,6 +73,7 @@
|
|||||||
// IDL Headers
|
// IDL Headers
|
||||||
#include "SALOMEconfig.h"
|
#include "SALOMEconfig.h"
|
||||||
#include CORBA_SERVER_HEADER(SMESH_Group)
|
#include CORBA_SERVER_HEADER(SMESH_Group)
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -68,8 +68,11 @@
|
|||||||
#include <qlayout.h>
|
#include <qlayout.h>
|
||||||
#include <qpixmap.h>
|
#include <qpixmap.h>
|
||||||
|
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
// class : SMESHGUI_SewingDlg()
|
// class : SMESHGUI_SewingDlg()
|
||||||
// purpose :
|
// purpose :
|
||||||
|
@ -146,10 +146,6 @@ SMESHGUI_ShapeByMeshDlg::~SMESHGUI_ShapeByMeshDlg()
|
|||||||
//================================================================================
|
//================================================================================
|
||||||
/*!
|
/*!
|
||||||
* \brief Constructor
|
* \brief Constructor
|
||||||
* \param theToCreate - if this parameter is true then operation is used for creation,
|
|
||||||
* for editing otherwise
|
|
||||||
*
|
|
||||||
* Initialize operation
|
|
||||||
*/
|
*/
|
||||||
//================================================================================
|
//================================================================================
|
||||||
SMESHGUI_ShapeByMeshOp::SMESHGUI_ShapeByMeshOp(bool isMultipleAllowed):
|
SMESHGUI_ShapeByMeshOp::SMESHGUI_ShapeByMeshOp(bool isMultipleAllowed):
|
||||||
|
@ -59,35 +59,22 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
// void closeEvent (QCloseEvent* e);
|
|
||||||
// void enterEvent (QEvent*);
|
|
||||||
|
|
||||||
private:
|
|
||||||
|
|
||||||
//QFrame* createButtonFrame (QWidget*);
|
|
||||||
QFrame* createMainFrame (QWidget*);
|
QFrame* createMainFrame (QWidget*);
|
||||||
//void displayPreview();
|
|
||||||
//void erasePreview();
|
|
||||||
private:
|
|
||||||
|
|
||||||
QButtonGroup* myElemTypeGroup;
|
QButtonGroup* myElemTypeGroup;
|
||||||
QLineEdit* myElementId;
|
QLineEdit* myElementId;
|
||||||
QLineEdit* myGeomName;
|
QLineEdit* myGeomName;
|
||||||
|
|
||||||
private:
|
|
||||||
bool myIsMultipleAllowed;
|
bool myIsMultipleAllowed;
|
||||||
void setMultipleAllowed(bool isAllowed) {myIsMultipleAllowed = isAllowed;};
|
void setMultipleAllowed(bool isAllowed) {myIsMultipleAllowed = isAllowed;};
|
||||||
|
|
||||||
// QPushButton* myOkBtn;
|
|
||||||
// QPushButton* myCloseBtn;
|
|
||||||
|
|
||||||
// SMESHGUI* mySMESHGUI;
|
|
||||||
// LightApp_SelectionMgr* mySelectionMgr;
|
|
||||||
// SVTK_ViewWindow* myViewWindow;
|
|
||||||
|
|
||||||
friend class SMESHGUI_ShapeByMeshOp;
|
friend class SMESHGUI_ShapeByMeshOp;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Operation to publish a sub-shape of the mesh main shape
|
||||||
|
* by selecting mesh elements
|
||||||
|
*/
|
||||||
class SMESHGUI_ShapeByMeshOp: public SMESHGUI_SelectionOp
|
class SMESHGUI_ShapeByMeshOp: public SMESHGUI_SelectionOp
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@ -107,35 +94,16 @@ protected:
|
|||||||
|
|
||||||
virtual void commitOperation();
|
virtual void commitOperation();
|
||||||
virtual void startOperation();
|
virtual void startOperation();
|
||||||
//virtual void selectionDone();
|
|
||||||
//virtual SUIT_SelectionFilter* createFilter( const int ) const;
|
|
||||||
//virtual bool isValid( SUIT_Operation* ) const;
|
|
||||||
|
|
||||||
void activateSelection();
|
void activateSelection();
|
||||||
void setElementID(const QString&);
|
void setElementID(const QString&);
|
||||||
|
|
||||||
/* signals: */
|
|
||||||
|
|
||||||
/* void PublishShape(); */
|
|
||||||
/* void Close(); */
|
|
||||||
|
|
||||||
protected slots:
|
protected slots:
|
||||||
|
|
||||||
virtual bool onApply() { return true; }
|
virtual bool onApply() { return true; }
|
||||||
/* void onCreateHyp( const int theHypType, const int theIndex ); */
|
|
||||||
/* void onEditHyp( const int theHypType, const int theIndex ); */
|
|
||||||
/* void onHypoSet( const QString& theSetName ); */
|
|
||||||
/* void onGeomSelectionByMesh( bool ); */
|
|
||||||
/* void onPublishShapeByMeshDlg(); */
|
|
||||||
/* void onCloseShapeByMeshDlg(); */
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
|
||||||
// void onOk();
|
|
||||||
// void onClose();
|
|
||||||
|
|
||||||
// void onDeactivate();
|
|
||||||
|
|
||||||
void onSelectionDone();
|
void onSelectionDone();
|
||||||
void onTypeChanged (int);
|
void onTypeChanged (int);
|
||||||
void onElemIdChanged (const QString&);
|
void onElemIdChanged (const QString&);
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#include <SALOMEconfig.h>
|
#include <SALOMEconfig.h>
|
||||||
#include CORBA_SERVER_HEADER(SMESH_Mesh)
|
#include CORBA_SERVER_HEADER(SMESH_Mesh)
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
class QCloseEvent;
|
class QCloseEvent;
|
||||||
class QFrame;
|
class QFrame;
|
||||||
|
@ -80,6 +80,7 @@
|
|||||||
// IDL Headers
|
// IDL Headers
|
||||||
#include "SALOMEconfig.h"
|
#include "SALOMEconfig.h"
|
||||||
#include CORBA_SERVER_HEADER(SMESH_Group)
|
#include CORBA_SERVER_HEADER(SMESH_Group)
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@
|
|||||||
// IDL Headers
|
// IDL Headers
|
||||||
#include "SALOMEconfig.h"
|
#include "SALOMEconfig.h"
|
||||||
#include CORBA_SERVER_HEADER(SMESH_Group)
|
#include CORBA_SERVER_HEADER(SMESH_Group)
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -75,6 +75,7 @@
|
|||||||
// IDL Headers
|
// IDL Headers
|
||||||
#include "SALOMEconfig.h"
|
#include "SALOMEconfig.h"
|
||||||
#include CORBA_SERVER_HEADER(SMESH_Group)
|
#include CORBA_SERVER_HEADER(SMESH_Group)
|
||||||
|
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -21,12 +21,14 @@
|
|||||||
#include <qstring.h>
|
#include <qstring.h>
|
||||||
|
|
||||||
#include "SMESHGUI_Utils.h"
|
#include "SMESHGUI_Utils.h"
|
||||||
|
#include "SMESHGUI.h"
|
||||||
|
|
||||||
#include "OB_Browser.h"
|
#include "OB_Browser.h"
|
||||||
|
|
||||||
#include "SUIT_Desktop.h"
|
#include "SUIT_Desktop.h"
|
||||||
#include "SUIT_Application.h"
|
#include "SUIT_Application.h"
|
||||||
#include "SUIT_Session.h"
|
#include "SUIT_Session.h"
|
||||||
|
#include "SUIT_MessageBox.h"
|
||||||
|
|
||||||
#include "LightApp_SelectionMgr.h"
|
#include "LightApp_SelectionMgr.h"
|
||||||
#include "SalomeApp_Application.h"
|
#include "SalomeApp_Application.h"
|
||||||
@ -287,6 +289,22 @@ namespace SMESH{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ShowHelpFile (QString theHelpFileName)
|
||||||
|
{
|
||||||
|
LightApp_Application* app = (LightApp_Application*)(SUIT_Session::session()->activeApplication());
|
||||||
|
if (app) {
|
||||||
|
SMESHGUI* gui = SMESHGUI::GetSMESHGUI();
|
||||||
|
app->onHelpContextModule(gui ? app->moduleName(gui->moduleName()) : QString(""),
|
||||||
|
theHelpFileName);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
SUIT_MessageBox::warn1(0, QObject::tr("WRN_WARNING"),
|
||||||
|
QObject::tr("EXTERNAL_BROWSER_CANNOT_SHOW_PAGE").
|
||||||
|
arg(app->resourceMgr()->stringValue("ExternalBrowser", "application")).arg(theHelpFileName),
|
||||||
|
QObject::tr("BUT_OK"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// void UpdateObjBrowser (bool)
|
// void UpdateObjBrowser (bool)
|
||||||
// {
|
// {
|
||||||
// //SMESHGUI::activeStudy()->updateObjBrowser(true);
|
// //SMESHGUI::activeStudy()->updateObjBrowser(true);
|
||||||
|
@ -126,7 +126,7 @@ namespace SMESH {
|
|||||||
|
|
||||||
void ModifiedMesh (_PTR(SObject) theSObject, bool theIsRight);
|
void ModifiedMesh (_PTR(SObject) theSObject, bool theIsRight);
|
||||||
|
|
||||||
// void UpdateObjBrowser (bool);
|
void ShowHelpFile (QString theHelpFileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user