Changeset c8cb0d for src/Shapes
- Timestamp:
- Dec 26, 2025, 9:40:14 PM (4 days ago)
- Branches:
- Candidate_v1.7.1, stable
- Children:
- 033646
- Parents:
- f2d5ce
- git-author:
- Frederik Heber <frederik.heber@…> (12/10/25 16:15:28)
- git-committer:
- Frederik Heber <frederik.heber@…> (12/26/25 21:40:14)
- Location:
- src/Shapes
- Files:
-
- 2 edited
-
ShapeRegistry.cpp (modified) (1 diff)
-
unittests/stubs/WorldSelectedMoleculesStub.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Shapes/ShapeRegistry.cpp
rf2d5ce rc8cb0d 45 45 46 46 ShapeRegistry::ShapeRegistry() : 47 Observable::Observable("ShapeRegistry" )47 Observable::Observable("ShapeRegistry", NotificationType_MAX) 48 48 { 49 Channels *OurChannel = new Channels;50 Observable::insertNotificationChannel( std::make_pair(static_cast<Observable *>(this), OurChannel) );51 // add instance for each notification type52 for (size_t type = 0; type < NotificationType_MAX; ++type)53 OurChannel->addChannel(type);54 55 49 _lastchanged = NULL; 56 50 } -
src/Shapes/unittests/stubs/WorldSelectedMoleculesStub.cpp
rf2d5ce rc8cb0d 61 61 62 62 World::World() : 63 Observable("World" ),63 Observable("World", { World::AtomInserted, World::AtomRemoved }), 64 64 atoms(this), 65 65 selectedAtoms(this), … … 68 68 selectedMolecules(this), 69 69 moleculeIdPool(0, 20,100) 70 { 71 // observable stuff 72 Channels *OurChannel = new Channels; 73 Observable::insertNotificationChannel( std::make_pair(static_cast<Observable *>(this), OurChannel) ); 74 // add instance for each notification type 75 OurChannel->addChannel(World::AtomInserted); 76 OurChannel->addChannel(World::AtomRemoved); 77 } 70 {} 78 71 79 72 World::~World()
Note:
See TracChangeset
for help on using the changeset viewer.
