Changes in src/molecule.hpp [6adb96:244a84]
- File:
-
- 1 edited
-
src/molecule.hpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/molecule.hpp
r6adb96 r244a84 27 27 #include <vector> 28 28 29 #include <string>30 31 29 #include "graph.hpp" 32 30 #include "stackclass.hpp" 33 31 #include "tesselation.hpp" 34 #include "Patterns/Observer.hpp"35 32 36 33 /****************************************** forward declarations *****************************/ … … 83 80 * Class incorporates number of types 84 81 */ 85 class molecule : public PointCloud , public Observable{82 class molecule : public PointCloud { 86 83 public: 87 84 double cell_size[6];//!< cell size … … 102 99 bool ActiveFlag; //!< in a MoleculeListClass used to discern active from inactive molecules 103 100 Vector Center; //!< Center of molecule in a global box 101 char name[MAXSTRINGSIZE]; //!< arbitrary name 104 102 int IndexNr; //!< index of molecule in a MoleculeListClass 105 char name[MAXSTRINGSIZE]; //!< arbitrary name 106 107 public: 103 108 104 molecule(const periodentafel * const teil); 109 105 virtual ~molecule(); 110 106 111 //getter and setter112 const std::string getName();113 void setName(const std::string);114 115 107 // re-definition of virtual functions from PointCloud 108 const char * const GetName() const; 116 109 Vector *GetCenter() const ; 117 110 TesselPoint *GetPoint() const ; 118 111 TesselPoint *GetTerminalPoint() const ; 112 int GetMaxId() const; 119 113 void GoToNext() const ; 120 114 void GoToPrevious() const ; … … 304 298 bool OutputTemperatureFromTrajectories(ofstream * const output, int startstep, int endstep); 305 299 306 // Manipulation routines307 void flipActiveFlag();308 309 300 private: 310 301 int last_atom; //!< number given to last atom … … 316 307 /** A list of \a molecule classes. 317 308 */ 318 class MoleculeListClass : public Observable{309 class MoleculeListClass { 319 310 public: 320 311 MoleculeList ListOfMolecules; //!< List of the contained molecules … … 332 323 void Enumerate(ofstream *out); 333 324 void Output(ofstream *out); 334 void DissectMoleculeIntoConnectedSubgraphs( molecule * const mol, config * const configuration);325 void DissectMoleculeIntoConnectedSubgraphs(const periodentafel * const periode, config * const configuration); 335 326 int CountAllAtoms() const; 336 337 // Methods moved here from the menus338 // TODO: more refactoring needed on these methods339 void flipChosen();340 void createNewMolecule(periodentafel *periode);341 void loadFromXYZ(periodentafel *periode);342 void setMoleculeFilename();343 void parseXYZIntoMolecule();344 void eraseMolecule();345 346 327 347 328 // merging of molecules
Note:
See TracChangeset
for help on using the changeset viewer.
