Action_Thermostats
        Add_AtomRandomPerturbation
        Add_SelectAtomByNameAction
        Adding_Graph_to_ChangeBondActions
        Adding_MD_integration_tests
        Adding_StructOpt_integration_tests
        AutomationFragmentation_failures
        Candidate_v1.6.1
        Candidate_v1.7.0
        ChangeBugEmailaddress
        ChemicalSpaceEvaluator
        EmpiricalPotential_contain_HomologyGraph_documentation
        Enhance_userguide
        Enhanced_StructuralOptimization
        Enhanced_StructuralOptimization_continued
        Example_ManyWaysToTranslateAtom
        Exclude_Hydrogens_annealWithBondGraph
        Fix_Verbose_Codepatterns
        ForceAnnealing_oldresults
        ForceAnnealing_with_BondGraph
        ForceAnnealing_with_BondGraph_continued
        ForceAnnealing_with_BondGraph_continued_betteresults
        ForceAnnealing_with_BondGraph_contraction-expansion
        GeometryObjects
        Gui_displays_atomic_force_velocity
        IndependentFragmentGrids_IntegrationTest
        JobMarket_RobustOnKillsSegFaults
        JobMarket_StableWorkerPool
        PythonUI_with_named_parameters
        QtGui_reactivate_TimeChanged_changes
        Recreated_GuiChecks
        StoppableMakroAction
        TremoloParser_IncreasedPrecision
        TremoloParser_MultipleTimesteps
        stable
      
      
        
          | 
            Last change
 on this file since db1048 was             987145, checked in by Frederik Heber <frederik.heber@…>, 8 years ago           | 
        
        
          | 
             
Added four GeometryActions to convert atom positions into vectors. 
 
- added reverse switch to distance and plane to vector Actions.
 - InputToVector has coordinates to differentiate from position option. This
eases use with CommandLineParser where option names need to be unique.
  
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            1.4 KB
           | 
        
      
      
| Line |   | 
|---|
| 1 | /*
 | 
|---|
| 2 |  * GeometryPlaneToVectorAction.cpp
 | 
|---|
| 3 |  *
 | 
|---|
| 4 |  *  Created on: Mar 28, 2017
 | 
|---|
| 5 |  *      Author: heber
 | 
|---|
| 6 |  */
 | 
|---|
| 7 | 
 | 
|---|
| 8 | // all includes and forward declarations necessary for non-integral types below
 | 
|---|
| 9 | #include "Parameters/Validators/Specific/GeometryNameValidator.hpp"
 | 
|---|
| 10 | 
 | 
|---|
| 11 | // i.e. there is an integer with variable name Z that can be found in
 | 
|---|
| 12 | // ValueStorage by the token "Z" -> first column: int, Z, "Z"
 | 
|---|
| 13 | // "undefine" if no parameters are required, use (NOPARAM_DEFAULT) for each (undefined) default value
 | 
|---|
| 14 | //#define paramtypes (const element *)(BoxVector) TODO: use a validator
 | 
|---|
| 15 | #define paramtypes (std::string)(bool)
 | 
|---|
| 16 | #define paramtokens ("plane-to-vector")("reverse")
 | 
|---|
| 17 | #define paramdescriptions ("name for geometry object for reference as vector")("whether to invert the resulting vector") 
 | 
|---|
| 18 | #define paramreferences (name)(reverse)
 | 
|---|
| 19 | #define paramdefaults (NOPARAM_DEFAULT())(PARAM_DEFAULT(0))
 | 
|---|
| 20 | #define paramvalids \
 | 
|---|
| 21 | (GeometryNameValidator()) \
 | 
|---|
| 22 | (DummyValidator<bool>())
 | 
|---|
| 23 | 
 | 
|---|
| 24 | #define statetypes (Vector)
 | 
|---|
| 25 | #define statereferences (PlaneNormal)
 | 
|---|
| 26 | 
 | 
|---|
| 27 | // some defines for all the names, you may use ACTION, STATE and PARAMS
 | 
|---|
| 28 | #define CATEGORY Geometry
 | 
|---|
| 29 | #define MENUNAME "geometry"
 | 
|---|
| 30 | #define MENUPOSITION 3
 | 
|---|
| 31 | #define ACTIONNAME PlaneToVector
 | 
|---|
| 32 | #define TOKEN "plane-to-vector"
 | 
|---|
| 33 | 
 | 
|---|
| 34 | // finally the information stored in the ActionTrait specialization
 | 
|---|
| 35 | #define DESCRIPTION "stores the plane defined by three selected atom as a named geometry object"
 | 
|---|
| 36 | #undef SHORTFORM
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.