Changeset 22c44bf for src


Ignore:
Timestamp:
Aug 9, 2010, 3:03:05 PM (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:
c7f5c2
Parents:
34c338
Message:

Changed RotateAroundOriginByAngleAction from acting on molecules to acting on selected atoms.

Location:
src/Actions
Files:
1 added
1 deleted
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • src/Actions/AtomAction/RotateAroundOriginByAngleAction.hpp

    r34c338 r22c44bf  
    1111#include "Actions/Action.hpp"
    1212
    13 class MoleculeListClass;
    1413class Vector;
    1514
    16 void MoleculeRotateOrigin(Vector &Axis);
     15void AtomRotateOrigin(Vector &Axis);
    1716
    18 class MoleculeRotateAroundOriginByAngleAction : public Action {
    19   friend void MoleculeRotateAroundOriginByAngle(const Vector &Axis, double angle);
     17class AtomRotateAroundOriginByAngleAction : public Action {
     18  friend void AtomRotateAroundOriginByAngle(const Vector &Axis, double angle);
    2019
    2120public:
    22   MoleculeRotateAroundOriginByAngleAction();
    23   virtual ~MoleculeRotateAroundOriginByAngleAction();
     21  AtomRotateAroundOriginByAngleAction();
     22  virtual ~AtomRotateAroundOriginByAngleAction();
    2423
    2524  bool canUndo();
  • src/Actions/AtomAction/TranslateAction.hpp

    r34c338 r22c44bf  
    1111#include "Actions/Action.hpp"
    1212#include "LinearAlgebra/Vector.hpp"
    13 
    14 class MoleculeListClass;
    1513
    1614void AtomTranslate(Vector &x, bool periodic);
  • src/Actions/Makefile.am

    r34c338 r22c44bf  
    5151  AtomAction/ChangeElementAction.cpp \
    5252  AtomAction/RemoveAction.cpp \
     53  AtomAction/RotateAroundOriginByAngleAction.cpp \
    5354  AtomAction/TranslateAction.cpp
    5455ATOMACTIONHEADER = \
     
    5657  AtomAction/ChangeElementAction.hpp \
    5758  AtomAction/RemoveAction.cpp \
     59  AtomAction/RotateAroundOriginByAngleAction.hpp \
    5860  AtomAction/TranslateAction.hpp
    5961
     
    8789  MoleculeAction/FillWithMoleculeAction.cpp \
    8890  MoleculeAction/LinearInterpolationofTrajectoriesAction.cpp \
    89   MoleculeAction/RotateAroundOriginByAngleAction.cpp \
    9091  MoleculeAction/RotateAroundSelfByAngleAction.cpp \
    9192  MoleculeAction/RotateToPrincipalAxisSystemAction.cpp \
     
    100101  MoleculeAction/FillWithMoleculeAction.hpp \
    101102  MoleculeAction/LinearInterpolationofTrajectoriesAction.hpp \
    102   MoleculeAction/RotateAroundOriginByAngleAction.hpp \
    103103  MoleculeAction/RotateAroundSelfByAngleAction.hpp \
    104104  MoleculeAction/RotateToPrincipalAxisSystemAction.hpp \
  • src/Actions/MapOfActions.cpp

    r34c338 r22c44bf  
    4242#include "Actions/AtomAction/ChangeElementAction.hpp"
    4343#include "Actions/AtomAction/RemoveAction.hpp"
     44#include "Actions/AtomAction/RotateAroundOriginByAngleAction.hpp"
    4445#include "Actions/AtomAction/TranslateAction.hpp"
    4546#include "Actions/CmdAction/BondLengthTableAction.hpp"
     
    5657#include "Actions/MoleculeAction/FillWithMoleculeAction.hpp"
    5758#include "Actions/MoleculeAction/LinearInterpolationofTrajectoriesAction.hpp"
    58 #include "Actions/MoleculeAction/RotateAroundOriginByAngleAction.hpp"
    5959#include "Actions/MoleculeAction/RotateAroundSelfByAngleAction.hpp"
    6060#include "Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.hpp"
     
    213213  DescriptionMap["remove-sphere"] = "remove sphere of atoms of around a specified atom";
    214214  DescriptionMap["repeat-box"] = "create periodic copies of the simulation box per axis";
    215   DescriptionMap["rotate-origin"] = "rotates molecules by a specific angle around origin";
     215  DescriptionMap["rotate-origin"] = "rotate selected atoms by a specific angle around origin";
    216216  DescriptionMap["rotate-self"] = "rotates molecules by a specific angle around own center of gravity";
    217217  DescriptionMap["rotate-to-pas"] = "calculate the principal axis system of the specified molecule and rotate specified axis to align with main axis";
     
    835835  new AtomChangeElementAction();
    836836  new AtomRemoveAction();
     837  new AtomRotateAroundOriginByAngleAction();
    837838  new AtomTranslateAction();
    838839
     
    852853  new MoleculeFillWithMoleculeAction();
    853854  new MoleculeLinearInterpolationofTrajectoriesAction();
    854   new MoleculeRotateAroundOriginByAngleAction();
    855855  new MoleculeRotateAroundSelfByAngleAction();
    856856  new MoleculeRotateToPrincipalAxisSystemAction();
Note: See TracChangeset for help on using the changeset viewer.