Changeset ba5215


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:
34c43a
Parents:
fa60dd
git-author:
Frederik Heber <heber@…> (02/21/11 18:00:37)
git-committer:
Frederik Heber <heber@…> (03/01/11 10:16:38)
Message:

Extended BoundaryPointSet by functions to directly access TesselPoint member.

Location:
src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/BoundaryPointSet.cpp

    rfa60dd rba5215  
    9292  LinesCount++;
    9393}
    94 ;
    9594
    96 /** output operator for BoundaryPointSet.
    97  * \param &ost output stream
    98  * \param &a boundary point
    99  */
     95const std::string& BoundaryPointSet::getName() const
     96{
     97  ASSERT(node != NULL, "BoundaryPointSet::getName() - internal node is NULL.");
     98  return node->getName();
     99}
     100
     101const Vector& BoundaryPointSet::getPosition() const
     102{
     103  ASSERT(node != NULL, "BoundaryPointSet::getPosition() - internal node is NULL.");
     104  return node->getPosition();
     105}
     106
     107const int& BoundaryPointSet::getNr() const
     108{
     109  ASSERT(node != NULL, "BoundaryPointSet::getPosition() - internal node is NULL.");
     110  return node->nr;
     111}
     112
     113TesselPoint *BoundaryPointSet::getTesselPoint()
     114{
     115  return node;
     116}
     117
    100118ostream & operator <<(ostream &ost, const BoundaryPointSet &a)
    101119{
    102   ost << "[" << a.Nr << "|" << a.node->getName() << " at " << a.node->getPosition() << "]";
     120  ost << "[" << a.Nr << "|" << a.getName() << " at " << a.getPosition() << "]";
    103121  return ost;
    104122}
    105 ;
     123
  • src/BoundaryPointSet.hpp

    rfa60dd rba5215  
    2222class BoundaryLineSet;
    2323class TesselPoint;
     24class Vector;
    2425
    2526class BoundaryPointSet {
     
    3637    double value;
    3738    int Nr;
     39
     40    /** Getter for \a node's getName().
     41     *
     42     * @return getName() of \a node
     43     */
     44    const std::string& getName() const;
     45
     46    /** Getter for \a node's getPosition().
     47     *
     48     * @return getPosition() of \a node
     49     */
     50    const Vector& getPosition() const;
     51
     52    /** Getter for \a node's nr.
     53     *
     54     * @return nr of \a node
     55     */
     56    const int& getNr() const;
     57
     58    /** Getter for embedded TesselPoint.
     59     *
     60     * @return reference to embedded TesselPoint \a node
     61     */
     62    TesselPoint *getTesselPoint();
    3863};
    3964
     65/** output operator for BoundaryPointSet.
     66 * \param &ost output stream
     67 * \param &a boundary point
     68 */
    4069std::ostream & operator << (std::ostream &ost, const BoundaryPointSet &a);
    4170
  • src/TesselPoint.cpp

    rfa60dd rba5215  
    4343};
    4444
     45TesselPoint * TesselPoint::getTesselPoint()
     46{
     47  return this;
     48}
     49
    4550std::ostream & TesselPoint::operator << (std::ostream &ost) const
    4651{
  • src/TesselPoint.hpp

    rfa60dd rba5215  
    3939  virtual void UpdateSteps();
    4040
     41  /** Getter for this.
     42   *
     43   *  \note this is only present due to BoundaryPointSet, where TesselPoint is
     44   *   only embedded and PointCloud where we have to access this TesselPoint.
     45   *
     46   * @return reference to embedded TesselPoint \a node
     47   */
     48  TesselPoint *getTesselPoint();
     49
    4150  std::ostream & operator << (std::ostream &ost) const;
    4251};
  • src/atom_particleinfo.cpp

    rfa60dd rba5215  
    5656};
    5757
     58const int& ParticleInfo::getNr() const
     59{
     60  return nr;
     61}
     62
    5863ostream & ParticleInfo::operator << (ostream &ost) const
    5964{
  • src/atom_particleinfo.hpp

    rfa60dd rba5215  
    3434  virtual ~ParticleInfo();
    3535
     36  /** Getter for name.
     37   *
     38   * @return name of particle
     39   */
    3640  const std::string& getName() const;
    37   void setName(const std::string&);
     41  /** Getter for nr.
     42   *
     43   * @return number of particle
     44   */
     45  const int& getNr() const;
     46  /** Setter for name.
     47   *
     48   * @param newname new name of particle
     49   */
     50  void setName(const std::string &newname);
    3851
    3952  ostream & operator << (ostream &ost) const;
Note: See TracChangeset for help on using the changeset viewer.