xref: /haiku/src/apps/icon-o-matic/transformable/CanvasTransformBox.h (revision 83b1a68c52ba3e0e8796282759f694b7fdddf06d)
1 /*
2  * Copyright 2006, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 
9 #ifndef CANVAS_TRANSFORM_BOX_H
10 #define CANVAS_TRANSFORM_BOX_H
11 
12 #include "TransformBox.h"
13 
14 class CanvasView;
15 
16 class CanvasTransformBox : public TransformBox {
17  public:
18 								CanvasTransformBox(CanvasView* view);
19 	virtual						~CanvasTransformBox();
20 
21 	// TransformBox interface
22 	virtual	void				TransformFromCanvas(BPoint& point) const;
23 	virtual	void				TransformToCanvas(BPoint& point) const;
24 	virtual	float				ZoomLevel() const;
25 	virtual	double				ViewSpaceRotation() const;
26 
27  private:
28 			CanvasView*			fCanvasView;
29 			Transformable		fParentTransform;
30 };
31 
32 #endif // TRANSFORM_SHAPES_BOX_H
33 
34