Action_Thermostats
Adding_MD_integration_tests
Adding_StructOpt_integration_tests
AutomationFragmentation_failures
Candidate_v1.6.1
ChemicalSpaceEvaluator
Enhanced_StructuralOptimization
Enhanced_StructuralOptimization_continued
Exclude_Hydrogens_annealWithBondGraph
Fix_Verbose_Codepatterns
ForceAnnealing_with_BondGraph
ForceAnnealing_with_BondGraph_continued
ForceAnnealing_with_BondGraph_continued_betteresults
ForceAnnealing_with_BondGraph_contraction-expansion
Gui_displays_atomic_force_velocity
JobMarket_RobustOnKillsSegFaults
JobMarket_StableWorkerPool
PythonUI_with_named_parameters
Recreated_GuiChecks
StoppableMakroAction
TremoloParser_IncreasedPrecision
Last change
on this file since 3c9ac3 was f79d65, checked in by Frederik Heber <frederik.heber@…>, 8 years ago |
Vector(s) are now stored as strings in Querys intermediately.
- they get evaluated first after being stored in a Parameter/Value on request
via get().
- Needed to change all Vector(s)..Query's of all UIs and also the general base
classes inside Dialog.
- QtQueryList need to be specialized in order to allow a QtQueryList<Vector>
to actually store a vector of strings.
- we may use setAsString() in order to set the Parameter thankfully.
- TESTS: All regression tests on Geometry Actions are now working. Removed
XFAIL from Options/Session test that use Python, i.e. the ones we marked
four commits ago.
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[0286bc] | 1 | /*
|
---|
| 2 | * Values.hpp
|
---|
| 3 | *
|
---|
| 4 | * Created on: Jun 7, 2010
|
---|
| 5 | * Author: heber
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 | #ifndef VALUES_HPP_
|
---|
| 9 | #define VALUES_HPP_
|
---|
| 10 |
|
---|
[56f73b] | 11 | // include config.h
|
---|
| 12 | #ifdef HAVE_CONFIG_H
|
---|
| 13 | #include <config.h>
|
---|
| 14 | #endif
|
---|
| 15 |
|
---|
[06aedc] | 16 | #include "LinearAlgebra/defs.hpp"
|
---|
[56f73b] | 17 |
|
---|
[33e801] | 18 | #include <string>
|
---|
| 19 |
|
---|
[528b3e] | 20 | class Box;
|
---|
| 21 | class BoxVector;
|
---|
[7d9416] | 22 | class RealSpaceMatrix;
|
---|
[528b3e] | 23 | class Vector;
|
---|
| 24 |
|
---|
| 25 | /** This is just a temporary container for values parsed from the command line.
|
---|
| 26 | * I.e. this is only used within CommandLineParser, where VectorType and alikes
|
---|
| 27 | * are registered as VectorValue and lateron inside the CommandLineQuery placed
|
---|
| 28 | * into the real vector.
|
---|
[f79d65] | 29 | *
|
---|
| 30 | * We use this abstraction also for Geometry Objects, i.e. string names
|
---|
| 31 | * referencing vectors in the GeomtryRegistry.
|
---|
[528b3e] | 32 | */
|
---|
[0286bc] | 33 | struct VectorValue
|
---|
| 34 | {
|
---|
[f79d65] | 35 | std::string vectorstring;
|
---|
[528b3e] | 36 |
|
---|
| 37 | Vector toVector() const;
|
---|
| 38 | BoxVector toBoxVector(Box &_box) const;
|
---|
[0286bc] | 39 | };
|
---|
| 40 |
|
---|
[528b3e] | 41 | /** This is just a temporary container for values parsed from the command line.
|
---|
| 42 | * I.e. this is only used within CommandLineParser, where BoxType is registered
|
---|
| 43 | * as BoxValue and lateron inside the CommandLineQuery placed into the real Box.
|
---|
| 44 | */
|
---|
[7d9416] | 45 | struct RealSpaceMatrixValue
|
---|
[0286bc] | 46 | {
|
---|
[528b3e] | 47 | double matrix[(NDIM*(NDIM+1))/2];
|
---|
| 48 |
|
---|
[7d9416] | 49 | RealSpaceMatrix toRealSpaceMatrix() const;
|
---|
[0286bc] | 50 | };
|
---|
| 51 |
|
---|
| 52 | #endif /* VALUES_HPP_ */
|
---|
[33e801] | 53 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.