- Timestamp:
- Mar 1, 2011, 10:16:38 AM (15 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 5702cdb
- Parents:
- 34c43a
- git-author:
- Frederik Heber <heber@…> (02/21/11 23:49:30)
- git-committer:
- Frederik Heber <heber@…> (03/01/11 10:16:38)
- Location:
- src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/AnalysisAction/MolecularVolumeAction.cpp
r34c43a rcaa06ef 52 52 const LinkedCell *LCList = NULL; 53 53 DoLog(0) && (Log() << Verbose(0) << "Evaluating volume of the convex envelope."); 54 PointCloudAdaptor< molecule > cloud(mol );54 PointCloudAdaptor< molecule > cloud(mol, mol->name); 55 55 LCList = new LinkedCell(cloud, 10.); 56 56 config * const configuration = World::getInstance().getConfig(); -
src/Actions/AnalysisAction/SurfaceCorrelationAction.cpp
r34c43a rcaa06ef 76 76 std::vector<molecule*> molecules = World::getInstance().getSelectedMolecules(); 77 77 std::cout << "There are " << molecules.size() << " selected molecules." << std::endl; 78 PointCloudAdaptor<molecule> cloud(surfacemol );78 PointCloudAdaptor<molecule> cloud(surfacemol, surfacemol->name); 79 79 LCList = new LinkedCell(cloud, LCWidth); 80 80 FindNonConvexBorder(surfacemol, TesselStruct, LCList, radius, NULL); -
src/Actions/FragmentationAction/ConstructBondGraphAction.cpp
r34c43a rcaa06ef 94 94 list.push_back(AtomRunner->second); 95 95 } 96 PointCloudAdaptor< TesselPointSTLList > cloud(&list );96 PointCloudAdaptor< TesselPointSTLList > cloud(&list, "AtomSelection"); 97 97 LC = new LinkedCell(cloud, BondDistance); 98 98 -
src/Actions/TesselationAction/ConvexEnvelopeAction.cpp
r34c43a rcaa06ef 56 56 DoLog(1) && (Log() << Verbose(1) << "Storing tecplot convex data in " << params.filenameConvex << "." << endl); 57 57 DoLog(1) && (Log() << Verbose(1) << "Storing tecplot non-convex data in " << params.filenameNonConvex << "." << endl); 58 PointCloudAdaptor<molecule> cloud(mol );58 PointCloudAdaptor<molecule> cloud(mol, mol->name); 59 59 LCList = new LinkedCell(cloud, 100.); 60 60 //Boundaries *BoundaryPoints = NULL; -
src/Actions/TesselationAction/NonConvexEnvelopeAction.cpp
r34c43a rcaa06ef 56 56 DoLog(1) && (Log() << Verbose(1) << "Specified molecule has " << Boundary->getAtomCount() << " atoms." << endl); 57 57 start = clock(); 58 PointCloudAdaptor< molecule > cloud(Boundary );58 PointCloudAdaptor< molecule > cloud(Boundary, Boundary->name); 59 59 LCList = new LinkedCell(cloud, params.SphereRadius*2.); 60 60 Success = FindNonConvexBorder(Boundary, T, LCList, params.SphereRadius, params.filename.string().c_str()); -
src/IPointCloud.hpp
r34c43a rcaa06ef 24 24 class IPointCloud { 25 25 public: 26 virtual const char * constGetName() const=0;26 virtual const std::string& GetName() const=0; 27 27 virtual Vector *GetCenter() const=0; 28 28 virtual TesselPoint *GetPoint()=0; -
src/PointCloudAdaptor.hpp
r34c43a rcaa06ef 26 26 { 27 27 public: 28 PointCloudAdaptor(container_type *_list) : 29 list(_list) 28 PointCloudAdaptor(container_type *_list, const std::string _name) : 29 list(_list), 30 name(_name) 30 31 {} 31 32 virtual ~PointCloudAdaptor() … … 34 35 } 35 36 36 const char * constGetName() const37 const std::string& GetName() const 37 38 { 38 return "Unknown.";39 return name; 39 40 } 40 41 Vector *GetCenter() const … … 90 91 container_type *list; 91 92 iterator_type InternalIterator; 93 const std::string name; 92 94 }; 93 95 -
src/boundary.cpp
r34c43a rcaa06ef 377 377 378 378 // 3b. go through all lines, that are not yet part of two triangles (only of one so far) 379 PointCloudAdaptor< molecule > cloud(const_cast<molecule *>(mol) );379 PointCloudAdaptor< molecule > cloud(const_cast<molecule *>(mol), mol->name); 380 380 TesselStruct->TesselateOnBoundary(cloud); 381 381 … … 645 645 { 646 646 Info FunctionInfo(__func__); 647 PointCloudAdaptor< molecule > cloud(const_cast<molecule *>(mol) );647 PointCloudAdaptor< molecule > cloud(const_cast<molecule *>(mol), mol->name); 648 648 // 4. Store triangles in tecplot file 649 649 if (filename != NULL) { … … 700 700 BoundaryPoints = GetBoundaryPoints(mol, TesselStruct); 701 701 GreatestDiameter = GetDiametersOfCluster(BoundaryPoints, mol, TesselStruct, IsAngstroem); 702 PointCloudAdaptor< molecule > cloud(mol );702 PointCloudAdaptor< molecule > cloud(mol, mol->name); 703 703 LinkedCell *LCList = new LinkedCell(cloud, 10.); 704 704 FindConvexBorder(mol, BoundaryPoints, TesselStruct, (const LinkedCell *&)LCList, NULL); … … 810 810 if ((*ListRunner)->getAtomCount() > 0) { 811 811 DoLog(1) && (Log() << Verbose(1) << "Pre-creating linked cell lists for molecule " << *ListRunner << "." << endl); 812 PointCloudAdaptor< molecule > cloud(*ListRunner );812 PointCloudAdaptor< molecule > cloud(*ListRunner, (*ListRunner)->name); 813 813 LCList[(*ListRunner)] = new LinkedCell(cloud, 10.); // get linked cell list 814 814 DoLog(1) && (Log() << Verbose(1) << "Pre-creating tesselation for molecule " << *ListRunner << "." << endl); … … 1087 1087 if ((*ListRunner)->getAtomCount() > 0) { 1088 1088 DoLog(1) && (Log() << Verbose(1) << "Pre-creating linked cell lists for molecule " << *ListRunner << "." << endl); 1089 PointCloudAdaptor< molecule > cloud(*ListRunner );1089 PointCloudAdaptor< molecule > cloud(*ListRunner, (*ListRunner)->name); 1090 1090 LCList[(*ListRunner)] = new LinkedCell(cloud, 10.); // get linked cell list 1091 1091 } … … 1240 1240 1241 1241 // initialise Linked Cell 1242 PointCloudAdaptor< molecule > cloud(mol );1242 PointCloudAdaptor< molecule > cloud(mol, mol->name); 1243 1243 if (LCList == NULL) { 1244 1244 LCList = new LinkedCell(cloud, 2.*RADIUS); -
src/molecule_graph.cpp
r34c43a rcaa06ef 162 162 if ((getAtomCount() > 1) && (bonddistance > 0.1)) { 163 163 DoLog(2) && (Log() << Verbose(2) << "Creating Linked Cell structure ... " << endl); 164 PointCloudAdaptor<molecule> cloud(this );164 PointCloudAdaptor<molecule> cloud(this, name); 165 165 LC = new LinkedCell(cloud, bonddistance); 166 166 -
src/tesselation.cpp
r34c43a rcaa06ef 426 426 427 427 cloud.GoToFirst(); 428 PointCloudAdaptor< Tesselation, MapValueIterator<Tesselation::iterator> > newcloud(this );428 PointCloudAdaptor< Tesselation, MapValueIterator<Tesselation::iterator> > newcloud(this, cloud.GetName()); 429 429 BoundaryPoints = new LinkedCell(newcloud, 5.); 430 430 while (!cloud.IsEnd()) { // we only have to go once through all points, as boundary can become only bigger -
src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp
r34c43a rcaa06ef 100 100 // init tesselation and linked cell 101 101 Surface = new Tesselation; 102 PointCloudAdaptor<molecule> cloud(TestSurfaceMolecule );102 PointCloudAdaptor<molecule> cloud(TestSurfaceMolecule, TestSurfaceMolecule->name); 103 103 LC = new LinkedCell(cloud, 5.); 104 104 FindNonConvexBorder(TestSurfaceMolecule, Surface, (const LinkedCell *&)LC, 2.5, NULL); -
src/unittests/LinkedCellUnitTest.cpp
r34c43a rcaa06ef 71 71 72 72 // construct linked cell 73 PointCloudAdaptor<molecule> cloud(TestMolecule );73 PointCloudAdaptor<molecule> cloud(TestMolecule, TestMolecule->name); 74 74 LC = new LinkedCell (cloud, 1.); 75 75 CPPUNIT_ASSERT(LC != NULL && "could not create LinkedCell"); -
src/unittests/TesselationUnitTest.cpp
r34c43a rcaa06ef 73 73 74 74 // create linkedcell 75 PointCloudAdaptor<TesselPointSTLList> cloud(&Corners );75 PointCloudAdaptor<TesselPointSTLList> cloud(&Corners, "TesselPointSTLList"); 76 76 LinkedList = new LinkedCell(cloud, 2.*SPHERERADIUS); 77 77 -
src/unittests/Tesselation_InsideOutsideUnitTest.cpp
r34c43a rcaa06ef 96 96 97 97 // create linkedcell 98 PointCloudAdaptor< TesselPointSTLList > cloud(&Corners );98 PointCloudAdaptor< TesselPointSTLList > cloud(&Corners, "TesselPointSTLList"); 99 99 LinkedList = new LinkedCell(cloud, 2.*SPHERERADIUS); 100 100
Note:
See TracChangeset
for help on using the changeset viewer.