Changeset 22c44bf
- Timestamp:
- Aug 9, 2010, 3:03:05 PM (15 years ago)
- 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
- Files:
-
- 1 added
- 1 deleted
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/AtomAction/RotateAroundOriginByAngleAction.hpp
r34c338 r22c44bf 11 11 #include "Actions/Action.hpp" 12 12 13 class MoleculeListClass;14 13 class Vector; 15 14 16 void MoleculeRotateOrigin(Vector &Axis);15 void AtomRotateOrigin(Vector &Axis); 17 16 18 class MoleculeRotateAroundOriginByAngleAction : public Action {19 friend void MoleculeRotateAroundOriginByAngle(const Vector &Axis, double angle);17 class AtomRotateAroundOriginByAngleAction : public Action { 18 friend void AtomRotateAroundOriginByAngle(const Vector &Axis, double angle); 20 19 21 20 public: 22 MoleculeRotateAroundOriginByAngleAction();23 virtual ~ MoleculeRotateAroundOriginByAngleAction();21 AtomRotateAroundOriginByAngleAction(); 22 virtual ~AtomRotateAroundOriginByAngleAction(); 24 23 25 24 bool canUndo(); -
src/Actions/AtomAction/TranslateAction.hpp
r34c338 r22c44bf 11 11 #include "Actions/Action.hpp" 12 12 #include "LinearAlgebra/Vector.hpp" 13 14 class MoleculeListClass;15 13 16 14 void AtomTranslate(Vector &x, bool periodic); -
src/Actions/Makefile.am
r34c338 r22c44bf 51 51 AtomAction/ChangeElementAction.cpp \ 52 52 AtomAction/RemoveAction.cpp \ 53 AtomAction/RotateAroundOriginByAngleAction.cpp \ 53 54 AtomAction/TranslateAction.cpp 54 55 ATOMACTIONHEADER = \ … … 56 57 AtomAction/ChangeElementAction.hpp \ 57 58 AtomAction/RemoveAction.cpp \ 59 AtomAction/RotateAroundOriginByAngleAction.hpp \ 58 60 AtomAction/TranslateAction.hpp 59 61 … … 87 89 MoleculeAction/FillWithMoleculeAction.cpp \ 88 90 MoleculeAction/LinearInterpolationofTrajectoriesAction.cpp \ 89 MoleculeAction/RotateAroundOriginByAngleAction.cpp \90 91 MoleculeAction/RotateAroundSelfByAngleAction.cpp \ 91 92 MoleculeAction/RotateToPrincipalAxisSystemAction.cpp \ … … 100 101 MoleculeAction/FillWithMoleculeAction.hpp \ 101 102 MoleculeAction/LinearInterpolationofTrajectoriesAction.hpp \ 102 MoleculeAction/RotateAroundOriginByAngleAction.hpp \103 103 MoleculeAction/RotateAroundSelfByAngleAction.hpp \ 104 104 MoleculeAction/RotateToPrincipalAxisSystemAction.hpp \ -
src/Actions/MapOfActions.cpp
r34c338 r22c44bf 42 42 #include "Actions/AtomAction/ChangeElementAction.hpp" 43 43 #include "Actions/AtomAction/RemoveAction.hpp" 44 #include "Actions/AtomAction/RotateAroundOriginByAngleAction.hpp" 44 45 #include "Actions/AtomAction/TranslateAction.hpp" 45 46 #include "Actions/CmdAction/BondLengthTableAction.hpp" … … 56 57 #include "Actions/MoleculeAction/FillWithMoleculeAction.hpp" 57 58 #include "Actions/MoleculeAction/LinearInterpolationofTrajectoriesAction.hpp" 58 #include "Actions/MoleculeAction/RotateAroundOriginByAngleAction.hpp"59 59 #include "Actions/MoleculeAction/RotateAroundSelfByAngleAction.hpp" 60 60 #include "Actions/MoleculeAction/RotateToPrincipalAxisSystemAction.hpp" … … 213 213 DescriptionMap["remove-sphere"] = "remove sphere of atoms of around a specified atom"; 214 214 DescriptionMap["repeat-box"] = "create periodic copies of the simulation box per axis"; 215 DescriptionMap["rotate-origin"] = "rotate s molecules by a specific angle around origin";215 DescriptionMap["rotate-origin"] = "rotate selected atoms by a specific angle around origin"; 216 216 DescriptionMap["rotate-self"] = "rotates molecules by a specific angle around own center of gravity"; 217 217 DescriptionMap["rotate-to-pas"] = "calculate the principal axis system of the specified molecule and rotate specified axis to align with main axis"; … … 835 835 new AtomChangeElementAction(); 836 836 new AtomRemoveAction(); 837 new AtomRotateAroundOriginByAngleAction(); 837 838 new AtomTranslateAction(); 838 839 … … 852 853 new MoleculeFillWithMoleculeAction(); 853 854 new MoleculeLinearInterpolationofTrajectoriesAction(); 854 new MoleculeRotateAroundOriginByAngleAction();855 855 new MoleculeRotateAroundSelfByAngleAction(); 856 856 new MoleculeRotateToPrincipalAxisSystemAction(); -
tests/regression/testsuite-molecules.at
r34c338 r22c44bf 70 70 AT_KEYWORDS([Molecules]) 71 71 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/pre/test.xyz .], 0) 72 AT_CHECK([../../molecuilder -i test.xyz -e ${abs_top_srcdir}/src/ --select-all- molecules --rotate-origin 90. --position "0,0,1"], 0, [stdout], [stderr])72 AT_CHECK([../../molecuilder -i test.xyz -e ${abs_top_srcdir}/src/ --select-all-atoms --rotate-origin 90. --position "0,0,1"], 0, [stdout], [stderr]) 73 73 AT_CHECK([diff test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/post/test-rotated-z90.xyz], 0, [ignore], [ignore]) 74 74 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/pre/test.xyz .], 0) 75 AT_CHECK([../../molecuilder -i test.xyz -e ${abs_top_srcdir}/src/ --select-all- molecules --rotate-origin 180. --position "0,0,1"], 0, [stdout], [stderr])75 AT_CHECK([../../molecuilder -i test.xyz -e ${abs_top_srcdir}/src/ --select-all-atoms --rotate-origin 180. --position "0,0,1"], 0, [stdout], [stderr]) 76 76 AT_CHECK([diff test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/post/test-rotated-z180.xyz], 0, [ignore], [ignore]) 77 77 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/pre/test.xyz .], 0) 78 AT_CHECK([../../molecuilder -i test.xyz -e ${abs_top_srcdir}/src/ --select-all- molecules --rotate-origin 360. --position "0,0,1"], 0, [stdout], [stderr])78 AT_CHECK([../../molecuilder -i test.xyz -e ${abs_top_srcdir}/src/ --select-all-atoms --rotate-origin 360. --position "0,0,1"], 0, [stdout], [stderr]) 79 79 AT_CHECK([diff test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/post/test-rotated-z360.xyz], 0, [ignore], [ignore]) 80 80 AT_CHECK([diff test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/pre/test.xyz], 0, [ignore], [ignore]) 81 81 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/pre/test.xyz .], 0) 82 AT_CHECK([../../molecuilder -i test.xyz -e ${abs_top_srcdir}/src/ --select-all- molecules --rotate-origin 20. --position "1,2,1"], 0, [stdout], [stderr])82 AT_CHECK([../../molecuilder -i test.xyz -e ${abs_top_srcdir}/src/ --select-all-atoms --rotate-origin 20. --position "1,2,1"], 0, [stdout], [stderr]) 83 83 AT_CHECK([diff test.xyz ${abs_top_srcdir}/${AUTOTEST_PATH}/Molecules/9/post/test-rotated-xYz20.xyz], 0, [ignore], [ignore]) 84 84 AT_CLEANUP 85 85 86 # 9. Rotate around self86 # 10. Rotate around self 87 87 AT_SETUP([Molecules - Rotate around self]) 88 88 AT_KEYWORDS([Molecules])
Note:
See TracChangeset
for help on using the changeset viewer.