lib/ctioga2/graphics/coordinates.rb in ctioga2-0.0 vs lib/ctioga2/graphics/coordinates.rb in ctioga2-0.1
- old
+ new
@@ -15,22 +15,39 @@
require 'ctioga2/log'
module CTioga2
- Version::register_svn_info('$Revision: 2 $', '$Date: 2009-04-25 14:03:30 +0200 (Sat, 25 Apr 2009) $')
+ Version::register_svn_info('$Revision: 177 $', '$Date: 2010-10-25 13:22:39 +0200 (Mon, 25 Oct 2010) $')
module Graphics
# Deals with transforming the coordinates of all datasets
#
- # TODO:
+ # \todo
# * offsets
# * scales
# * x/y log
# * non-linear transformations ?
# * the possibility to provide locations using this.
# * conversion of datasets.
+ #
+ # \todo Shouldn't this facility be axis-local ? Non-linear
+ # transformations definitely belong there as well (and that would
+ # be almost trivial to write !).
+ #
+ # @todo For now, this is a mess: these things completely mess up
+ # the data processing... This is a complex problem:
+ #
+ # * if the Dataset are modified in place, this is a nightmare for
+ # data processing
+ #
+ # * on the other hand, if they are not modified in place, this
+ # means that things that work on data sets and show things on
+ # the plot (think TangentPrimitive, for instance) will have to
+ # do additional things to get the target coordinates. This is
+ # probably the best way to go, though... This would need some
+ # functions to work directly on XY coordinates.
class CoordinateTransforms
# A scaling factor for coordinates:
attr_accessor :x_scale, :y_scale