Commit graph

43 commits

Author SHA1 Message Date
Erik Ogenvik
eb2bb200e5 Clean up and remove unused structs. 2017-07-25 23:40:39 +02:00
Erik Ogenvik
7aaa9b9ba7 Optimize includes. 2017-03-19 21:36:52 +01:00
Olek Wojnar
7f9ff2246d Remove CVS $Id tags
The legacy tags are causing build issues in Debian.
2013-07-15 20:31:59 +02:00
Alistair Riddoch
a5acfb9a82 Add abstract destructor to base class 2012-08-06 23:54:41 +01:00
Alistair Riddoch
bc60320434 Start workong on an outline algorithm for Course 2012-05-02 15:32:38 +01:00
Alistair Riddoch
9339bb91db More use of using for concise code 2012-05-02 15:32:14 +01:00
Alistair Riddoch
0275a6ad4c Avoid calling potentially expensive calls in loop 2012-05-02 15:14:51 +01:00
Alistair Riddoch
4f6885bff6 Make code easier to read with "using" 2012-05-02 11:13:16 +01:00
Alistair Riddoch
ff73a63129 Add outline method to the Shape interface 2012-05-01 20:54:00 +01:00
Alistair Riddoch
c0929e42c7 Fill out class used for courses of paths and rivers
This class implements the wfmath shape concept, but does so with
a different set of template args, so can only be used by other templates
which use the concept as a partial specialization. This is not
legal in C++ 98 so will only really be possible once we have a solid
C++ 11 compiler.
2012-04-26 21:00:23 +01:00
Alistair Riddoch
59975387da Add conversion support for Shape<Point> and test 2012-04-10 10:32:14 +01:00
Alistair Riddoch
9e0eb67d78 Fix a crash bug in Shape<AxisBox> conversion, and test it 2012-04-10 10:19:48 +01:00
Alistair Riddoch
b6bb2ca23f Mark sections 2012-04-08 20:03:53 +01:00
Alistair Riddoch
853811d36d Implement and test RotBox Shape conversion 2012-04-05 20:43:20 +01:00
Alistair Riddoch
a79f17a2c0 Rename 2D ball as "circle", and implement conversions 2012-04-05 20:30:53 +01:00
Alistair Riddoch
2d7bf75bfc Add missing return code change 2012-04-05 19:54:50 +01:00
Alistair Riddoch
a11c90bbdd Add proper support for 2d axisbox 2012-04-05 19:36:27 +01:00
Alistair Riddoch
ef33478e91 Change the way errors are detected when converting from Atlas
WFMath can throw in a number of situations, and these exceptions
shouldn't make it to the Python wrappers.
2012-04-02 14:29:37 +01:00
Alistair Riddoch
4eb0af4359 Inline constructors, and use generic templates where possible 2012-04-01 21:18:11 +01:00
Alistair Riddoch
cfef293632 Add specialisation for Point<2> 2012-03-31 12:38:25 +01:00
Alistair Riddoch
c8e57d01a6 Re-work all the shape code to be clearer 2012-03-31 02:18:33 +01:00
Alistair Riddoch
bff526534c Add a proper specialisation of getType for Line 2012-03-27 17:20:19 +01:00
Alistair Riddoch
81fc1b666a Remove unnecessary constructor arg 2012-03-25 04:35:16 +01:00
Alistair Riddoch
625569a0d7 Support WFMath::Line in the virtual API 2012-03-25 04:22:14 +01:00
Alistair Riddoch
0218443109 Add support for WFMath::Line 2012-03-24 00:50:37 +00:00
Alistair Riddoch
12f5af4819 size_t for indices 2012-01-30 13:23:18 +00:00
Alistair Riddoch
93631cc61d Simplify the way Shape templates convert from Atlas 2011-12-23 11:28:01 +00:00
Alistair Riddoch
defc48d663 Use the C++ standard way to get efficient math 2011-04-27 19:35:13 +01:00
Alistair Riddoch
d9b5670ec1 Merge branch 'master' of github.com:worldforge/cyphesis 2011-04-27 11:22:03 +01:00
Alistair Riddoch
626478ac7b Use WFMath::CoordType to avoid conversions 2011-04-27 11:09:07 +01:00
Alistair Riddoch
056ff0588f Add template instantiations that are needed with O2 2011-04-14 19:50:52 +01:00
Alistair Riddoch
2aa42234eb Fix the specialisation of getType() to be for Polygon 2011-02-22 21:28:14 +00:00
Alistair Riddoch
347b52b274 Add methods to get the bounding corners of a shape 2011-02-22 19:22:51 +00:00
Alistair Riddoch
2048504f86 Add new method exposing generating a 2D bbox footprint of a shape 2011-02-21 19:32:03 +00:00
Alistair Riddoch
211be361bb Rename getArea to area, as it feels cleaner 2011-02-21 19:20:05 +00:00
Alistair Riddoch
bf234b2fbb Add Shape method to determine area 2011-02-21 12:43:01 +00:00
Alistair Riddoch
9f467ca6de Catch conversion exceptions when reading shapes from Atlas 2011-02-20 21:22:38 +00:00
Alistair Riddoch
ca6f594b42 Fill in calls so that Shapes are now populated from Atlas data 2011-02-20 18:22:01 +00:00
Alistair Riddoch
f3b6bdf67c Add implementation of polygon scaling 2011-02-20 18:14:35 +00:00
Alistair Riddoch
08c6ed81a3 Add support for sending a representation of a shape to ostream 2011-02-20 16:03:39 +00:00
Alistair Riddoch
2af61b92cc Implement more shape stuff 2011-01-14 20:44:49 +00:00
Alistair Riddoch
9a7e127633 Try out WFMath style shape template 2011-01-13 12:51:29 +00:00
Alistair Riddoch
043d996752 Add basic interface for handling shapes in a way more friendly to Python 2011-01-12 18:35:16 +00:00