The Trunk: Graphics-ar.91.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Graphics-ar.91.mcz

commits-2
Andreas Raab uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-ar.91.mcz

==================== Summary ====================

Name: Graphics-ar.91
Author: ar
Time: 10 December 2009, 12:34:13 pm
UUID: e8f3a2f6-a705-f547-81c5-ef5a63722e47
Ancestors: Graphics-nice.90

Add double-dispatched point transformation for easier extensibility and compatibility with existing transforms.

=============== Diff against Graphics-nice.90 ===============

Item was added:
+ ----- Method: DisplayTransform>>transformPoint: (in category 'transforming points') -----
+ transformPoint: aPoint
+ "Point transform double dispatch"
+ ^self localPointToGlobal: aPoint!

Item was added:
+ ----- Method: Point>>transformedBy: (in category 'transforming') -----
+ transformedBy: aTransform
+ "Point transform double dispatch"
+ ^aTransform transformPoint: self!

Item was added:
+ ----- Method: MorphicTransform>>transformPoint: (in category 'transformations') -----
+ transformPoint: aPoint
+ "Point transform double dispatch"
+ ^self transform: aPoint!