Candidate_v1.6.1
Last change
on this file 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
|
Line | |
---|
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 |
|
---|
11 | // include config.h
|
---|
12 | #ifdef HAVE_CONFIG_H
|
---|
13 | #include <config.h>
|
---|
14 | #endif
|
---|
15 |
|
---|
16 | #include "LinearAlgebra/defs.hpp"
|
---|
17 |
|
---|
18 | #include <string>
|
---|
19 |
|
---|
20 | class Box;
|
---|
21 | class BoxVector;
|
---|
22 | class RealSpaceMatrix;
|
---|
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.
|
---|
29 | *
|
---|
30 | * We use this abstraction also for Geometry Objects, i.e. string names
|
---|
31 | * referencing vectors in the GeomtryRegistry.
|
---|
32 | */
|
---|
33 | struct VectorValue
|
---|
34 | {
|
---|
35 | std::string vectorstring;
|
---|
36 |
|
---|
37 | Vector toVector() const;
|
---|
38 | BoxVector toBoxVector(Box &_box) const;
|
---|
39 | };
|
---|
40 |
|
---|
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 | */
|
---|
45 | struct RealSpaceMatrixValue
|
---|
46 | {
|
---|
47 | double matrix[(NDIM*(NDIM+1))/2];
|
---|
48 |
|
---|
49 | RealSpaceMatrix toRealSpaceMatrix() const;
|
---|
50 | };
|
---|
51 |
|
---|
52 | #endif /* VALUES_HPP_ */
|
---|
53 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.