Skip to content

Commit 5dfc323

Browse files
authored
Merge branch 'main' into cgns_update
2 parents aa26314 + a135089 commit 5dfc323

File tree

83 files changed

+2389
-2951
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2389
-2951
lines changed

cmake/version.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
set (MAGIX3D_MAJOR_VERSION "2")
66
set (MAGIX3D_MINOR_VERSION "5")
7-
set (MAGIX3D_RELEASE_VERSION "1")
7+
set (MAGIX3D_RELEASE_VERSION "2")
88
set (MAGIX3D_VERSION ${MAGIX3D_MAJOR_VERSION}.${MAGIX3D_MINOR_VERSION}.${MAGIX3D_RELEASE_VERSION})
99

src/Core/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ find_package (GUIToolkitsVariables REQUIRED)
77
include (${GUIToolkitsVariables_CMAKE_DIR}/python_binding.cmake)
88

99
file (GLOB HEADERS protected/*/*.h)
10-
file (GLOB CPP_SOURCES Internal/*.cpp Geom/*.cpp Topo/*.cpp Mesh/*.cpp Structured/*.cpp Group/*.cpp SysCoord/*.cpp Smoothing/*.cpp )
10+
file (GLOB CPP_SOURCES Internal/*.cpp Geom/*.cpp Topo/*.cpp Mesh/*.cpp Services/*.cpp Structured/*.cpp Group/*.cpp SysCoord/*.cpp Smoothing/*.cpp )
1111

1212
# Répertoire d'en-têtes installés. Certains sont optionnels et ajoutés plus loin.
13-
set (HEADERS_DIRECTORIES protected/Geom protected/Group protected/Internal protected/Mesh protected/Smoothing protected/Structured protected/SysCoord protected/Topo)
13+
set (HEADERS_DIRECTORIES protected/Geom protected/Group protected/Internal protected/Mesh protected/Services protected/Smoothing protected/Structured protected/SysCoord protected/Topo)
1414

1515
# On ajoute les en-têtes aux sources. C'est utile pour cmake dans certains cas,
1616
# par exemple lorsqu'ils doivent être pré-processés (moc, ...).

src/Core/Geom/CommandCreateWithOtherGeomEntities.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void CommandCreateWithOtherGeomEntities::internalUndo()
3131
AutoReferencedMutex autoMutex (getMutex ( ));
3232

3333
// permute toutes les propriétés internes avec leur sauvegarde
34-
m_memento_manager.permMementos();
34+
m_memento_service.permMementos();
3535

3636
// les entités détruites sont dites créées et inversement
3737
getInfoCommand().permCreatedDeleted();
@@ -50,7 +50,7 @@ void CommandCreateWithOtherGeomEntities::internalRedo()
5050
startingOrcompletionLog (true);
5151

5252
// permute toutes les propriétés internes avec leur sauvegarde
53-
m_memento_manager.permMementos();
53+
m_memento_service.permMementos();
5454

5555
// les entités détruites sont dites créées et inversement
5656
getInfoCommand().permCreatedDeleted();

src/Core/Geom/CommandEditGeom.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ void CommandEditGeom::internalExecute()
4545
internalSpecificPreExecute();
4646

4747
// on recupere toutes les entites concernes par l'opération géométrique
48-
std::map<GeomEntity*, MementoEntity> mementos_by_entity;
48+
std::map<GeomEntity*, Services::Memento> mementos_by_entity;
4949
std::set<GeomEntity*> to_mem_entities[4];
5050

5151
for(unsigned int i=0;i<4;i++) {
5252
to_mem_entities[i].insert(getRefEntities(i).begin(), getRefEntities(i).end());
5353
to_mem_entities[i].insert(getAdjEntities(i).begin(), getAdjEntities(i).end());
5454
for (GeomEntity* e : to_mem_entities[i]) {
55-
MementoEntity mem = m_memento_manager.createMemento(e);
55+
Services::Memento mem = m_memento_service.createMemento(e);
5656
#ifdef _DEBUG2
5757
std::cerr<<"Memento cree pour "<<e->getName()<<std::endl;
5858
#endif
@@ -119,7 +119,7 @@ void CommandEditGeom::internalExecute()
119119
// Sauvegarde des mementos pour le undo/redo
120120
// Utiliser at en lecture pour avoir une exception si
121121
// la clef est absente (ne pas utiliser l'opérateur [])
122-
std::map<GeomEntity*,MementoEntity> keeped_ref;
122+
std::map<GeomEntity*,Services::Memento> keeped_ref;
123123
for(unsigned int i=0;i<mod_entities.size();i++){
124124
GeomEntity* e = mod_entities[i];
125125
if (mementos_by_entity.find(e) == mementos_by_entity.end())
@@ -161,7 +161,7 @@ void CommandEditGeom::internalUndo()
161161
AutoReferencedMutex autoMutex (getMutex ( ));
162162

163163
// permute toutes les propriétés internes avec leur sauvegarde
164-
m_memento_manager.permMementos();
164+
m_memento_service.permMementos();
165165

166166
// les entités détruites sont dites créées et inversement
167167
getInfoCommand().permCreatedDeleted();
@@ -183,7 +183,7 @@ void CommandEditGeom::internalRedo()
183183
startingOrcompletionLog (true);
184184

185185
// permute toutes les propriétés internes avec leur sauvegarde
186-
m_memento_manager.permMementos();
186+
m_memento_service.permMementos();
187187

188188
// les entités détruites sont dites créées et inversement
189189
getInfoCommand().permCreatedDeleted();
@@ -199,10 +199,10 @@ void CommandEditGeom::internalRedo()
199199
/*----------------------------------------------------------------------------*/
200200
//#define _DEBUG_CANCEL
201201
void CommandEditGeom::
202-
saveMementos(std::map<GeomEntity*,MementoEntity> & candidates)
202+
saveMementos(std::map<GeomEntity*,Services::Memento> & candidates)
203203
{
204204
for (const auto& pair : candidates) {
205-
m_memento_manager.saveMemento(pair.first, pair.second);
205+
m_memento_service.saveMemento(pair.first, pair.second);
206206
#ifdef _DEBUG_CANCEL
207207
std::cout<<"save Memento pour "<<e->getName()<<std::endl;
208208
#endif

src/Core/Geom/CommandNewArcCircle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ internalExecute()
4141

4242

4343
// sauvegarde des relations (connections topologiques) avant modification
44-
m_memento_manager.saveMemento(m_start);
45-
m_memento_manager.saveMemento(m_end);
44+
m_memento_service.saveMemento(m_start);
45+
m_memento_service.saveMemento(m_end);
4646

4747
Curve* c = EntityFactory(getContext()).newArcCircle(m_center,m_start,m_end,m_direction, m_normal, m_circumCircle);
4848
m_createdEntities.push_back(c);

src/Core/Geom/CommandNewArcEllipse.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ internalExecute()
3737
<<".";
3838

3939
// sauvegarde des relations (connections topologiques) avant modification
40-
m_memento_manager.saveMemento(m_start);
41-
m_memento_manager.saveMemento(m_end);
40+
m_memento_service.saveMemento(m_start);
41+
m_memento_service.saveMemento(m_end);
4242

4343
Curve* c = EntityFactory(getContext()).newArcEllipse(m_center,m_start,m_end,m_direction);
4444
m_createdEntities.push_back(c);

src/Core/Geom/CommandNewCircle.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ internalExecute()
3232
<< *m_p2<< ", p3 "<<*m_p3<<".";
3333

3434
// sauvegarde des relations (connections topologiques) avant modification
35-
m_memento_manager.saveMemento(m_p1);
36-
m_memento_manager.saveMemento(m_p2);
37-
m_memento_manager.saveMemento(m_p3);
35+
m_memento_service.saveMemento(m_p1);
36+
m_memento_service.saveMemento(m_p2);
37+
m_memento_service.saveMemento(m_p3);
3838

3939
Curve* c = EntityFactory(getContext()).newCircle(m_p1,m_p2,m_p3);
4040
m_createdEntities.push_back(c);

src/Core/Geom/CommandNewEllipse.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ internalExecute()
3232
<< *m_p2<< ", center "<<*m_center<<".";
3333

3434
// sauvegarde des relations (connections topologiques) avant modification
35-
m_memento_manager.saveMemento(m_p1);
36-
m_memento_manager.saveMemento(m_p2);
37-
m_memento_manager.saveMemento(m_center);
35+
m_memento_service.saveMemento(m_p1);
36+
m_memento_service.saveMemento(m_p2);
37+
m_memento_service.saveMemento(m_center);
3838

3939
Curve* c = EntityFactory(getContext()).newEllipse(m_p1,m_p2,m_center);
4040
m_createdEntities.push_back(c);

src/Core/Geom/CommandNewSegment.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ internalExecute()
6868
<< Utils::Math::MgxNumeric::userRepresentation (m_v2->getZ ( )) << ").";
6969

7070
// sauvegarde des relations (connections topologiques) avant modification
71-
m_memento_manager.saveMemento(m_v1);
72-
m_memento_manager.saveMemento(m_v2);
71+
m_memento_service.saveMemento(m_v1);
72+
m_memento_service.saveMemento(m_v2);
7373

7474
Curve* c = EntityFactory(getContext()).newSegment(m_v1,m_v2);
7575
m_createdEntities.push_back(c);

src/Core/Geom/CommandNewSurface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ internalExecute()
5555
*/
5656
// sauvegarde des relations (connections topologiques) avant modification
5757
for (uint i=0; i<m_curves.size(); i++)
58-
m_memento_manager.saveMemento(m_curves[i]);
58+
m_memento_service.saveMemento(m_curves[i]);
5959

6060
Surface* s = EntityFactory(getContext()).newSurface(m_curves);
6161
m_createdEntities.push_back(s);

0 commit comments

Comments
 (0)