Commit Graph

45 Commits

Author SHA1 Message Date
Mathew Sutcliffe
e5afc2c627 made derived() private instead of protected in CRTP 2013-04-30 20:12:47 +01:00
Klaus Basan
b84df5fc21 Merged with changes of MS, some similar bug fixes done in parallel 2013-04-30 02:34:15 +02:00
Klaus Basan
8f5d9263fd Fixed all issues detected by the test cases under MinGW - such as usage of abs() -> changed to qAbs(), rounding issues detected during calculations, and changed streaming methods with qDebug() (QDebug vs &QDebug issue). 2013-04-30 01:43:14 +02:00
Mathew Sutcliffe
a05b85135c replaced "clone" with "derived" in CRTP (more usual, more flexible, more clear in its intent, and avoids copying the object twice on compilers that don't optimise return by value) 2013-04-30 00:09:32 +01:00
Mathew Sutcliffe
ba70a150e0 fix for g++ 4.5.2: this is the correct way to overload @operator<<@ for QDebug and CLogMessage because they are flyweight objects 2013-04-29 23:45:30 +01:00
Mathew Sutcliffe
177efba563 including qmath.h instead of math.h fixes problem with M_PI in MSVC 2013-04-29 23:32:13 +01:00
Mathew Sutcliffe
715e6e8340 fixed CMath::PI2() 2013-04-29 23:28:41 +01:00
Klaus Basan
c6426a0759 Move Math constants into class (to be consistent with other constants), tested against minGW / gcc 4.7.2 and fixed various issues (mainly initializer lists, unused variables). BlackMisc compiles now in MinGW, but still issues (especially with qDebug() friend methods) 2013-04-29 16:00:41 +02:00
Klaus Basan
7c7ca2dfae Fixed some issues with MinGW gcc, e.g. added some includes, removed nullptr, changed some initializer lists (prevents warnings) 2013-04-29 00:15:32 +02:00
Klaus Basan
c97ddc4e3b Polymorphic clone for CRT Pattern in templates (basically a static_cast for concrete initializations of template class) 2013-04-27 17:18:32 +02:00
Klaus Basan
b257862aac Before changing to polymorphic clone 2013-04-27 15:46:22 +02:00
Klaus Basan
c5b9c48cd6 Changed interpolator (preliminary) to work with PQs and new classes, added stubs for unit tests in BlackCore 2013-04-27 02:09:42 +02:00
Klaus Basan
5eac9be7d5 Unit tests for acceleration and more for vector 2013-04-25 20:21:04 +02:00
Klaus Basan
2d8720c6ae Added PQ acceleration and units for mile / statute mile 2013-04-25 12:06:54 +02:00
Klaus Basan
a31e405b6b Implemented commutative multiplications as friends in the templates, further test cases (unit tests), fixed Doxygen attributes, renamed test classes 2013-04-25 01:56:18 +02:00
Klaus Basan
919913dd95 merge with master 2013-04-24 13:31:19 +02:00
Klaus Basan
472521f281 Further details on classes like epsilon compare, further unit tests. 2013-04-24 01:59:17 +02:00
Klaus Basan
bd53371de4 Fixed some issue with scalar multiplications (explicit) and continued with UNIT tests 2013-04-21 01:13:23 +02:00
Klaus Basan
f4affe55ef Had to withdraw 3Vector3D, since they store values internally as float (idiotic design). Hence qreal will be dropped. Started with Unit tests. 2013-04-20 17:46:46 +02:00
Klaus Basan
7b0468d300 Completed transformation class and created samples for this class 2013-04-20 01:49:50 +02:00
Klaus Basan
f98ec80680 Geodetic conversions transfered to Transformer class 2013-04-19 19:17:48 +02:00
Klaus Basan
8ffa443a69 Revised avionics (stringifier) and matrix operations 2013-04-19 14:36:30 +02:00
Klaus Basan
8121babe77 Initial structure for refactoring, some conversions still missing. Especially required further test cases. 2013-04-19 00:19:41 +02:00
Mathew Sutcliffe
de1d46aa73 #31 CApplicationContext: fixed setDebug and getDebug (thanks Roland) 2013-04-18 23:05:28 +01:00
Klaus Basan
5bf308c54b Initial refactoring of vector and matrix classes 2013-04-18 01:04:21 +02:00
Mathew Sutcliffe
9916419678 #31 Squashed merge of commits relating to the plugin system and IContext redesign, from the 'interconnect' branch. 2013-04-17 01:26:54 +01:00
Klaus Basan
5f678dfe28 String-ifier for streams as preparation for the GeoClasses 2013-04-12 19:21:50 +02:00
Klaus Basan
42712a2baf Fixed Doxygen comments 2013-04-11 00:28:35 +02:00
Klaus Basan
e196a5585f Added legal header, changed include guards to contain namespace prefix e.g BLACKMISC_XYZ_H 2013-04-10 00:50:25 +02:00
Mathew Sutcliffe
e3a8ad2987 wildcards for qmake variables SOURCES and HEADERS 2013-04-09 18:05:52 +01:00
Klaus Basan
9a87731944 Avionics classes for Transponder, ADF, changed namespace to 2ndlevel 2013-04-09 02:00:38 +02:00
Klaus Basan
eb102372f1 Individual (per object) conversion as well as per unit (class) now possible, this is required for sexagesimal conversion (degrees) and will be required for geo-positions. Further classed for avionics. 2013-04-05 02:29:52 +02:00
Klaus Basan
943872ff67 Changed order of samples directory, started with aviation classes. 2013-04-01 21:53:35 +02:00
Roland Winklmeier
d61f8845da #12 Fixed linker error and Mac build 2013-03-31 14:46:08 +02:00
Klaus Basan
f77258343d CAngleUnit::sexagesimalDeg(), moved conversion to virtual method in CMeasurmenetUnit, made string conversion virtual and also moved it to CMeasurmenetUnit (=>individual formatters). Time unit added. 2013-03-31 00:35:25 +01:00
gmt2001
876912e5a0 Added missing define to blackmisc.pro 2013-03-30 13:43:21 -07:00
Roland Winklmeier
585c4db578 #12 Fixing linux build 2013-03-30 17:41:04 +01:00
Klaus Basan
be34b78425 Renamed distamce to SI conform name length: CDistance->CLength
Started with aviation classes
2013-03-27 18:09:39 +01:00
Klaus Basan
5677cd41e3 Changed PQ to template, removed unit default values, checked unit tests 2013-03-27 12:03:16 +01:00
Klaus Basan
b3439ea3e4 Virtual destructor for polymorphic classes, const correctness, removed virtual method call in constructor 2013-03-24 17:15:08 +01:00
Klaus Basan
3b99954bdc Unit tests for temperature, virtual method for value conversion 2013-03-22 23:02:25 +01:00
Klaus Basan
525910c7a3 Moved PQs from blackcore to blackmisc, added header for namespace, mainpage.dox for Doxygen 2013-03-22 16:07:53 +01:00
Roland Winklmeier
f6daa0623e Added qmake project files / standardized #includes 2013-03-16 18:44:46 +01:00
Roland Winklmeier
9b79949eb4 Fixed: bAssert did not quit application 2013-03-11 20:47:44 +01:00
Roland Winklmeier
4e219f14a8 blacklib folder reorganisation 2013-03-11 20:41:29 +01:00