Ignore:
Timestamp:
Jan 2, 2012, 1:34:28 PM (13 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:
d78531
Parents:
f55ae5
git-author:
Frederik Heber <heber@…> (12/19/11 16:46:11)
git-committer:
Frederik Heber <heber@…> (01/02/12 13:34:28)
Message:

Renamed old LinkedCell class to LinkedCell_deprecated.

  • this is preparatory for a smooth transition to the new implementation.
  • note that class LinkedCell and namespace LinkedCell bite each other so far.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Tesselation/tesselation.cpp

    rf55ae5 r6bd7e0  
    415415 * \param *out output stream for debugging
    416416 * \param *cloud cluster of points
    417  * \param *LC LinkedCell structure to find nearest point quickly
     417 * \param *LC LinkedCell_deprecated structure to find nearest point quickly
    418418 * \return true - all straddling points insert, false - something went wrong
    419419 */
    420 bool Tesselation::InsertStraddlingPoints(IPointCloud & cloud, const LinkedCell *LC)
     420bool Tesselation::InsertStraddlingPoints(IPointCloud & cloud, const LinkedCell_deprecated *LC)
    421421{
    422422  Info FunctionInfo(__func__);
     
    426426  TriangleList *triangles = NULL;
    427427  bool AddFlag = false;
    428   LinkedCell *BoundaryPoints = NULL;
     428  LinkedCell_deprecated *BoundaryPoints = NULL;
    429429  bool SuccessFlag = true;
    430430
    431431  cloud.GoToFirst();
    432432  PointCloudAdaptor< Tesselation, MapValueIterator<Tesselation::iterator> > newcloud(this, cloud.GetName());
    433   BoundaryPoints = new LinkedCell(newcloud, 5.);
     433  BoundaryPoints = new LinkedCell_deprecated(newcloud, 5.);
    434434  while (!cloud.IsEnd()) { // we only have to go once through all points, as boundary can become only bigger
    435435    if (AddFlag) {
    436436      delete (BoundaryPoints);
    437       BoundaryPoints = new LinkedCell(newcloud, 5.);
     437      BoundaryPoints = new LinkedCell_deprecated(newcloud, 5.);
    438438      AddFlag = false;
    439439    }
     
    846846 * \param &CandidateLine contains other degenerated candidates which we have to subtract as well
    847847 * \param RADIUS radius of sphere
    848  * \param *LC LinkedCell structure with other atoms
     848 * \param *LC LinkedCell_deprecated structure with other atoms
    849849 * \return true - candidate triangle is degenerated, false - candidate triangle is not degenerated
    850850 */
    851 bool Tesselation::CheckDegeneracy(CandidateForTesselation &CandidateLine, const double RADIUS, const LinkedCell *LC) const
     851bool Tesselation::CheckDegeneracy(CandidateForTesselation &CandidateLine, const double RADIUS, const LinkedCell_deprecated *LC) const
    852852{
    853853  Info FunctionInfo(__func__);
     
    997997 * \param *out output stream for debugging
    998998 * \param RADIUS radius of virtual rolling sphere
    999  * \param *LC LinkedCell structure with neighbouring TesselPoint's
     999 * \param *LC LinkedCell_deprecated structure with neighbouring TesselPoint's
    10001000 * \return true - a starting triangle has been created, false - no valid triple of points found
    10011001 */
    1002 bool Tesselation::FindStartingTriangle(const double RADIUS, const LinkedCell *LC)
     1002bool Tesselation::FindStartingTriangle(const double RADIUS, const LinkedCell_deprecated *LC)
    10031003{
    10041004  Info FunctionInfo(__func__);
     
    11301130 * \param *ThirdNode third point in triangle, not in BoundaryLineSet::endpoints
    11311131 * \param RADIUS radius of sphere
    1132  * \param *LC LinkedCell structure
     1132 * \param *LC LinkedCell_deprecated structure
    11331133 * \return true - there is a better candidate (smaller angle than \a ShortestAngle), false - no better TesselPoint candidate found
    11341134 */
    1135 //bool Tesselation::HasOtherBaselineBetterCandidate(CandidateForTesselation &CandidateLine, const TesselPoint * const ThirdNode, double RADIUS, const LinkedCell * const LC) const
     1135//bool Tesselation::HasOtherBaselineBetterCandidate(CandidateForTesselation &CandidateLine, const TesselPoint * const ThirdNode, double RADIUS, const LinkedCell_deprecated * const LC) const
    11361136//{
    11371137//      Info FunctionInfo(__func__);
     
    12701270 * @param RADIUS radius of the rolling ball
    12711271 * @param N number of found triangles
    1272  * @param *LC LinkedCell structure with neighbouring points
    1273  */
    1274 bool Tesselation::FindNextSuitableTriangle(CandidateForTesselation &CandidateLine, const BoundaryTriangleSet &T, const double& RADIUS, const LinkedCell *LC)
     1272 * @param *LC LinkedCell_deprecated structure with neighbouring points
     1273 */
     1274bool Tesselation::FindNextSuitableTriangle(CandidateForTesselation &CandidateLine, const BoundaryTriangleSet &T, const double& RADIUS, const LinkedCell_deprecated *LC)
    12751275{
    12761276  Info FunctionInfo(__func__);
     
    13451345
    13461346/** Walks through Tesselation::OpenLines() and finds candidates for newly created ones.
    1347  * \param *&LCList atoms in LinkedCell list
     1347 * \param *&LCList atoms in LinkedCell_deprecated list
    13481348 * \param RADIUS radius of the virtual sphere
    13491349 * \return true - for all open lines without candidates so far, a candidate has been found,
    13501350 *         false - at least one open line without candidate still
    13511351 */
    1352 bool Tesselation::FindCandidatesforOpenLines(const double RADIUS, const LinkedCell *&LCList)
     1352bool Tesselation::FindCandidatesforOpenLines(const double RADIUS, const LinkedCell_deprecated *&LCList)
    13531353{
    13541354  bool TesselationFailFlag = true;
     
    13721372 * \param CandidateLine triangle to add
    13731373 * \param RADIUS Radius of sphere
    1374  * \param *LC LinkedCell structure
     1374 * \param *LC LinkedCell_deprecated structure
    13751375 * \NOTE we need the copy operator here as the original CandidateForTesselation is removed in
    13761376 * AddTesselationLine() in AddCandidateTriangle()
    13771377 */
    1378 void Tesselation::AddCandidatePolygon(CandidateForTesselation CandidateLine, const double RADIUS, const LinkedCell *LC)
     1378void Tesselation::AddCandidatePolygon(CandidateForTesselation CandidateLine, const double RADIUS, const LinkedCell_deprecated *LC)
    13791379{
    13801380  Info FunctionInfo(__func__);
     
    14681468 * \param CandidateLine CanddiateForTesselation structure for the desired BoundaryLine
    14691469 * \param RADIUS radius of sphere
    1470  * \param *LC pointer to LinkedCell structure
    1471  */
    1472 void Tesselation::AddDegeneratedTriangle(CandidateForTesselation &CandidateLine, const double RADIUS, const LinkedCell *LC)
     1470 * \param *LC pointer to LinkedCell_deprecated structure
     1471 */
     1472void Tesselation::AddDegeneratedTriangle(CandidateForTesselation &CandidateLine, const double RADIUS, const LinkedCell_deprecated *LC)
    14731473{
    14741474  Info FunctionInfo(__func__);
     
    18761876 * \param Storage[3] array storing angles and other candidate information
    18771877 * \param RADIUS radius of virtual sphere
    1878  * \param *LC LinkedCell structure with neighbouring points
    1879  */
    1880 void Tesselation::FindSecondPointForTesselation(TesselPoint* a, Vector Oben, TesselPoint*& OptCandidate, double Storage[3], double RADIUS, const LinkedCell *LC)
     1878 * \param *LC LinkedCell_deprecated structure with neighbouring points
     1879 */
     1880void Tesselation::FindSecondPointForTesselation(TesselPoint* a, Vector Oben, TesselPoint*& OptCandidate, double Storage[3], double RADIUS, const LinkedCell_deprecated *LC)
    18811881{
    18821882  Info FunctionInfo(__func__);
     
    19841984 * @param ThirdPoint third point to avoid in search
    19851985 * @param RADIUS radius of sphere
    1986  * @param *LC LinkedCell structure with neighbouring points
    1987  */
    1988 void Tesselation::FindThirdPointForTesselation(const Vector &NormalVector, const Vector &SearchDirection, const Vector &OldSphereCenter, CandidateForTesselation &CandidateLine, const class BoundaryPointSet * const ThirdPoint, const double RADIUS, const LinkedCell *LC) const
     1986 * @param *LC LinkedCell_deprecated structure with neighbouring points
     1987 */
     1988void Tesselation::FindThirdPointForTesselation(const Vector &NormalVector, const Vector &SearchDirection, const Vector &OldSphereCenter, CandidateForTesselation &CandidateLine, const class BoundaryPointSet * const ThirdPoint, const double RADIUS, const LinkedCell_deprecated *LC) const
    19891989{
    19901990  Info FunctionInfo(__func__);
     
    22192219 * \return map of BoundaryPointSet of closest points sorted by squared distance or NULL.
    22202220 */
    2221 DistanceToPointMap * Tesselation::FindClosestBoundaryPointsToVector(const Vector &x, const LinkedCell* LC) const
     2221DistanceToPointMap * Tesselation::FindClosestBoundaryPointsToVector(const Vector &x, const LinkedCell_deprecated* LC) const
    22222222{
    22232223  Info FunctionInfo(__func__);
     
    22702270 * \return closest BoundaryLineSet or NULL in degenerate case.
    22712271 */
    2272 BoundaryLineSet * Tesselation::FindClosestBoundaryLineToVector(const Vector &x, const LinkedCell* LC) const
     2272BoundaryLineSet * Tesselation::FindClosestBoundaryLineToVector(const Vector &x, const LinkedCell_deprecated* LC) const
    22732273{
    22742274  Info FunctionInfo(__func__);
     
    23302330 * \return BoundaryTriangleSet of nearest triangle or NULL.
    23312331 */
    2332 TriangleList * Tesselation::FindClosestTrianglesToVector(const Vector &x, const LinkedCell* LC) const
     2332TriangleList * Tesselation::FindClosestTrianglesToVector(const Vector &x, const LinkedCell_deprecated* LC) const
    23332333{
    23342334  Info FunctionInfo(__func__);
     
    24172417 * \return list of BoundaryTriangleSet of nearest triangles or NULL.
    24182418 */
    2419 class BoundaryTriangleSet * Tesselation::FindClosestTriangleToVector(const Vector &x, const LinkedCell* LC) const
     2419class BoundaryTriangleSet * Tesselation::FindClosestTriangleToVector(const Vector &x, const LinkedCell_deprecated* LC) const
    24202420{
    24212421  Info FunctionInfo(__func__);
     
    24522452 * Basically calls Tesselation::GetDistanceToSurface() and checks the sign of the return value.
    24532453 * @param point of which to check the position
    2454  * @param *LC LinkedCell structure
     2454 * @param *LC LinkedCell_deprecated structure
    24552455 *
    24562456 * @return true if the point is inside the Tesselation structure, false otherwise
    24572457 */
    2458 bool Tesselation::IsInnerPoint(const Vector &Point, const LinkedCell* const LC) const
     2458bool Tesselation::IsInnerPoint(const Vector &Point, const LinkedCell_deprecated* const LC) const
    24592459{
    24602460  Info FunctionInfo(__func__);
     
    24792479 *
    24802480 * @param point of which to check the position
    2481  * @param *LC LinkedCell structure
     2481 * @param *LC LinkedCell_deprecated structure
    24822482 *
    24832483 * @return >0 if outside, ==0 if on surface, <0 if inside
     
    25402540 * \return distance squared to closest point on surface
    25412541 */
    2542 double Tesselation::GetDistanceToSurface(const Vector &Point, const LinkedCell* const LC) const
     2542double Tesselation::GetDistanceToSurface(const Vector &Point, const LinkedCell_deprecated* const LC) const
    25432543{
    25442544  Info FunctionInfo(__func__);
     
    25552555 * \return distance squared to closest point on surface
    25562556 */
    2557 BoundaryTriangleSet * Tesselation::GetClosestTriangleOnSurface(const Vector &Point, const LinkedCell* const LC) const
     2557BoundaryTriangleSet * Tesselation::GetClosestTriangleOnSurface(const Vector &Point, const LinkedCell_deprecated* const LC) const
    25582558{
    25592559  Info FunctionInfo(__func__);
     
    35453545 * \param *LC Linked Cell structure to find nearest point
    35463546 */
    3547 void Tesselation::AddBoundaryPointByDegeneratedTriangle(class TesselPoint *point, LinkedCell *LC)
     3547void Tesselation::AddBoundaryPointByDegeneratedTriangle(class TesselPoint *point, LinkedCell_deprecated *LC)
    35483548{
    35493549  Info FunctionInfo(__func__);
Note: See TracChangeset for help on using the changeset viewer.