Changeset caa06ef for src


Ignore:
Timestamp:
Mar 1, 2011, 10:16:38 AM (15 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Added name to PointCloudAdaptor, set by constructor.

Location:
src
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/AnalysisAction/MolecularVolumeAction.cpp

    r34c43a rcaa06ef  
    5252    const LinkedCell *LCList = NULL;
    5353    DoLog(0) && (Log() << Verbose(0) << "Evaluating volume of the convex envelope.");
    54     PointCloudAdaptor< molecule > cloud(mol);
     54    PointCloudAdaptor< molecule > cloud(mol, mol->name);
    5555    LCList = new LinkedCell(cloud, 10.);
    5656    config * const configuration = World::getInstance().getConfig();
  • src/Actions/AnalysisAction/SurfaceCorrelationAction.cpp

    r34c43a rcaa06ef  
    7676  std::vector<molecule*> molecules = World::getInstance().getSelectedMolecules();
    7777  std::cout << "There are " << molecules.size() << " selected molecules." << std::endl;
    78   PointCloudAdaptor<molecule> cloud(surfacemol);
     78  PointCloudAdaptor<molecule> cloud(surfacemol, surfacemol->name);
    7979  LCList = new LinkedCell(cloud, LCWidth);
    8080  FindNonConvexBorder(surfacemol, TesselStruct, LCList, radius, NULL);
  • src/Actions/FragmentationAction/ConstructBondGraphAction.cpp

    r34c43a rcaa06ef  
    9494      list.push_back(AtomRunner->second);
    9595    }
    96     PointCloudAdaptor< TesselPointSTLList > cloud(&list);
     96    PointCloudAdaptor< TesselPointSTLList > cloud(&list, "AtomSelection");
    9797    LC = new LinkedCell(cloud, BondDistance);
    9898
  • src/Actions/TesselationAction/ConvexEnvelopeAction.cpp

    r34c43a rcaa06ef  
    5656    DoLog(1) && (Log() << Verbose(1) << "Storing tecplot convex data in " << params.filenameConvex << "." << endl);
    5757    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);
    5959    LCList = new LinkedCell(cloud, 100.);
    6060    //Boundaries *BoundaryPoints = NULL;
  • src/Actions/TesselationAction/NonConvexEnvelopeAction.cpp

    r34c43a rcaa06ef  
    5656    DoLog(1) && (Log() << Verbose(1) << "Specified molecule has " << Boundary->getAtomCount() << " atoms." << endl);
    5757    start = clock();
    58     PointCloudAdaptor< molecule > cloud(Boundary);
     58    PointCloudAdaptor< molecule > cloud(Boundary, Boundary->name);
    5959    LCList = new LinkedCell(cloud, params.SphereRadius*2.);
    6060    Success = FindNonConvexBorder(Boundary, T, LCList, params.SphereRadius, params.filename.string().c_str());
  • src/IPointCloud.hpp

    r34c43a rcaa06ef  
    2424class IPointCloud {
    2525public:
    26   virtual const char * const GetName() const=0;
     26  virtual const std::string& GetName() const=0;
    2727  virtual Vector *GetCenter() const=0;
    2828  virtual TesselPoint *GetPoint()=0;
  • src/PointCloudAdaptor.hpp

    r34c43a rcaa06ef  
    2626{
    2727public:
    28   PointCloudAdaptor(container_type *_list) :
    29     list(_list)
     28  PointCloudAdaptor(container_type *_list, const std::string _name) :
     29    list(_list),
     30    name(_name)
    3031  {}
    3132  virtual ~PointCloudAdaptor()
     
    3435  }
    3536
    36   const char * const GetName() const
     37  const std::string& GetName() const
    3738  {
    38     return "Unknown.";
     39    return name;
    3940  }
    4041  Vector *GetCenter() const
     
    9091  container_type *list;
    9192  iterator_type InternalIterator;
     93  const std::string name;
    9294};
    9395
  • src/boundary.cpp

    r34c43a rcaa06ef  
    377377
    378378  // 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);
    380380  TesselStruct->TesselateOnBoundary(cloud);
    381381
     
    645645{
    646646        Info FunctionInfo(__func__);
    647   PointCloudAdaptor< molecule > cloud(const_cast<molecule *>(mol));
     647  PointCloudAdaptor< molecule > cloud(const_cast<molecule *>(mol), mol->name);
    648648  // 4. Store triangles in tecplot file
    649649  if (filename != NULL) {
     
    700700  BoundaryPoints = GetBoundaryPoints(mol, TesselStruct);
    701701  GreatestDiameter = GetDiametersOfCluster(BoundaryPoints, mol, TesselStruct, IsAngstroem);
    702   PointCloudAdaptor< molecule > cloud(mol);
     702  PointCloudAdaptor< molecule > cloud(mol, mol->name);
    703703  LinkedCell *LCList = new LinkedCell(cloud, 10.);
    704704  FindConvexBorder(mol, BoundaryPoints, TesselStruct, (const LinkedCell *&)LCList, NULL);
     
    810810    if ((*ListRunner)->getAtomCount() > 0) {
    811811      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);
    813813      LCList[(*ListRunner)] = new LinkedCell(cloud, 10.); // get linked cell list
    814814      DoLog(1) && (Log() << Verbose(1) << "Pre-creating tesselation for molecule " << *ListRunner << "." << endl);
     
    10871087    if ((*ListRunner)->getAtomCount() > 0) {
    10881088      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);
    10901090      LCList[(*ListRunner)] = new LinkedCell(cloud, 10.); // get linked cell list
    10911091    }
     
    12401240
    12411241  // initialise Linked Cell
    1242   PointCloudAdaptor< molecule > cloud(mol);
     1242  PointCloudAdaptor< molecule > cloud(mol, mol->name);
    12431243  if (LCList == NULL) {
    12441244    LCList = new LinkedCell(cloud, 2.*RADIUS);
  • src/molecule_graph.cpp

    r34c43a rcaa06ef  
    162162  if ((getAtomCount() > 1) && (bonddistance > 0.1)) {
    163163    DoLog(2) && (Log() << Verbose(2) << "Creating Linked Cell structure ... " << endl);
    164     PointCloudAdaptor<molecule> cloud(this);
     164    PointCloudAdaptor<molecule> cloud(this, name);
    165165    LC = new LinkedCell(cloud, bonddistance);
    166166
  • src/tesselation.cpp

    r34c43a rcaa06ef  
    426426
    427427  cloud.GoToFirst();
    428   PointCloudAdaptor< Tesselation, MapValueIterator<Tesselation::iterator> > newcloud(this);
     428  PointCloudAdaptor< Tesselation, MapValueIterator<Tesselation::iterator> > newcloud(this, cloud.GetName());
    429429  BoundaryPoints = new LinkedCell(newcloud, 5.);
    430430  while (!cloud.IsEnd()) { // we only have to go once through all points, as boundary can become only bigger
  • src/unittests/AnalysisCorrelationToSurfaceUnitTest.cpp

    r34c43a rcaa06ef  
    100100  // init tesselation and linked cell
    101101  Surface = new Tesselation;
    102   PointCloudAdaptor<molecule> cloud(TestSurfaceMolecule);
     102  PointCloudAdaptor<molecule> cloud(TestSurfaceMolecule, TestSurfaceMolecule->name);
    103103  LC = new LinkedCell(cloud, 5.);
    104104  FindNonConvexBorder(TestSurfaceMolecule, Surface, (const LinkedCell *&)LC, 2.5, NULL);
  • src/unittests/LinkedCellUnitTest.cpp

    r34c43a rcaa06ef  
    7171
    7272  // construct linked cell
    73   PointCloudAdaptor<molecule> cloud(TestMolecule);
     73  PointCloudAdaptor<molecule> cloud(TestMolecule, TestMolecule->name);
    7474  LC = new LinkedCell (cloud, 1.);
    7575  CPPUNIT_ASSERT(LC != NULL && "could not create LinkedCell");
  • src/unittests/TesselationUnitTest.cpp

    r34c43a rcaa06ef  
    7373
    7474  // create linkedcell
    75   PointCloudAdaptor<TesselPointSTLList> cloud(&Corners);
     75  PointCloudAdaptor<TesselPointSTLList> cloud(&Corners, "TesselPointSTLList");
    7676  LinkedList = new LinkedCell(cloud, 2.*SPHERERADIUS);
    7777
  • src/unittests/Tesselation_InsideOutsideUnitTest.cpp

    r34c43a rcaa06ef  
    9696
    9797  // create linkedcell
    98   PointCloudAdaptor< TesselPointSTLList > cloud(&Corners);
     98  PointCloudAdaptor< TesselPointSTLList > cloud(&Corners, "TesselPointSTLList");
    9999  LinkedList = new LinkedCell(cloud, 2.*SPHERERADIUS);
    100100
Note: See TracChangeset for help on using the changeset viewer.