Code_TYMPAN  4.4.0
Industrial site acoustic simulation
TYActions.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) <2012> <EDF-R&D> <FRANCE>
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10  * See the GNU General Public License for more details.
11  * You should have received a copy of the GNU General Public License along
12  * with this program; if not, write to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
14  */
15 
26 #include "TYActions.h"
30 
32  LPTYAcousticSurfaceNode pAccSurfNode,
33  TYModelerFrame* pModeler,
34  const QString& actionName)
35  : TYModelerAction(pModeler, actionName), _pAccSurfGeoNode(pAccSurfGeoNode), _pAccSurfNode(pAccSurfNode)
36 {
37 }
38 
40  LPTYAcousticSurfaceNode pAccSurfNode,
41  TYModelerFrame* pModeler,
42  const QString& actionName)
43  : TYModelerAction(pModeler, actionName), _pAccSurfNode(pAccSurfNode)
44 {
46 }
47 
49 
51 {
53  {
54  _pAccSurfNode->updateGraphicTree();
56  }
57 }
58 
60 {
62  {
63  _pAccSurfNode->updateGraphicTree();
65  }
66 }
67 
68 /***************************************************************************/
69 
71  LPTYAcousticSurfaceNode pAccSurfNode,
72  TYModelerFrame* pModeler,
73  const QString& actionName)
74  : TYModelerAction(pModeler, actionName), _pAccSurfGeoNode(pAccSurfGeoNode), _pAccSurfNode(pAccSurfNode)
75 {
76 }
77 
79  LPTYAcousticSurfaceNode pAccSurfNode,
80  TYModelerFrame* pModeler,
81  const QString& actionName)
82  : TYModelerAction(pModeler, actionName), _pAccSurfNode(pAccSurfNode)
83 {
85 }
86 
88 
90 {
92  {
93  _pAccSurfNode->updateGraphicTree();
95  }
96 }
97 
99 {
101  {
102  _pAccSurfNode->updateGraphicTree();
104  }
105 }
106 
107 /***************************************************************************/
108 
110  LPTYAcousticVolumeNode pAccVolNode,
111  TYModelerFrame* pModeler,
112  const QString& actionName)
113  : TYModelerAction(pModeler, actionName), _pAccVolGeoNode(pAccVolGeoNode), _pAccVolNode(pAccVolNode)
114 {
115 }
116 
118  LPTYAcousticVolumeNode pAccVolNode,
119  TYModelerFrame* pModeler,
120  const QString& actionName)
121  : TYModelerAction(pModeler, actionName), _pAccVolNode(pAccVolNode)
122 {
124 }
125 
127 
129 {
131  {
132  _pAccVolNode->updateGraphicTree();
134  }
135 }
136 
138 {
140  {
141  _pAccVolNode->updateGraphicTree();
143  }
144 }
145 
146 /***************************************************************************/
147 
149  LPTYAcousticVolumeNode pAccVolNode,
150  TYModelerFrame* pModeler,
151  const QString& actionName)
152  : TYModelerAction(pModeler, actionName), _pAccVolGeoNode(pAccVolGeoNode), _pAccVolNode(pAccVolNode)
153 {
154 }
155 
157  LPTYAcousticVolumeNode pAccVolNode,
158  TYModelerFrame* pModeler,
159  const QString& actionName)
160  : TYModelerAction(pModeler, actionName), _pAccVolNode(pAccVolNode)
161 {
163 }
164 
166 
168 {
170  {
171  _pAccVolNode->updateGraphicTree();
173  }
174 }
175 
177 {
179  {
180  _pAccVolNode->updateGraphicTree();
182  }
183 }
184 
185 /***************************************************************************/
186 
188  TYModelerFrame* pModeler, const QString& actionName)
189  : TYModelerAction(pModeler, actionName), _pMachineGeoNode(pMachineGeoNode), _pEtage(pEtage)
190 {
191 }
192 
194  TYModelerFrame* pModeler, const QString& actionName)
195  : TYModelerAction(pModeler, actionName), _pEtage(pEtage)
196 {
197  _pMachineGeoNode = _pEtage->findMachine(pMachine);
198 }
199 
201 
203 {
205  {
207 
208  _pEtage->updateGraphicTree();
210  }
211 }
212 
214 {
216  {
218 
219  _pEtage->updateGraphicTree();
221  }
222 }
223 
224 /***************************************************************************/
225 
227  TYModelerFrame* pModeler, const QString& actionName)
228  : TYModelerAction(pModeler, actionName), _pMachineGeoNode(pMachineGeoNode), _pEtage(pEtage)
229 {
230 }
231 
233  TYModelerFrame* pModeler, const QString& actionName)
234  : TYModelerAction(pModeler, actionName), _pEtage(pEtage)
235 {
236  _pMachineGeoNode = _pEtage->findMachine(pMachine);
237 }
238 
240 
242 {
244  {
246 
247  _pEtage->updateGraphicTree();
249  }
250 }
251 
253 {
255  {
257 
258  _pEtage->updateGraphicTree();
260  }
261 }
262 
263 /****************************************************************************/
264 // DEBUT
266  LPTYEtage pEtage, TYModelerFrame* pModeler,
267  const QString& actionName)
268  : TYModelerAction(pModeler, actionName), _pElementGeoNode(pElementGeoNode), _pEtage(pEtage)
269 {
270  _pSrcPonct = NULL;
271 }
272 
274  TYModelerFrame* pModeler, const QString& actionName)
275  : TYModelerAction(pModeler, actionName), _pEtage(pEtage)
276 {
277  _pElementGeoNode = NULL;
278  _pSrcPonct = NULL;
279 
280  if (pElement->isA("TYMachine"))
281  {
283  }
284  else if (pElement->isA("TYUserSourcePonctuelle"))
285  {
287  }
288 }
289 
291 
293 {
294  if (_pElementGeoNode)
295  {
296  if (_pElementGeoNode->getElement()->isA("TYMachine"))
297  {
299  }
300  }
301  else if (_pSrcPonct)
302  {
304  }
305 
307 
308  _pEtage->updateGraphicTree();
310 }
311 
313 {
314  if (_pElementGeoNode)
315  {
316  if (_pElementGeoNode->getElement()->isA("TYMachine"))
317  {
319  }
320  }
321  else if (_pSrcPonct)
322  {
325  }
326 
328 
329  _pEtage->updateGraphicTree();
331 }
332 
333 /***************************************************************************/
334 
336  LPTYEtage pEtage, TYModelerFrame* pModeler,
337  const QString& actionName)
338  : TYModelerAction(pModeler, actionName), _pElementGeoNode(pElementGeoNode), _pEtage(pEtage)
339 {
340  _pSrcPonct = NULL;
341 }
342 
344  TYModelerFrame* pModeler, const QString& actionName)
345  : TYModelerAction(pModeler, actionName), _pEtage(pEtage)
346 {
347  _pElementGeoNode = NULL;
348  _pSrcPonct = NULL;
349 
350  if (pElement->isA("TYMachine"))
351  {
353  }
354  else if (pElement->isA("TYUserSourcePonctuelle"))
355  {
357  }
358 }
359 
361 
363 {
364  if (_pElementGeoNode)
365  {
366  if (_pElementGeoNode->getElement()->isA("TYMachine"))
367  {
369  }
370  }
371  else if (_pSrcPonct)
372  {
375  }
376 
378 
379  _pEtage->updateGraphicTree();
381 }
382 
384 {
385  if (_pElementGeoNode)
386  {
387  if (_pElementGeoNode->getElement()->isA("TYMachine"))
388  {
390  }
391  }
392  else if (_pSrcPonct)
393  {
395  }
396 
398 
399  _pEtage->updateGraphicTree();
401 }
402 
403 // FIN
404 /***************************************************************************/
405 
406 /***************************************************************************/
407 
409  LPTYTopographie pTopo, TYModelerFrame* pModeler,
410  const QString& actionName)
411  : TYModelerAction(pModeler, actionName), _pElementGeoNode(pElementGeoNode), _pTopo(pTopo)
412 {
413  if (_pTopo)
414  {
415  _pTopo->incRef();
416  }
417 }
418 
420  TYModelerFrame* pModeler, const QString& actionName)
421  : TYModelerAction(pModeler, actionName), _pTopo(pTopo)
422 {
423  if (_pTopo)
424  {
425  _pTopo->incRef();
426  }
427 
428  if (pElement->isA("TYCourbeNiveau"))
429  {
431  }
432  else if (pElement->isA("TYTerrain"))
433  {
435  }
436  else if (pElement->isA("TYCoursEau"))
437  {
439  }
440  else if (pElement->isA("TYPlanEau"))
441  {
443  }
444 }
445 
447 
449 {
450  if (_pElementGeoNode->getElement()->isA("TYCourbeNiveau"))
451  {
453  }
454  else if (_pElementGeoNode->getElement()->isA("TYTerrain"))
455  {
457  }
458  else if (_pElementGeoNode->getElement()->isA("TYCoursEau"))
459  {
461  }
462  else if (_pElementGeoNode->getElement()->isA("TYPlanEau"))
463  {
465  }
466 
468 
469  _pTopo->updateGraphicTree();
471 }
472 
474 {
475  if (_pElementGeoNode->getElement()->isA("TYCourbeNiveau"))
476  {
478  }
479  else if (_pElementGeoNode->getElement()->isA("TYTerrain"))
480  {
482  }
483  else if (_pElementGeoNode->getElement()->isA("TYCoursEau"))
484  {
486  }
487  else if (_pElementGeoNode->getElement()->isA("TYPlanEau"))
488  {
490  }
491 
493 
494  _pTopo->updateGraphicTree();
496 }
497 
498 /***************************************************************************/
499 
501  LPTYTopographie pTopo, TYModelerFrame* pModeler,
502  const QString& actionName)
503  : TYModelerAction(pModeler, actionName), _pElementGeoNode(pElementGeoNode), _pTopo(pTopo)
504 {
505 }
506 
508  TYModelerFrame* pModeler, const QString& actionName)
509  : TYModelerAction(pModeler, actionName), _pTopo(pTopo)
510 {
511  if (pElement->isA("TYCourbeNiveau"))
512  {
514  }
515  else if (pElement->isA("TYTerrain"))
516  {
518  }
519  else if (pElement->isA("TYCoursEau"))
520  {
522  }
523  else if (pElement->isA("TYPlanEau"))
524  {
526  }
527 }
528 
530 
532 {
533  if (_pElementGeoNode->getElement()->isA("TYCourbeNiveau"))
534  {
536  }
537  else if (_pElementGeoNode->getElement()->isA("TYTerrain"))
538  {
540  }
541  else if (_pElementGeoNode->getElement()->isA("TYCoursEau"))
542  {
544  }
545  else if (_pElementGeoNode->getElement()->isA("TYPlanEau"))
546  {
548  }
549 
551 
552  _pTopo->updateGraphicTree();
554 }
555 
557 {
558  if (_pElementGeoNode->getElement()->isA("TYCourbeNiveau"))
559  {
561  }
562  else if (_pElementGeoNode->getElement()->isA("TYTerrain"))
563  {
565  }
566  else if (_pElementGeoNode->getElement()->isA("TYCoursEau"))
567  {
569  }
570  else if (_pElementGeoNode->getElement()->isA("TYPlanEau"))
571  {
573  }
574 
576 
577  _pTopo->updateGraphicTree();
579 }
580 
581 /***************************************************************************/
582 
584  LPTYInfrastructure pInfra, TYModelerFrame* pModeler,
585  const QString& actionName)
586  : TYModelerAction(pModeler, actionName), _pElementGeoNode(pElementGeoNode), _pInfra(pInfra)
587 {
588  _pSrcPonct = NULL;
589 }
590 
592  TYModelerFrame* pModeler, const QString& actionName)
593  : TYModelerAction(pModeler, actionName), _pInfra(pInfra)
594 {
595  _pElementGeoNode = NULL;
596  _pSrcPonct = NULL;
597 
598 #if WITH_NMPB
599  if (pElement->isA("TYRoute"))
600  {
601  _pElementGeoNode = _pInfra->findRoute((LPTYRoute&)pElement);
602  }
603 #endif
604  if (pElement->isA("TYReseauTransport"))
605  {
607  }
608  else if (pElement->isA("TYBatiment"))
609  {
611  }
612  else if (pElement->isA("TYMachine"))
613  {
615  }
616  else if (pElement->isA("TYUserSourcePonctuelle"))
617  {
619  }
620 }
621 
623 
625 {
626  if (_pElementGeoNode)
627  {
628 #if WITH_NMPB
629  if (_pElementGeoNode->getElement()->isA("TYRoute"))
630  {
632  }
633 #endif
634  if (_pElementGeoNode->getElement()->isA("TYReseauTransport"))
635  {
637  }
638  else if (_pElementGeoNode->getElement()->isA("TYBatiment"))
639  {
641  }
642  else if (_pElementGeoNode->getElement()->isA("TYMachine"))
643  {
645  }
646  }
647  else if (_pSrcPonct)
648  {
650  }
651 
653 
654  _pInfra->updateGraphicTree();
656 }
657 
659 {
660  if (_pElementGeoNode)
661  {
662 #if WITH_NMPB
663  if (_pElementGeoNode->getElement()->isA("TYRoute"))
664  {
666  }
667 #endif
668  if (_pElementGeoNode->getElement()->isA("TYReseauTransport"))
669  {
671  }
672  else if (_pElementGeoNode->getElement()->isA("TYBatiment"))
673  {
675  }
676  else if (_pElementGeoNode->getElement()->isA("TYMachine"))
677  {
679  }
680  }
681  else if (_pSrcPonct)
682  {
685  }
686 
688 
689  _pInfra->updateGraphicTree();
691 }
692 
693 /***************************************************************************/
694 
696  LPTYInfrastructure pInfra, TYModelerFrame* pModeler,
697  const QString& actionName)
698  : TYModelerAction(pModeler, actionName), _pElementGeoNode(pElementGeoNode), _pInfra(pInfra)
699 {
700  _pSrcPonct = NULL;
701 }
702 
704  TYModelerFrame* pModeler, const QString& actionName)
705  : TYModelerAction(pModeler, actionName), _pInfra(pInfra)
706 {
707  _pElementGeoNode = NULL;
708  _pSrcPonct = NULL;
709 
710 #if WITH_NMPB
711  if (pElement->isA("TYRoute"))
712  {
713  _pElementGeoNode = _pInfra->findRoute((LPTYRoute&)pElement);
714  }
715 #endif
716  if (pElement->isA("TYReseauTransport"))
717  {
719  }
720  else if (pElement->isA("TYBatiment"))
721  {
723  }
724  else if (pElement->isA("TYMachine"))
725  {
727  }
728  else if (pElement->isA("TYUserSourcePonctuelle"))
729  {
731  }
732 }
733 
735 
737 {
738  if (_pElementGeoNode)
739  {
740 #if WITH_NMPB
741  if (_pElementGeoNode->getElement()->isA("TYRoute"))
742  {
744  }
745 #endif
746  if (_pElementGeoNode->getElement()->isA("TYReseauTransport"))
747  {
749  }
750  else if (_pElementGeoNode->getElement()->isA("TYBatiment"))
751  {
753  }
754  else if (_pElementGeoNode->getElement()->isA("TYMachine"))
755  {
757  }
758  }
759  else if (_pSrcPonct)
760  {
763  }
764 
766 
767  _pInfra->updateGraphicTree();
769 }
770 
772 {
773  if (_pElementGeoNode)
774  {
775 #if WITH_NMPB
776  if (_pElementGeoNode->getElement()->isA("TYRoute"))
777  {
779  }
780 #endif
781  if (_pElementGeoNode->getElement()->isA("TYReseauTransport"))
782  {
784  }
785  else if (_pElementGeoNode->getElement()->isA("TYBatiment"))
786  {
788  }
789  else if (_pElementGeoNode->getElement()->isA("TYMachine"))
790  {
792  }
793  }
794  else if (_pSrcPonct)
795  {
797  }
798 
800 
801  _pInfra->updateGraphicTree();
803 }
804 
805 /***************************************************************************/
806 
807 TYResizeRectAction::TYResizeRectAction(LPTYRectangle pRect, const float& newSizeX, const float& newSizeY,
808  TYModelerFrame* pModeler, const QString& actionName)
809  : TYModelerAction(pModeler, actionName), _pRect(pRect)
810 {
811  _newSize[0] = newSizeX;
812  _newSize[1] = newSizeY;
813 
814  pRect->getSize(_oldSize[0], _oldSize[1]);
815 }
816 
818 
820 {
821  _pRect->setSize(_oldSize[0], _oldSize[1]);
822 
823  _pRect->updateGraphicTree();
825 }
826 
828 {
829  _pRect->setSize(_newSize[0], _newSize[1]);
830 
831  _pRect->updateGraphicTree();
833 }
834 
835 /***************************************************************************/
836 
837 TYResizeAccBoxAction::TYResizeAccBoxAction(LPTYAcousticBox pBox, const float& newSizeX, const float& newSizeY,
838  const float& newSizeZ, TYModelerFrame* pModeler,
839  const QString& actionName)
840  : TYModelerAction(pModeler, actionName), _pBox(pBox)
841 {
842  _newSize[0] = newSizeX;
843  _newSize[1] = newSizeY;
844  _newSize[2] = newSizeZ;
845 
846  pBox->getDimension(_oldSize[0], _oldSize[1], _oldSize[2]);
847 }
848 
850 
852 {
854  _pBox->updateGraphic();
856 }
857 
859 {
861  _pBox->updateGraphic();
863 }
864 
865 /***************************************************************************/
866 
868  const double& newHauteur, TYModelerFrame* pModeler,
869  const QString& actionName)
870  : TYModelerAction(pModeler, actionName), _pCyl(pCyl)
871 {
872  _newDiameter = newDiameter;
873  _newHauteur = newHauteur;
874 
877 }
878 
880 
882 {
885 
886  _pCyl->updateGraphic();
888 }
889 
891 {
894 
895  _pCyl->updateGraphic();
897 }
898 
899 /***************************************************************************/
900 
902  const double& newDiameter, const double& newHauteur,
903  TYModelerFrame* pModeler, const QString& actionName)
904  : TYModelerAction(pModeler, actionName), _pSemiCyl(pSemiCyl)
905 {
906  _newDiameter = newDiameter;
907  _newHauteur = newHauteur;
908 
911 }
912 
914 
916 {
919 
920  _pSemiCyl->updateGraphic();
922 }
923 
925 {
928 
929  _pSemiCyl->updateGraphic();
931 }
932 
933 /***************************************************************************/
934 
936  const TYPoint& newPos, TYModelerFrame* pModeler,
937  const QString& actionName)
938  : TYModelerAction(pModeler, actionName), _pGeoNode(pGeoNode), _oldPos(oldPos), _newPos(newPos)
939 {
940 }
941 
943 
945 {
947 
950  _pGeoNode->getElement()->getParent()->updateGraphic();
952 }
953 
955 {
957 
960  _pGeoNode->getElement()->getParent()->updateGraphic();
962 }
963 
964 /***************************************************************************/
965 
967  const TYRepere& newRepere, TYModelerFrame* pModeler,
968  const QString& actionName)
969  : TYModelerAction(pModeler, actionName), _pGeoNode(pGeoNode), _oldRepere(oldRepere), _newRepere(newRepere)
970 {
971 }
972 
974 
976 {
978 
981  _pGeoNode->getElement()->getParent()->updateGraphic();
983 }
984 
986 {
988 
991  _pGeoNode->getElement()->getParent()->updateGraphic();
993 }
994 
995 /***************************************************************************/
996 
997 TYMovePointEtageAction::TYMovePointEtageAction(LPTYEtage pEtage, const int& ptId, const TYPoint& oldPos,
998  const TYPoint& newPos, TYModelerFrame* pModeler,
999  const QString& actionName)
1000  : TYModelerAction(pModeler, actionName), _pEtage(pEtage), _ptId(ptId), _oldPos(oldPos), _newPos(newPos)
1001 {
1002 }
1003 
1005 
1007 {
1008  TYTabPoint contour = _pEtage->getContour();
1009  contour[_ptId] = _oldPos;
1010 
1011  _pEtage->setMurs(contour, _pEtage->getHauteur(), _pEtage->getClosed());
1012 
1013  _pEtage->updateGraphicTree();
1015 }
1016 
1018 {
1019  TYTabPoint contour = _pEtage->getContour();
1020  contour[_ptId] = _newPos;
1021 
1022  _pEtage->setMurs(contour, _pEtage->getHauteur(), _pEtage->getClosed());
1023 
1024  _pEtage->updateGraphicTree();
1026 }
1027 
1028 /***************************************************************************/
1029 
1031  const TYPoint& newPos, TYModelerFrame* pModeler,
1032  const QString& actionName)
1033  : TYModelerAction(pModeler, actionName), _pSrcPonct(pSrcPonct), _oldPos(oldPos), _newPos(newPos)
1034 {
1035 }
1036 
1038 
1040 {
1041  *_pSrcPonct->getPos() = _oldPos;
1042 
1044  _pSrcPonct->updateGraphic();
1046 }
1047 
1049 {
1050  *_pSrcPonct->getPos() = _newPos;
1051 
1053  _pSrcPonct->updateGraphic();
1055 }
1056 
1057 /***************************************************************************/
1058 
1060  const OVector3D& newOrient, TYModelerFrame* pModeler,
1061  const QString& actionName)
1062  : TYModelerAction(pModeler, actionName), _pSrcPonct(pSrcPonct), _oldOrient(oldOrient),
1063  _newOrient(newOrient)
1064 {
1065 }
1066 
1068 
1070 {
1072 
1074  _pSrcPonct->updateGraphic();
1076 }
1077 
1079 {
1081 
1083  _pSrcPonct->updateGraphic();
1085 }
1086 
1087 /***************************************************************************/
1088 
1090  const TYPoint& newPos, TYModelerFrame* pModeler,
1091  const QString& actionName)
1092  : TYModelerAction(pModeler, actionName), _pPointControl(pPointControl), _oldPos(oldPos), _newPos(newPos)
1093 {
1094 }
1095 
1097 
1099 {
1101 
1103  _pPointControl->updateGraphic();
1105 }
1106 
1108 {
1110 
1112  _pPointControl->updateGraphic();
1114 }
1115 
1116 /***************************************************************************/
1117 
1119  const TYPoint& newPos, TYModelerFrame* pModeler,
1120  const QString& actionName)
1121  : TYModelerAction(pModeler, actionName), _pSite(pSite), _oldPos(oldPos), _newPos(newPos)
1122 {
1123 }
1124 
1126 
1128 {
1130 
1131  _pSite->updateGraphic();
1133 }
1134 
1136 {
1138 
1139  _pSite->updateGraphic();
1141 }
1142 
1143 /***************************************************************************/
1144 
1146  const TYSegment& newOrient, TYModelerFrame* pModeler,
1147  const QString& actionName)
1148  : TYModelerAction(pModeler, actionName), _pSite(pSite), _oldOrient(oldOrient), _newOrient(newOrient)
1149 {
1150 }
1151 
1153 
1155 {
1157 
1158  _pSite->updateGraphic();
1160 }
1161 
1163 {
1165 
1166  _pSite->updateGraphic();
1168 }
1169 
1170 /***************************************************************************/
1171 
1172 TYSetEchelleSiteAction::TYSetEchelleSiteAction(LPTYSiteNode& pSite, float oldEchelle, float newEchelle,
1173  TYModelerFrame* pModeler, const QString& actionName)
1174  : TYModelerAction(pModeler, actionName), _pSite(pSite), _oldEchelle(oldEchelle), _newEchelle(newEchelle)
1175 {
1176 }
1177 
1179 
1181 {
1183 
1184  _pSite->updateGraphic();
1186 }
1187 
1189 {
1191 
1192  _pSite->updateGraphic();
1194 }
1195 
1196 /***************************************************************************/
1197 
1199  TYModelerFrame* pModeler, const QString& actionName)
1200  : TYModelerAction(pModeler, actionName), _pTopo(pTopo), _newEmprise(newEmprise)
1201 {
1202  _oldEmprise = pTopo->getEmprise();
1203 }
1204 
1206 
1208 {
1210 
1211  _pTopo->updateGraphic();
1213 }
1214 
1216 {
1218 
1219  _pTopo->updateGraphic();
1221 }
1222 
1223 /***************************************************************************/
1224 
1226  TYModelerFrame* pModeler, const QString& actionName)
1227  : TYModelerAction(pModeler, actionName), _pProjet(pProjet), _pPtControl(pPtControl)
1228 {
1229 }
1230 
1232 
1234 {
1236  {
1238 
1239  _pProjet->updateGraphicTree();
1241  }
1242 }
1243 
1245 {
1247  {
1249 
1250  _pProjet->updateGraphicTree();
1252  }
1253 }
1254 
1255 /***************************************************************************/
1256 
1258  TYModelerFrame* pModeler, const QString& actionName)
1259  : TYModelerAction(pModeler, actionName), _pProjet(pProjet), _pPtControl(pPtControl)
1260 {
1261 }
1262 
1264 
1266 {
1268  {
1270 
1271  _pProjet->updateGraphicTree();
1273  }
1274 }
1275 
1277 {
1279  {
1281 
1282  _pProjet->updateGraphicTree();
1284  }
1285 }
1286 
1287 /***************************************************************************/
1288 
1290  LPTYProjet pProjet, TYModelerFrame* pModeler,
1291  const QString& actionName)
1292  : TYModelerAction(pModeler, actionName), _pProjet(pProjet), _pMaillageGeoNode(pMaillageGeoNode)
1293 {
1294 }
1295 
1297  TYModelerFrame* pModeler, const QString& actionName)
1298  : TYModelerAction(pModeler, actionName), _pProjet(pProjet)
1299 {
1300  _pMaillageGeoNode = pProjet->findMaillage(pMaillage);
1301 }
1302 
1304 
1306 {
1308  {
1310 
1311  _pProjet->updateGraphicTree();
1313  }
1314 }
1315 
1317 {
1319  {
1321 
1322  _pProjet->updateGraphicTree();
1324  }
1325 }
1326 
1327 /***************************************************************************/
1328 
1330  LPTYProjet pProjet, TYModelerFrame* pModeler,
1331  const QString& actionName)
1332  : TYModelerAction(pModeler, actionName), _pProjet(pProjet), _pMaillageGeoNode(pMaillageGeoNode)
1333 {
1334 }
1335 
1337  TYModelerFrame* pModeler, const QString& actionName)
1338  : TYModelerAction(pModeler, actionName), _pProjet(pProjet)
1339 {
1340  _pMaillageGeoNode = _pProjet->findMaillage(pMaillage);
1341 }
1342 
1344 
1346 {
1348  {
1350 
1351  _pProjet->updateGraphicTree();
1353  }
1354 }
1355 
1357 {
1359  {
1361 
1362  _pProjet->updateGraphicTree();
1364  }
1365 }
1366 
1367 /***************************************************************************/
1368 
1370  LPTYSiteNode pSiteNodeParent,
1371  TYModelerFrame* pModeler,
1372  const QString& actionName)
1373  : TYModelerAction(pModeler, actionName), _pSiteNodeParent(pSiteNodeParent),
1374  _pSiteNodeGeoNode(pSiteNodeGeoNode)
1375 {
1376 }
1377 
1379  LPTYSiteNode pSiteNodeParent,
1380  TYModelerFrame* pModeler,
1381  const QString& actionName)
1382  : TYModelerAction(pModeler, actionName), _pSiteNodeParent(pSiteNodeParent)
1383 {
1385 }
1386 
1388 
1390 {
1392  {
1393  // Fermeture des modeleurs ouverts
1396 
1397  _pSiteNodeParent->updateGraphicTree();
1399  }
1400 }
1401 
1403 {
1405  {
1407 
1408  _pSiteNodeParent->updateGraphicTree();
1410  }
1411 }
1412 
1413 /***************************************************************************/
1414 
1416  LPTYSiteNode pSiteNodeParent,
1417  TYModelerFrame* pModeler,
1418  const QString& actionName)
1419  : TYModelerAction(pModeler, actionName), _pSiteNodeParent(pSiteNodeParent),
1420  _pSiteNodeGeoNode(pSiteNodeGeoNode)
1421 {
1422 }
1423 
1425  LPTYSiteNode pSiteNodeParent,
1426  TYModelerFrame* pModeler,
1427  const QString& actionName)
1428  : TYModelerAction(pModeler, actionName), _pSiteNodeParent(pSiteNodeParent)
1429 {
1431 }
1432 
1434 
1436 {
1438  {
1440 
1441  _pSiteNodeParent->updateGraphicTree();
1443  }
1444 }
1445 
1447 {
1449  {
1451 
1452  _pSiteNodeParent->updateGraphicTree();
1454  }
1455 }
1456 
1457 /***************************************************************************/
1458 
1460  const TYPoint& oldPos, const TYPoint& newPos,
1461  TYModelerFrame* pModeler, const QString& actionName)
1462  : TYModelerAction(pModeler, actionName), _pElt(pElt), _polyLine(polyLine), _ptId(ptId), _oldPos(oldPos),
1463  _newPos(newPos)
1464 {
1465 }
1466 
1468 
1470 {
1471  _polyLine[_ptId] = _oldPos;
1472 
1474  _pElt->updateGraphic();
1475 
1477 }
1478 
1480 {
1481  _polyLine[_ptId] = _newPos;
1482 
1484  _pElt->updateGraphic();
1485 
1487 }
1488 
1489 /***************************************************************************/
1490 
1492  const TYPoint& pt, TYModelerFrame* pModeler,
1493  const QString& actionName)
1494  : TYModelerAction(pModeler, actionName), _pElt(pElt), _polyLine(polyLine), _ptId(ptId), _pt(pt)
1495 {
1496 }
1497 
1499 
1501 {
1502  _polyLine.erase(_polyLine.begin() + _ptId);
1503 
1505  _pElt->updateGraphic();
1507 }
1508 
1510 {
1511  _polyLine.insert(_polyLine.begin() + _ptId, _pt);
1512 
1514  _pElt->updateGraphic();
1516 }
1517 
1518 /***************************************************************************/
1519 
1521  const TYPoint& pt, TYModelerFrame* pModeler,
1522  const QString& actionName)
1523  : TYModelerAction(pModeler, actionName), _pElt(pElt), _polyLine(polyLine), _ptId(ptId), _pt(pt)
1524 {
1525 }
1526 
1528 
1530 {
1531  _polyLine.insert(_polyLine.begin() + _ptId, _pt);
1532 
1534  _pElt->updateGraphic();
1536 }
1537 
1539 {
1540  _polyLine.erase(_polyLine.begin() + _ptId);
1541 
1543  _pElt->updateGraphic();
1545 }
fichier contenant differents types d'actions (fichier header)
TYMainWindow * getTYMainWnd()
Retourne le pointeur sur la fenetre principale.
pour l'application Tympan (fichier header)
std::vector< TYPoint > TYTabPoint
Collection de TYPoint.
Definition: TYDefines.h:340
gestion de l'element actionne par picking (fichier header)
Frame pour la gestion de projet (fichier header)
Frame pour la gestion de site (fichier header)
virtual int incRef()
Definition: smartptr.h:62
bool isA(const char *className) const
Definition: TYElement.cpp:65
OPoint3D _origin
The origin point.
Definition: 3d.h:1279
The 3D vector class.
Definition: 3d.h:298
void setDimension(float larg, float lon, float haut)
void getDimension(float &larg, float &lon, float &haut)
void setHauteur(double hauteur)
void setDiameter(double diameter)
double getDiameter() const
void setHauteur(double hauteur)
void setDiameter(double diameter)
virtual bool remAcousticSurf(const LPTYAcousticSurfaceGeoNode pAccSurfGeoNode)
LPTYAcousticSurfaceGeoNode findAcousticSurf(const LPTYAcousticSurface pAccSurf)
bool addAcousticSurf(LPTYAcousticSurfaceGeoNode pAccSurfGeoNode)
bool addAcousticVol(LPTYAcousticVolumeGeoNode pAccVolGeoNode, bool recursif=true)
LPTYAcousticVolumeGeoNode findAcousticVol(const LPTYAcousticVolume pAccVol)
bool remAcousticVol(const LPTYAcousticVolumeGeoNode pAccVolGeoNode)
TYAddAccSurfToAccSurfNodeAction(LPTYAcousticSurfaceGeoNode pAccSurfGeoNode, LPTYAcousticSurfaceNode pAccSurfNode, TYModelerFrame *pModeler, const QString &actionName)
Constructeur.
Definition: TYActions.cpp:31
LPTYAcousticSurfaceGeoNode _pAccSurfGeoNode
Definition: TYActions.h:99
LPTYAcousticSurfaceNode _pAccSurfNode
Definition: TYActions.h:100
virtual ~TYAddAccSurfToAccSurfNodeAction()
Destructeur.
Definition: TYActions.cpp:48
virtual ~TYAddAccVolToAccVolNodeAction()
Definition: TYActions.cpp:126
LPTYAcousticVolumeNode _pAccVolNode
Definition: TYActions.h:169
TYAddAccVolToAccVolNodeAction(LPTYAcousticVolumeGeoNode pAccVolGeoNode, LPTYAcousticVolumeNode pAccVolNode, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:109
LPTYAcousticVolumeGeoNode _pAccVolGeoNode
Definition: TYActions.h:168
TYAddElementToEtageAction(SmartPtr< TYGeometryNode > pElementGeoNode, LPTYEtage pEtage, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:265
virtual ~TYAddElementToEtageAction()
Definition: TYActions.cpp:290
LPTYUserSourcePonctuelle _pSrcPonct
Definition: TYActions.h:292
SmartPtr< TYGeometryNode > _pElementGeoNode
Definition: TYActions.h:291
virtual ~TYAddElementToInfraAction()
Definition: TYActions.cpp:622
SmartPtr< TYGeometryNode > _pElementGeoNode
Definition: TYActions.h:419
LPTYUserSourcePonctuelle _pSrcPonct
Definition: TYActions.h:420
LPTYInfrastructure _pInfra
Definition: TYActions.h:421
TYAddElementToInfraAction(SmartPtr< TYGeometryNode > pElementGeoNode, LPTYInfrastructure pInfra, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:583
TYAddElementToTopoAction(SmartPtr< TYGeometryNode > pElementGeoNode, LPTYTopographie pTopo, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:408
virtual ~TYAddElementToTopoAction()
Definition: TYActions.cpp:446
SmartPtr< TYGeometryNode > _pElementGeoNode
Definition: TYActions.h:357
LPTYTopographie _pTopo
Definition: TYActions.h:358
virtual ~TYAddMachineToEtageAction()
Definition: TYActions.cpp:200
LPTYMachineGeoNode _pMachineGeoNode
Definition: TYActions.h:229
TYAddMachineToEtageAction(LPTYMachineGeoNode pMachineGeoNode, LPTYEtage pEtage, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:187
TYAddMaillageToProjetAction(LPTYMaillageGeoNode pMaillageGeoNode, LPTYProjet pProjet, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1289
LPTYMaillageGeoNode _pMaillageGeoNode
Definition: TYActions.h:949
virtual ~TYAddMaillageToProjetAction()
Definition: TYActions.cpp:1303
TYAddPointControlAction(LPTYProjet pProjet, LPTYPointControl pPtControl, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1225
virtual ~TYAddPointControlAction()
Definition: TYActions.cpp:1231
LPTYPointControl _pPtControl
Definition: TYActions.h:892
LPTYSiteNodeGeoNode _pSiteNodeGeoNode
Definition: TYActions.h:1011
TYAddSiteNodeToSiteNodeAction(LPTYSiteNodeGeoNode pSiteNodeGeoNode, LPTYSiteNode pSiteNodeParent, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1369
TYElement * getParent() const
Definition: TYElement.h:699
virtual void setIsGeometryModified(bool isModified)
Definition: TYElement.cpp:253
LPTYMachineGeoNode findMachine(const LPTYMachine pMachine)
Definition: TYEtage.cpp:1202
TYTabPoint getContour() const
Definition: TYEtage.cpp:952
double getHauteur() const
Definition: TYEtage.cpp:1018
bool remSource(const LPTYUserSourcePonctuelleGeoNode pSourceGeoNode)
Definition: TYEtage.cpp:1257
bool addSource(LPTYUserSourcePonctuelleGeoNode pSourceGeoNode)
Definition: TYEtage.cpp:1218
bool addMachine(LPTYMachineGeoNode pMachineGeoNode)
Definition: TYEtage.cpp:1030
bool getClosed()
Definition: TYEtage.h:206
bool remMachine(const LPTYMachineGeoNode pMachineGeoNode)
Definition: TYEtage.cpp:1069
bool setMurs(const TYTabPoint &tabPts, double hauteur=2.0, bool close=true)
Definition: TYEtage.cpp:875
const ORepere3D & getORepere3D() const
TYElement * getElement() const
void setRepere(const ORepere3D &repere)
bool remSrc(const LPTYUserSourcePonctuelle pSrc)
LPTYMachineGeoNode findMachine(const LPTYMachine pMachine)
bool addBatiment(LPTYBatimentGeoNode pBatimentGeoNode)
bool addMachine(LPTYMachineGeoNode pMachineGeoNode)
LPTYBatimentGeoNode findBatiment(const LPTYBatiment pBatiment)
bool addSrc(LPTYUserSourcePonctuelle pSrc)
bool remResTrans(const LPTYReseauTransportGeoNode pResTransGeoNode)
bool remMachine(const LPTYMachine pMachine)
bool remBatiment(const LPTYBatimentGeoNode pBatimentGeoNode)
LPTYReseauTransportGeoNode findResTrans(const LPTYReseauTransport pResTrans)
bool addResTrans(LPTYReseauTransportGeoNode pResTransGeoNode)
virtual ~TYInsertPointPolyLineAction()
Definition: TYActions.cpp:1498
TYInsertPointPolyLineAction(LPTYElement pElt, TYTabPoint &polyLine, int ptId, const TYPoint &pt, TYModelerFrame *pModeler, const QString &actionName)
Constructor.
Definition: TYActions.cpp:1491
TYPoint _pt
The new inserted point.
Definition: TYActions.h:1144
virtual void undo()
The undo action.
Definition: TYActions.cpp:1500
LPTYElement _pElt
The element which owns the edited polyline.
Definition: TYActions.h:1138
int _ptId
Id of the point.
Definition: TYActions.h:1142
virtual void redo()
The redo action.
Definition: TYActions.cpp:1509
TYTabPoint & _polyLine
The edited polyline.
Definition: TYActions.h:1140
TYProjetFrame * getProjetFrame()
Definition: TYMainWindow.h:76
TYSiteFrame * getSiteFrame()
Definition: TYMainWindow.h:80
void closeModeler(const TYElement *pElement)
Classe pour les actions qui necessite l'acces au modeler.
Definition: TYActions.h:39
TYRenderWindowInteractor * _pInteractor
Definition: TYActions.h:61
TYModelerFrame * _pModeler
Definition: TYActions.h:62
Classe generique pour une fenetre de modeleur.
TYPickEditor * getPickEditor()
virtual ~TYMoveGeoNodeAction()
Definition: TYActions.cpp:942
TYMoveGeoNodeAction(SmartPtr< TYGeometryNode > pGeoNode, const TYPoint &oldPos, const TYPoint &newPos, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:935
virtual void undo()
Definition: TYActions.cpp:944
SmartPtr< TYGeometryNode > _pGeoNode
Definition: TYActions.h:596
virtual void redo()
Definition: TYActions.cpp:954
TYMovePointControlAction(LPTYPointControl pPointControl, const TYPoint &oldPos, const TYPoint &newPos, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1089
virtual ~TYMovePointControlAction()
Definition: TYActions.cpp:1096
LPTYPointControl _pPointControl
Definition: TYActions.h:756
virtual void redo()
Definition: TYActions.cpp:1017
TYMovePointEtageAction(LPTYEtage pEtage, const int &ptId, const TYPoint &oldPos, const TYPoint &newPos, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:997
virtual void undo()
Definition: TYActions.cpp:1006
virtual ~TYMovePointEtageAction()
Definition: TYActions.cpp:1004
virtual void redo()
The redo action.
Definition: TYActions.cpp:1479
TYPoint _newPos
The new position of the point (redo)
Definition: TYActions.h:1099
virtual ~TYMovePointPolyLineAction()
Definition: TYActions.cpp:1467
TYPoint _oldPos
The old position of the point (undo)
Definition: TYActions.h:1097
TYTabPoint & _polyLine
The edited polyline.
Definition: TYActions.h:1093
LPTYElement _pElt
The element which owns the edited polyline.
Definition: TYActions.h:1091
TYMovePointPolyLineAction(LPTYElement pElt, TYTabPoint &polyLine, int ptId, const TYPoint &oldPos, const TYPoint &newPos, TYModelerFrame *pModeler, const QString &actionName)
Constructor.
Definition: TYActions.cpp:1459
virtual void undo()
The undo action.
Definition: TYActions.cpp:1469
int _ptId
Id of the point.
Definition: TYActions.h:1095
virtual ~TYMoveSrcPonctAction()
Definition: TYActions.cpp:1037
LPTYSourcePonctuelle _pSrcPonct
Definition: TYActions.h:692
virtual void redo()
Definition: TYActions.cpp:1048
TYMoveSrcPonctAction(LPTYSourcePonctuelle pSrcPonct, const TYPoint &oldPos, const TYPoint &newPos, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1030
virtual void undo()
Definition: TYActions.cpp:1039
LPTYSourcePonctuelle _pSrcPonct
Definition: TYActions.h:724
virtual ~TYOrienteSrcPonctAction()
Definition: TYActions.cpp:1067
TYOrienteSrcPonctAction(LPTYSourcePonctuelle pSrcPonct, const OVector3D &oldOrient, const OVector3D &newOrient, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1059
void resetPicker()
Definition: TYPickEditor.h:112
bool addMaillage(LPTYMaillageGeoNode pMaillageGeoNode)
Ajout d'un maillage.
Definition: TYProjet.cpp:783
bool addPointControl(LPTYPointControl pPointControl)
Definition: TYProjet.cpp:394
LPTYMaillageGeoNode findMaillage(const LPTYMaillage pMaillage)
Retrouve le GeoNode associe a un maillage.
Definition: TYProjet.cpp:873
bool remPointControl(LPTYPointControl pPointControl)
Definition: TYProjet.cpp:412
bool remMaillage(const LPTYMaillageGeoNode pMaillageGeoNode)
Suppression d'un maillage.
Definition: TYProjet.cpp:818
void setSize(float sizeX, float sizeY)
void getSize(float &sizeX, float &sizeY)
TYRemAccSurfToAccSurfNodeAction(LPTYAcousticSurfaceGeoNode pAccSurfGeoNode, LPTYAcousticSurfaceNode pAccSurfNode, TYModelerFrame *pModeler, const QString &actionName)
Constructeur.
Definition: TYActions.cpp:70
LPTYAcousticSurfaceGeoNode _pAccSurfGeoNode
Definition: TYActions.h:137
LPTYAcousticSurfaceNode _pAccSurfNode
Definition: TYActions.h:138
virtual ~TYRemAccSurfToAccSurfNodeAction()
Destructeur.
Definition: TYActions.cpp:87
LPTYAcousticVolumeGeoNode _pAccVolGeoNode
Definition: TYActions.h:199
LPTYAcousticVolumeNode _pAccVolNode
Definition: TYActions.h:200
virtual ~TYRemAccVolToAccVolNodeAction()
Definition: TYActions.cpp:165
TYRemAccVolToAccVolNodeAction(LPTYAcousticVolumeGeoNode pAccVolGeoNode, LPTYAcousticVolumeNode pAccVolNode, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:148
virtual ~TYRemElementToEtageAction()
Definition: TYActions.cpp:360
SmartPtr< TYGeometryNode > _pElementGeoNode
Definition: TYActions.h:323
LPTYUserSourcePonctuelle _pSrcPonct
Definition: TYActions.h:324
TYRemElementToEtageAction(SmartPtr< TYGeometryNode > pElementGeoNode, LPTYEtage pEtage, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:335
SmartPtr< TYGeometryNode > _pElementGeoNode
Definition: TYActions.h:451
TYRemElementToInfraAction(SmartPtr< TYGeometryNode > pElementGeoNode, LPTYInfrastructure pInfra, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:695
LPTYUserSourcePonctuelle _pSrcPonct
Definition: TYActions.h:452
virtual ~TYRemElementToInfraAction()
Definition: TYActions.cpp:734
LPTYInfrastructure _pInfra
Definition: TYActions.h:453
TYRemElementToTopoAction(SmartPtr< TYGeometryNode > pElementGeoNode, LPTYTopographie pTopo, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:500
LPTYTopographie _pTopo
Definition: TYActions.h:389
virtual ~TYRemElementToTopoAction()
Definition: TYActions.cpp:529
SmartPtr< TYGeometryNode > _pElementGeoNode
Definition: TYActions.h:388
virtual ~TYRemMachineToEtageAction()
Definition: TYActions.cpp:239
TYRemMachineToEtageAction(LPTYMachineGeoNode pMachineGeoNode, LPTYEtage pEtage, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:226
LPTYMachineGeoNode _pMachineGeoNode
Definition: TYActions.h:259
TYRemMaillageToProjetAction(LPTYMaillageGeoNode pMaillageGeoNode, LPTYProjet pProjet, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1329
virtual ~TYRemMaillageToProjetAction()
Definition: TYActions.cpp:1343
LPTYMaillageGeoNode _pMaillageGeoNode
Definition: TYActions.h:980
LPTYPointControl _pPtControl
Definition: TYActions.h:918
virtual ~TYRemPointControlAction()
Definition: TYActions.cpp:1263
TYRemPointControlAction(LPTYProjet pProjet, LPTYPointControl pPtControl, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1257
LPTYSiteNodeGeoNode _pSiteNodeGeoNode
Definition: TYActions.h:1042
TYRemSiteNodeToSiteNodeAction(LPTYSiteNodeGeoNode pSiteNodeGeoNode, LPTYSiteNode pSiteNodeParent, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1415
virtual void redo()
The redo action.
Definition: TYActions.cpp:1538
virtual ~TYRemovePointPolyLineAction()
Definition: TYActions.cpp:1527
virtual void undo()
The undo action.
Definition: TYActions.cpp:1529
TYPoint _pt
The new inserted point.
Definition: TYActions.h:1189
TYTabPoint & _polyLine
The edited polyline.
Definition: TYActions.h:1185
LPTYElement _pElt
The element which owns the edited polyline.
Definition: TYActions.h:1183
TYRemovePointPolyLineAction(LPTYElement pElt, TYTabPoint &polyLine, int ptId, const TYPoint &pt, TYModelerFrame *pModeler, const QString &actionName)
Constructor.
Definition: TYActions.cpp:1520
int _ptId
Id of the point.
Definition: TYActions.h:1187
virtual void updateGL()
LPTYAcousticBox _pBox
Definition: TYActions.h:505
virtual void redo()
Definition: TYActions.cpp:858
virtual ~TYResizeAccBoxAction()
Definition: TYActions.cpp:849
TYResizeAccBoxAction(LPTYAcousticBox pBox, const float &newSizeX, const float &newSizeY, const float &newSizeZ, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:837
virtual void undo()
Definition: TYActions.cpp:851
LPTYAcousticCylinder _pCyl
Definition: TYActions.h:532
TYResizeAccCylAction(LPTYAcousticCylinder pCyl, const double &newDiameter, const double &newHauteur, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:867
virtual void undo()
Definition: TYActions.cpp:881
virtual ~TYResizeAccCylAction()
Definition: TYActions.cpp:879
virtual void redo()
Definition: TYActions.cpp:890
LPTYAcousticSemiCylinder _pSemiCyl
Definition: TYActions.h:562
virtual ~TYResizeAccSemiCylAction()
Definition: TYActions.cpp:913
TYResizeAccSemiCylAction(LPTYAcousticSemiCylinder pSemiCyl, const double &newDiameter, const double &newHauteur, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:901
float _oldSize[2]
Definition: TYActions.h:479
TYResizeRectAction(LPTYRectangle pRect, const float &newSizeX, const float &newSizeY, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:807
virtual ~TYResizeRectAction()
Definition: TYActions.cpp:817
LPTYRectangle _pRect
Definition: TYActions.h:478
virtual void redo()
Definition: TYActions.cpp:827
float _newSize[2]
Definition: TYActions.h:480
virtual void undo()
Definition: TYActions.cpp:819
virtual void redo()
Definition: TYActions.cpp:985
virtual void undo()
Definition: TYActions.cpp:975
SmartPtr< TYGeometryNode > _pGeoNode
Definition: TYActions.h:628
virtual ~TYRotateGeoNodeAction()
Definition: TYActions.cpp:973
TYRotateGeoNodeAction(SmartPtr< TYGeometryNode > pGeoNode, const TYRepere &oldRepere, const TYRepere &newRepere, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:966
virtual ~TYSetEchelleSiteAction()
Definition: TYActions.cpp:1178
virtual void undo()
Definition: TYActions.cpp:1180
TYSetEchelleSiteAction(LPTYSiteNode &pSite, float oldEchelle, float newEchelle, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1172
LPTYSiteNode _pSite
Definition: TYActions.h:837
virtual void redo()
Definition: TYActions.cpp:1188
virtual void redo()
Definition: TYActions.cpp:1215
TYTabPoint _oldEmprise
Definition: TYActions.h:865
virtual ~TYSetEmpriseTopoAction()
Definition: TYActions.cpp:1205
TYSetEmpriseTopoAction(LPTYTopographie pTopo, const TYTabPoint &newEmprise, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1198
LPTYTopographie _pTopo
Definition: TYActions.h:864
TYTabPoint _newEmprise
Definition: TYActions.h:866
virtual void undo()
Definition: TYActions.cpp:1207
TYSetOrientationSiteAction(LPTYSiteNode &pSite, const TYSegment &oldOrient, const TYSegment &newOrient, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1145
virtual ~TYSetOrientationSiteAction()
Definition: TYActions.cpp:1152
TYSetPointRefSiteAction(LPTYSiteNode &pSite, const TYPoint &oldPos, const TYPoint &newPos, TYModelerFrame *pModeler, const QString &actionName)
Definition: TYActions.cpp:1118
virtual ~TYSetPointRefSiteAction()
Definition: TYActions.cpp:1125
LPTYSiteNode _pSite
Definition: TYActions.h:783
void updateList()
void setOrientation(TYSegment seg)
Definition: TYSiteNode.h:294
void setPosition(TYPoint pt)
Definition: TYSiteNode.h:327
void setEchelle(float e)
Definition: TYSiteNode.h:278
bool remSiteNode(const LPTYSiteNodeGeoNode pSiteNodeGeoNode)
LPTYSiteNodeGeoNode findSiteNode(const LPTYSiteNode pSiteNode)
bool addSiteNode(LPTYSiteNodeGeoNode pSiteNodeGeoNode)
void setOrientation(const OVector3D &orientation)
LPTYCourbeNiveauGeoNode findCrbNiv(const LPTYCourbeNiveau pCrbNiv)
LPTYTerrainGeoNode findTerrain(const LPTYTerrain pTerrain)
bool remCrbNiv(const LPTYCourbeNiveauGeoNode pCrbNivGeoNode)
bool addCrsEau(LPTYCoursEauGeoNode pCoursEauGeoNode)
LPTYPlanEauGeoNode findPlanEau(const LPTYPlanEau pPlanEau)
bool remPlanEau(const LPTYPlanEauGeoNode pPlanEauGeoNode)
LPTYCoursEauGeoNode findCrsEau(const LPTYCoursEau pCrsEau)
bool addCrbNiv(LPTYCourbeNiveauGeoNode pCrbNivGeoNode)
bool addPlanEau(LPTYPlanEauGeoNode pPlanEauGeoNode)
bool remCrsEau(const LPTYCoursEauGeoNode pCoursEauGeoNode)
TYTabPoint & getEmprise()
void setEmprise(const TYTabPoint &pts, const bool &defTerrain=true)
bool addTerrain(LPTYTerrainGeoNode pTerGeoNode)
bool remTerrain(const LPTYTerrainGeoNode pTerGeoNode)