File tree Expand file tree Collapse file tree 11 files changed +4
-77
lines changed Expand file tree Collapse file tree 11 files changed +4
-77
lines changed Original file line number Diff line number Diff line change @@ -163,8 +163,7 @@ void CommandEditGeom::internalUndo()
163163 // les entités détruites sont dites créées et inversement
164164 getInfoCommand ().permCreatedDeleted ();
165165
166- // Annulation de la commande pour les entités dont l'état n'est pas mémorisé (cas des FcetedSurface)
167- internalSpecificUndo ();
166+ if (m_impl) m_impl->performUndo ();
168167
169168 log (TkUtil::TraceLog (message, TkUtil::Log::TRACE_1));
170169}
@@ -185,8 +184,7 @@ void CommandEditGeom::internalRedo()
185184 // les entités détruites sont dites créées et inversement
186185 getInfoCommand ().permCreatedDeleted ();
187186
188- // Rejoue la commande pour les entités dont l'état n'est pas mémorisé (cas des FcetedSurface)
189- internalSpecificRedo ();
187+ if (m_impl) m_impl->performRedo ();
190188
191189 startingOrcompletionLog (false );
192190
Original file line number Diff line number Diff line change @@ -51,16 +51,6 @@ void CommandMirroring::internalSpecificPreExecute() {
5151 m_impl->prePerform ();
5252}
5353/* ----------------------------------------------------------------------------*/
54- void CommandMirroring::internalSpecificUndo ()
55- {
56- m_impl->performUndo ();
57- }
58- /* ----------------------------------------------------------------------------*/
59- void CommandMirroring::internalSpecificRedo ()
60- {
61- m_impl->performRedo ();
62- }
63- /* ----------------------------------------------------------------------------*/
6454} // end namespace Geom
6555/* ----------------------------------------------------------------------------*/
6656} // end namespace Mgx3D
Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ CommandRemove::~CommandRemove()
3333 if (m_impl)
3434 delete m_impl;
3535}
36-
3736/* ----------------------------------------------------------------------------*/
3837void CommandRemove::internalSpecificPreExecute ()
3938{
4039 m_impl->prePerform ();
41- }/* ----------------------------------------------------------------------------*/
40+ }
41+ /* ----------------------------------------------------------------------------*/
4242void CommandRemove::
4343internalSpecificExecute ()
4444{
Original file line number Diff line number Diff line change @@ -83,16 +83,6 @@ void CommandRotation::internalSpecificPreExecute()
8383 m_impl->prePerform ();
8484}
8585/* ----------------------------------------------------------------------------*/
86- void CommandRotation::internalSpecificUndo ()
87- {
88- m_impl->performUndo ();
89- }
90- /* ----------------------------------------------------------------------------*/
91- void CommandRotation::internalSpecificRedo ()
92- {
93- m_impl->performRedo ();
94- }
95- /* ----------------------------------------------------------------------------*/
9686} // end namespace Geom
9787/* ----------------------------------------------------------------------------*/
9888} // end namespace Mgx3D
Original file line number Diff line number Diff line change @@ -173,16 +173,6 @@ void CommandScaling::internalSpecificPreExecute() {
173173 m_impl->prePerform ();
174174}
175175/* ----------------------------------------------------------------------------*/
176- void CommandScaling::internalSpecificUndo ()
177- {
178- m_impl->performUndo ();
179- }
180- /* ----------------------------------------------------------------------------*/
181- void CommandScaling::internalSpecificRedo ()
182- {
183- m_impl->performRedo ();
184- }
185- /* ----------------------------------------------------------------------------*/
186176} // end namespace Geom
187177/* ----------------------------------------------------------------------------*/
188178} // end namespace Mgx3D
Original file line number Diff line number Diff line change @@ -78,16 +78,6 @@ void CommandTranslation::internalSpecificPreExecute()
7878 m_impl->prePerform ();
7979}
8080/* ----------------------------------------------------------------------------*/
81- void CommandTranslation::internalSpecificUndo ()
82- {
83- m_impl->performUndo ();
84- }
85- /* ----------------------------------------------------------------------------*/
86- void CommandTranslation::internalSpecificRedo ()
87- {
88- m_impl->performRedo ();
89- }
90- /* ----------------------------------------------------------------------------*/
9181} // end namespace Geom
9282/* ----------------------------------------------------------------------------*/
9383} // end namespace Mgx3D
Original file line number Diff line number Diff line change @@ -63,12 +63,6 @@ class CommandEditGeom: public Geom::CommandCreateGeom {
6363 */
6464 virtual void internalSpecificExecute ()=0;
6565
66- /* ------------------------------------------------------------------------*/
67- /* * \brief Traitement spécifique délégué aux classes filles
68- */
69- virtual void internalSpecificUndo (){}
70- virtual void internalSpecificRedo (){}
71-
7266 /* ------------------------------------------------------------------------*/
7367 /* * \brief retourne une référence sur les entités supprimées. N'a de sens
7468 * qu'une fois l'opération perform() appelée.
Original file line number Diff line number Diff line change @@ -63,13 +63,6 @@ class CommandMirroring: public Geom::CommandEditGeom{
6363 /* * \brief initialisation de la commande
6464 */
6565 void internalSpecificPreExecute ();
66-
67- /* ------------------------------------------------------------------------*/
68- /* * \brief Traitement spécifique délégué aux classes filles
69- */
70- void internalSpecificUndo ();
71- void internalSpecificRedo ();
72-
7366};
7467/* ----------------------------------------------------------------------------*/
7568} // end namespace Geom
Original file line number Diff line number Diff line change @@ -66,12 +66,6 @@ class CommandRotation: public CommandEditGeom{
6666 */
6767 void internalSpecificPreExecute ();
6868
69- /* ------------------------------------------------------------------------*/
70- /* * \brief Traitement spécifique délégué aux classes filles
71- */
72- void internalSpecificUndo ();
73- void internalSpecificRedo ();
74-
7569protected:
7670
7771 // / valide les paramètres
Original file line number Diff line number Diff line change @@ -119,12 +119,6 @@ class CommandScaling: public Geom::CommandEditGeom{
119119 */
120120 void internalSpecificPreExecute ();
121121
122- /* ------------------------------------------------------------------------*/
123- /* * \brief Traitement spécifique délégué aux classes filles
124- */
125- void internalSpecificUndo ();
126- void internalSpecificRedo ();
127-
128122protected:
129123 // / valide les paramètres
130124 void validate ();
You can’t perform that action at this time.
0 commit comments