fixed edge display for volume cells
[engrid-github.git] / src / libengrid / std_connections.h
blob2673c934e5638652a0a8407389c6b4d14718a487
1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 // + +
3 // + This file is part of enGrid. +
4 // + +
5 // + Copyright 2008-2014 enGits GmbH +
6 // + +
7 // + enGrid is free software: you can redistribute it and/or modify +
8 // + it under the terms of the GNU General Public License as published by +
9 // + the Free Software Foundation, either version 3 of the License, or +
10 // + (at your option) any later version. +
11 // + +
12 // + enGrid is distributed in the hope that it will be useful, +
13 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
14 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
15 // + GNU General Public License for more details. +
16 // + +
17 // + You should have received a copy of the GNU General Public License +
18 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
19 // + +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22 //connect(ui.action,SIGNAL(triggered()),this,SLOT(call()));
24 connect(ui.actionImportSTL, SIGNAL(triggered()), this, SLOT(importSTL()));
25 connect(ui.actionImportGmsh1Ascii, SIGNAL(triggered()), this, SLOT(importGmsh1Ascii()));
26 connect(ui.actionImportGmsh2Ascii, SIGNAL(triggered()), this, SLOT(importGmsh2Ascii()));
27 connect(ui.actionExportGmsh1Ascii, SIGNAL(triggered()), this, SLOT(exportGmsh1Ascii()));
28 connect(ui.actionExportGmsh2Ascii, SIGNAL(triggered()), this, SLOT(exportGmsh2Ascii()));
29 connect(ui.actionExportNeutral, SIGNAL(triggered()), this, SLOT(exportNeutral()));
30 connect(ui.actionExportAsciiStl, SIGNAL(triggered()), this, SLOT(exportAsciiStl()));
31 connect(ui.actionExportBinaryStl, SIGNAL(triggered()), this, SLOT(exportBinaryStl()));
32 connect(ui.actionExportAsciiPly, SIGNAL(triggered()), this, SLOT(exportAsciiPly()));
33 connect(ui.actionExportBinaryPly, SIGNAL(triggered()), this, SLOT(exportBinaryPly()));
34 connect(ui.actionExportSu2, SIGNAL(triggered()), this, SLOT(callExportSu2()));
35 connect(ui.actionExportDolfyn, SIGNAL(triggered()), this, SLOT(callExportDolfyn()));
36 connect(ui.actionExportTau, SIGNAL(triggered()), this, SLOT(callExportTau()));
37 connect(ui.actionExportDrNum, SIGNAL(triggered()), this, SLOT(callExportDrNum()));
38 connect(ui.actionExit, SIGNAL(triggered()), this, SLOT(exit()));
39 connect(ui.actionZoomAll, SIGNAL(triggered()), this, SLOT(zoomAll()));
40 connect(ui.actionZoomOnPickedObject, SIGNAL(triggered()), this, SLOT(zoomOnPickedObject()));
41 connect(ui.actionPrintGrid, SIGNAL(triggered()), this, SLOT(printGrid()));
42 connect(ui.actionShowInfo, SIGNAL(triggered()), this, SLOT(info()));
43 connect(ui.actionDeselectAll, SIGNAL(triggered()), this, SLOT(deselectAll()));
44 connect(ui.actionOpen, SIGNAL(triggered()), this, SLOT(open()));
45 connect(ui.actionSave, SIGNAL(triggered()), this, SLOT(save()));
46 connect(ui.actionSaveAs, SIGNAL(triggered()), this, SLOT(saveAs()));
47 connect(ui.actionBoundaryCodes, SIGNAL(triggered()), this, SLOT(selectBoundaryCodes()));
48 connect(ui.actionNormalExtrusion, SIGNAL(triggered()), this, SLOT(normalExtrusion()));
49 connect(ui.actionViewAxes, SIGNAL(changed()), this, SLOT(setAxesVisibility()));
50 connect(ui.actionViewOrthogonal, SIGNAL(changed()), this, SLOT(setViewingMode()));
51 connect(ui.actionViewNodeIDs, SIGNAL(changed()), this, SLOT(viewNodeIDs()));
52 connect(ui.actionViewCellIDs, SIGNAL(changed()), this, SLOT(viewCellIDs()));
53 connect(ui.actionChangeOrientation, SIGNAL(triggered()), this, SLOT(changeSurfaceOrientation()));
54 connect(ui.actionCheckOrientation, SIGNAL(triggered()), this, SLOT(checkSurfaceOrientation()));
55 connect(ui.actionImproveAspectRatio, SIGNAL(triggered()), this, SLOT(improveAspectRatio()));
56 connect(ui.actionRedraw, SIGNAL(triggered()), this, SLOT(updateActors()));
57 connect(ui.actionForcedRedraw, SIGNAL(triggered()), this, SLOT(forceUpdateActors()));
58 connect(ui.actionScaleToData, SIGNAL(triggered()), this, SLOT(scaleToData()));
59 connect(ui.actionClearOutputWindow, SIGNAL(triggered()), this, SLOT(clearOutput()));
60 connect(ui.actionEditBoundaryConditions, SIGNAL(triggered()), this, SLOT(editBoundaryConditions()));
61 connect(ui.actionConfigure, SIGNAL(triggered()), this, SLOT(configure()));
62 connect(ui.actionAbout, SIGNAL(triggered()), this, SLOT(about()));
63 connect(ui.actionStoreGeometry, SIGNAL(triggered()), this, SLOT(callUpdateSurfProj()));
65 connect(ui.checkBox_UseVTKInteractor, SIGNAL(stateChanged(int)), this, SLOT(setUseVTKInteractor(int)));
67 connect(ui.actionViewRight, SIGNAL(triggered()), this, SLOT(viewRight()));
68 connect(ui.actionViewLeft, SIGNAL(triggered()), this, SLOT(viewLeft()));
69 connect(ui.actionViewTop, SIGNAL(triggered()), this, SLOT(viewTop()));
70 connect(ui.actionViewBottom, SIGNAL(triggered()), this, SLOT(viewBottom()));
71 connect(ui.actionViewFront, SIGNAL(triggered()), this, SLOT(viewFront()));
72 connect(ui.actionViewBack, SIGNAL(triggered()), this, SLOT(viewBack()));
74 connect(ui.lineEditClipX, SIGNAL(textChanged(QString)), this, SLOT(setClipX(QString)));
75 connect(ui.lineEditClipY, SIGNAL(textChanged(QString)), this, SLOT(setClipY(QString)));
76 connect(ui.lineEditClipZ, SIGNAL(textChanged(QString)), this, SLOT(setClipZ(QString)));
77 connect(ui.lineEditClipNX, SIGNAL(textChanged(QString)), this, SLOT(setClipNX(QString)));
78 connect(ui.lineEditClipNY, SIGNAL(textChanged(QString)), this, SLOT(setClipNY(QString)));
79 connect(ui.lineEditClipNZ, SIGNAL(textChanged(QString)), this, SLOT(setClipNZ(QString)));
81 connect(ui.pushButtonMarkPosition, SIGNAL(clicked()), this, SLOT(markOutputLine()));
83 connect(ui.actionCreateSurfaceMesh, SIGNAL(triggered()), this, SLOT(callCreateSurfaceMesh()));
84 connect(ui.actionCreateBoundaryLayer, SIGNAL(triggered()), this, SLOT(callCreateBoundaryLayer()));
85 connect(ui.actionDivideBoundaryLayer, SIGNAL(triggered()), this, SLOT(callDivideBoundaryLayer()));
86 connect(ui.actionDeleteVolumeGrid, SIGNAL(triggered()), this, SLOT(callDeleteTetras()));
87 connect(ui.actionFixSTL, SIGNAL(triggered()), this, SLOT(callFixSTL()));
88 connect(ui.actionCreateVolumeMesh, SIGNAL(triggered()), this, SLOT(callCreateVolumeMesh()));
89 connect(ui.actionSmoothVolumeGrid, SIGNAL(triggered()), this, SLOT(callSmoothVolumeGrid()));
90 connect(ui.actionVtkReader, SIGNAL(triggered()), this, SLOT(callVtkReader()));
91 connect(ui.actionPolyDataReader, SIGNAL(triggered()), this, SLOT(callPolyDataReader()));
92 connect(ui.actionSetBoundaryCode, SIGNAL(triggered()), this, SLOT(callSetBoundaryCode()));
93 connect(ui.actionFoamWriter, SIGNAL(triggered()), this, SLOT(callFoamWriter()));
94 connect(ui.actionSimpleFoamWriter, SIGNAL(triggered()), this, SLOT(callSimpleFoamWriter()));
95 connect(ui.actionFoamCaseWriter, SIGNAL(triggered()), this, SLOT(callFoamCaseWriter()));
96 connect(ui.actionDeleteBadAspectTris, SIGNAL(triggered()), this, SLOT(callDeleteBadAspectTris()));
97 connect(ui.actionDeletePickedCell, SIGNAL(triggered()), this, SLOT(callDeletePickedCell()));
98 connect(ui.actionMergeNodes, SIGNAL(triggered()), this, SLOT(callMergeNodes()));
99 connect(ui.actionInsertNewCell, SIGNAL(triggered()), this, SLOT(callInsertNewCell()));
100 connect(ui.actionDeletePickedPoint, SIGNAL(triggered()), this, SLOT(callDeletePickedPoint()));
101 connect(ui.actionBoxSelect, SIGNAL(triggered()), this, SLOT(callBoxSelect()));
102 connect(ui.actionCheck_surface_integrity, SIGNAL(triggered()), this, SLOT(callCheckSurfaceIntegrity()));
103 connect(ui.actionPick_cell_point, SIGNAL(triggered()), this, SLOT(callPick_cell_point()));
104 connect(ui.actionTransform, SIGNAL(triggered()), this, SLOT(callTransform()));
105 connect(ui.actionExportCGNS, SIGNAL(triggered()), this, SLOT(callCgnsWriter()));
106 connect(ui.actionUndo, SIGNAL(triggered()), this, SLOT(undo()));
107 connect(ui.actionRedo, SIGNAL(triggered()), this, SLOT(redo()));
108 connect(ui.actionImportOpenFoamCase, SIGNAL(triggered()), this, SLOT(callImportOpenFoamCase()));
109 connect(ui.actionReducedPolyDataReader, SIGNAL(triggered()), this, SLOT(callReducedPolyDataReader()));
110 connect(ui.actionSurfaceMesher, SIGNAL(triggered()), this, SLOT(callSurfaceMesher()));
111 connect(ui.actionReduceSurfaceTriangulation, SIGNAL(triggered()), this, SLOT(callReduceSurfaceTriangulation()));
112 connect(ui.actionEliminateSmallBranches, SIGNAL(triggered()), this, SLOT(callEliminateSmallBranches()));
113 connect(ui.actionSmoothAndSwapSurface, SIGNAL(triggered()), this, SLOT(callSmoothAndSwapSurface()));
114 connect(ui.actionImportSeligAirfoil, SIGNAL(triggered()), this, SLOT(callSeligAirfoilReader()));
115 connect(ui.actionImportBlenderFile, SIGNAL(triggered()), this, SLOT(callBlenderReader()));
116 connect(ui.actionExportBlenderFile, SIGNAL(triggered()), this, SLOT(callBlenderWriter()));
117 connect(ui.actionMergeVolumes, SIGNAL(triggered()), this, SLOT(callMergeVolumes()));
118 connect(ui.actionMirrorMesh, SIGNAL(triggered()), this, SLOT(callMirrorMesh()));
119 connect(ui.actionSharpenEdges, SIGNAL(triggered()), this, SLOT(callSharpenEdges()));
120 connect(ui.actionCheckForOverlap, SIGNAL(triggered()), this, SLOT(callCheckForOverlap()));
121 connect(ui.actionOptimiseOrthogonalty, SIGNAL(triggered()), this, SLOT(callOrthogonalityOptimiser()));
122 connect(ui.actionImportBrlcad, SIGNAL(triggered()), this, SLOT(callBrlcadReader()));
123 connect(ui.actionCreateHexCore, SIGNAL(triggered()), this, SLOT(callCreateHexCore()));
124 connect(ui.actionBooleanOperation, SIGNAL(triggered()), this, SLOT(callBooleanOperation()));
125 connect(ui.actionFillPlane, SIGNAL(triggered()), this, SLOT(callFillPlane()));
126 connect(ui.actionConvertToPolyMesh, SIGNAL(triggered()), this, SLOT(callConvertToPolyMesh()));
127 connect(ui.actionCreateHexShellMesh, SIGNAL(triggered()), this, SLOT(callCreateHexShellMesh()));
128 connect(ui.actionCreateHexIbMesh, SIGNAL(triggered()), this, SLOT(callCreateHexIbMesh()));
129 connect(ui.actionRestrictToAvailableVolumeCells, SIGNAL(triggered()), this, SLOT(callRestrictToAvailableVolumeCells()));
130 connect(ui.actionMultiSolidAsciiStlReader, SIGNAL(triggered()), this, SLOT(callMultiSolidAsciiStlReader()));
132 connect(ui.actionFixCADgeometry, SIGNAL(triggered()), this, SLOT(callFixCADGeometry()));
133 //FIXME: dead slot callProjection_test()
134 //connect(ui.actionProjection_test, SIGNAL(triggered()), this, SLOT(callProjection_test()));
136 // OpenFOAMtools
137 connect(ui.actionRunSolver, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(runSolver()));
138 // connect(ui.actionRunFoamToVTK, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(runFoamToVTK()));
139 connect(ui.actionPreparePostProcessing, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(runPostProcessingTools()));
140 connect(ui.actionStopProcesses, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(stopSolverProcess()));
141 connect(ui.actionImportFluentCase, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(runImportFluentCase()));
143 connect(ui.actionStartParaView, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(runParaview()));
144 connect(ui.actionSetCaseDirectory, SIGNAL(triggered()), &m_OpenFoamTools, SLOT(setCaseDirectory()));
146 connect(ui.menuOpen_recent, SIGNAL(triggered(QAction*)), this, SLOT(openRecent(QAction*)));
148 // -------------------------------------------