Changeset b5b01e for src/Actions/ShapeAction
- Timestamp:
- Sep 19, 2013, 8:23:52 PM (11 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:
- 6367dd
- Parents:
- f92ef3
- git-author:
- Frederik Heber <heber@…> (08/19/13 19:04:10)
- git-committer:
- Frederik Heber <heber@…> (09/19/13 20:23:52)
- Location:
- src/Actions/ShapeAction
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ShapeAction/CombineShapesAction.cpp
rf92ef3 rb5b01e 51 51 #include "Action_impl_pre.hpp" 52 52 /** =========== define the function ====================== */ 53 Action ::state_ptr ShapeCombineShapesAction::performCall() {53 ActionState::ptr ShapeCombineShapesAction::performCall() { 54 54 LOG(1, "Combining shapes in ShapeRegistry."); 55 55 … … 88 88 ShapeRegistry::getInstance().addShape(s); 89 89 90 return Action ::state_ptr(new ShapeCombineShapesState(old_name, params));90 return ActionState::ptr(new ShapeCombineShapesState(old_name, params)); 91 91 } 92 92 93 Action ::state_ptr ShapeCombineShapesAction::performUndo(Action::state_ptr _state) {93 ActionState::ptr ShapeCombineShapesAction::performUndo(ActionState::ptr _state) { 94 94 ShapeCombineShapesState *state = assert_cast<ShapeCombineShapesState*>(_state.get()); 95 95 … … 99 99 ShapeRegistry::getInstance().removeShape(state->old_name); 100 100 101 return Action ::state_ptr(_state);101 return ActionState::ptr(_state); 102 102 } 103 103 104 Action ::state_ptr ShapeCombineShapesAction::performRedo(Action::state_ptr _state){104 ActionState::ptr ShapeCombineShapesAction::performRedo(ActionState::ptr _state){ 105 105 ShapeCombineShapesState *state = assert_cast<ShapeCombineShapesState*>(_state.get()); 106 106 … … 134 134 ShapeRegistry::getInstance().addShape(s); 135 135 136 return Action ::state_ptr(_state);136 return ActionState::ptr(_state); 137 137 } 138 138 -
src/Actions/ShapeAction/CreateShapeAction.cpp
rf92ef3 rb5b01e 51 51 #include "Action_impl_pre.hpp" 52 52 /** =========== define the function ====================== */ 53 Action ::state_ptr ShapeCreateShapeAction::performCall() {53 ActionState::ptr ShapeCreateShapeAction::performCall() { 54 54 LOG(1, "Adding shape into ShapeRegistry."); 55 55 … … 65 65 ShapeRegistry::getInstance().addShape(s); 66 66 67 return Action ::state_ptr(new ShapeCreateShapeState(old_name, params));67 return ActionState::ptr(new ShapeCreateShapeState(old_name, params)); 68 68 } 69 69 70 Action ::state_ptr ShapeCreateShapeAction::performUndo(Action::state_ptr _state) {70 ActionState::ptr ShapeCreateShapeAction::performUndo(ActionState::ptr _state) { 71 71 ShapeCreateShapeState *state = assert_cast<ShapeCreateShapeState*>(_state.get()); 72 72 … … 76 76 ShapeRegistry::getInstance().removeShape(state->old_name); 77 77 78 return Action ::state_ptr(_state);78 return ActionState::ptr(_state); 79 79 } 80 80 81 Action ::state_ptr ShapeCreateShapeAction::performRedo(Action::state_ptr _state){81 ActionState::ptr ShapeCreateShapeAction::performRedo(ActionState::ptr _state){ 82 82 ShapeCreateShapeState *state = assert_cast<ShapeCreateShapeState*>(_state.get()); 83 83 … … 93 93 ShapeRegistry::getInstance().addShape(s); 94 94 95 return Action ::state_ptr(_state);95 return ActionState::ptr(_state); 96 96 } 97 97 -
src/Actions/ShapeAction/RemoveShapeAction.cpp
rf92ef3 rb5b01e 51 51 #include "Action_impl_pre.hpp" 52 52 /** =========== define the function ====================== */ 53 Action ::state_ptr ShapeRemoveShapeAction::performCall() {53 ActionState::ptr ShapeRemoveShapeAction::performCall() { 54 54 LOG(1, "Removing shapes from ShapeRegistry."); 55 55 … … 62 62 } 63 63 64 return Action ::state_ptr(new ShapeRemoveShapeState(old_shapes, params));64 return ActionState::ptr(new ShapeRemoveShapeState(old_shapes, params)); 65 65 } 66 66 67 Action ::state_ptr ShapeRemoveShapeAction::performUndo(Action::state_ptr _state) {67 ActionState::ptr ShapeRemoveShapeAction::performUndo(ActionState::ptr _state) { 68 68 ShapeRemoveShapeState *state = assert_cast<ShapeRemoveShapeState*>(_state.get()); 69 69 … … 75 75 } 76 76 77 return Action ::state_ptr(_state);77 return ActionState::ptr(_state); 78 78 } 79 79 80 Action ::state_ptr ShapeRemoveShapeAction::performRedo(Action::state_ptr _state){80 ActionState::ptr ShapeRemoveShapeAction::performRedo(ActionState::ptr _state){ 81 81 ShapeRemoveShapeState *state = assert_cast<ShapeRemoveShapeState*>(_state.get()); 82 82 … … 85 85 ShapeRegistry::getInstance().removeShape(selectedShapes[i]->getName()); 86 86 87 return Action ::state_ptr(_state);87 return ActionState::ptr(_state); 88 88 } 89 89 -
src/Actions/ShapeAction/RotateShapeAction.cpp
rf92ef3 rb5b01e 51 51 #include "Action_impl_pre.hpp" 52 52 /** =========== define the function ====================== */ 53 Action ::state_ptr ShapeRotateShapeAction::performCall() {53 ActionState::ptr ShapeRotateShapeAction::performCall() { 54 54 LOG(1, "Translating shapes in ShapeRegistry."); 55 55 … … 72 72 } 73 73 74 return Action ::state_ptr(new ShapeRotateShapeState(old_shapes, params));74 return ActionState::ptr(new ShapeRotateShapeState(old_shapes, params)); 75 75 } 76 76 77 Action ::state_ptr ShapeRotateShapeAction::performUndo(Action::state_ptr _state) {77 ActionState::ptr ShapeRotateShapeAction::performUndo(ActionState::ptr _state) { 78 78 ShapeRotateShapeState *state = assert_cast<ShapeRotateShapeState*>(_state.get()); 79 79 … … 85 85 } 86 86 87 return Action ::state_ptr(_state);87 return ActionState::ptr(_state); 88 88 } 89 89 90 Action ::state_ptr ShapeRotateShapeAction::performRedo(Action::state_ptr _state){90 ActionState::ptr ShapeRotateShapeAction::performRedo(ActionState::ptr _state){ 91 91 ShapeRotateShapeState *state = assert_cast<ShapeRotateShapeState*>(_state.get()); 92 92 … … 106 106 } 107 107 108 return Action ::state_ptr(_state);108 return ActionState::ptr(_state); 109 109 } 110 110 -
src/Actions/ShapeAction/StretchShapeAction.cpp
rf92ef3 rb5b01e 51 51 #include "Action_impl_pre.hpp" 52 52 /** =========== define the function ====================== */ 53 Action ::state_ptr ShapeStretchShapeAction::performCall() {53 ActionState::ptr ShapeStretchShapeAction::performCall() { 54 54 LOG(1, "Translating shapes in ShapeRegistry."); 55 55 … … 72 72 } 73 73 74 return Action ::state_ptr(new ShapeStretchShapeState(old_shapes, params));74 return ActionState::ptr(new ShapeStretchShapeState(old_shapes, params)); 75 75 } 76 76 77 Action ::state_ptr ShapeStretchShapeAction::performUndo(Action::state_ptr _state) {77 ActionState::ptr ShapeStretchShapeAction::performUndo(ActionState::ptr _state) { 78 78 ShapeStretchShapeState *state = assert_cast<ShapeStretchShapeState*>(_state.get()); 79 79 … … 85 85 } 86 86 87 return Action ::state_ptr(_state);87 return ActionState::ptr(_state); 88 88 } 89 89 90 Action ::state_ptr ShapeStretchShapeAction::performRedo(Action::state_ptr _state){90 ActionState::ptr ShapeStretchShapeAction::performRedo(ActionState::ptr _state){ 91 91 ShapeStretchShapeState *state = assert_cast<ShapeStretchShapeState*>(_state.get()); 92 92 … … 106 106 } 107 107 108 return Action ::state_ptr(_state);108 return ActionState::ptr(_state); 109 109 } 110 110 -
src/Actions/ShapeAction/TranslateShapeAction.cpp
rf92ef3 rb5b01e 51 51 #include "Action_impl_pre.hpp" 52 52 /** =========== define the function ====================== */ 53 Action ::state_ptr ShapeTranslateShapeAction::performCall() {53 ActionState::ptr ShapeTranslateShapeAction::performCall() { 54 54 LOG(1, "Translating shapes in ShapeRegistry."); 55 55 … … 68 68 } 69 69 70 return Action ::state_ptr(new ShapeTranslateShapeState(old_shapes, params));70 return ActionState::ptr(new ShapeTranslateShapeState(old_shapes, params)); 71 71 } 72 72 73 Action ::state_ptr ShapeTranslateShapeAction::performUndo(Action::state_ptr _state) {73 ActionState::ptr ShapeTranslateShapeAction::performUndo(ActionState::ptr _state) { 74 74 ShapeTranslateShapeState *state = assert_cast<ShapeTranslateShapeState*>(_state.get()); 75 75 … … 81 81 } 82 82 83 return Action ::state_ptr(_state);83 return ActionState::ptr(_state); 84 84 } 85 85 86 Action ::state_ptr ShapeTranslateShapeAction::performRedo(Action::state_ptr _state){86 ActionState::ptr ShapeTranslateShapeAction::performRedo(ActionState::ptr _state){ 87 87 ShapeTranslateShapeState *state = assert_cast<ShapeTranslateShapeState*>(_state.get()); 88 88 … … 98 98 } 99 99 100 return Action ::state_ptr(_state);100 return ActionState::ptr(_state); 101 101 } 102 102
Note:
See TracChangeset
for help on using the changeset viewer.