Changeset 34c43a for src/tesselation.hpp


Ignore:
Timestamp:
Mar 1, 2011, 10:16:38 AM (14 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:
caa06ef
Parents:
ba5215
git-author:
Frederik Heber <heber@…> (02/21/11 18:02:41)
git-committer:
Frederik Heber <heber@…> (03/01/11 10:16:38)
Message:

Bigger change: Replaced PointCloud by PointCloudAdaptor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tesselation.hpp

    rba5215 r34c43a  
    2626#include <stack>
    2727
     28#include "atom_particleinfo.hpp"
    2829#include "BoundaryMaps.hpp"
    2930#include "BoundaryPointSet.hpp"
    30 #include "PointCloud.hpp"
    31 #include "TesselPoint.hpp"
    32 #include "atom_particleinfo.hpp"
    3331#include "Helpers/helpers.hpp"
    3432#include "LinearAlgebra/Vector.hpp"
     33#include "TesselPoint.hpp"
    3534
    3635
     
    4140class BoundaryTriangleSet;
    4241class CandidateForTesselation;
     42class IPointCloud;
    4343class LinkedCell;
     44class Plane;
    4445class Tesselation;
    45 class Plane;
    4646
    4747/********************************************** definitions *********************************/
     
    6363// =========================================================== class TESSELATION ===========================================
    6464
    65 /** Contains the envelope to a PointCloud.
     65/** Is iterable container of TesselPoints.
    6666 */
    67 class Tesselation : public PointCloud {
     67class Tesselation {
    6868  public:
    6969
     
    9797
    9898    // convex envelope
    99     void TesselateOnBoundary(const PointCloud * const cloud);
     99    void TesselateOnBoundary(IPointCloud & cloud);
    100100    void GuessStartingTriangle();
    101     bool InsertStraddlingPoints(const PointCloud *cloud, const LinkedCell *LC);
     101    bool InsertStraddlingPoints(IPointCloud & cloud, const LinkedCell *LC);
    102102    double RemovePointFromTesselatedSurface(class BoundaryPointSet *point);
    103103    class BoundaryLineSet * FlipBaseline(class BoundaryLineSet *Base);
     
    134134
    135135    // store envelope in file
    136     void Output(const char *filename, const PointCloud * const cloud);
     136    void Output(const char *filename, IPointCloud & cloud);
    137137
    138138    PointMap PointsOnBoundary;
     
    146146    typedef PointMap::iterator iterator;
    147147    typedef PointMap::const_iterator const_iterator;
    148     TesselPoint * getValue(const_iterator &rhs) const;
    149     TesselPoint * getValue(iterator &rhs) const;
    150148    iterator begin() { return PointsOnBoundary.begin(); }
    151149    const_iterator begin() const { return PointsOnBoundary.begin(); }
    152150    iterator end() { return PointsOnBoundary.end(); }
    153151    const_iterator end() const { return PointsOnBoundary.end(); }
    154     // PointCloud implementation for PointsOnBoundary
    155     const char * const GetName() const;
    156     Vector *GetCenter() const;
    157     TesselPoint *GetPoint() const;
    158     int GetMaxId() const;
    159     void GoToNext() const;
    160     void GoToFirst() const;
    161     bool IsEmpty() const;
    162     bool IsEnd() const;
    163152
    164153    class BoundaryPointSet *BPS[2];
     
    179168};
    180169
    181 
    182170#endif /* TESSELATION_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.