xref: /haiku/src/apps/icon-o-matic/shape/commands/NudgePointsCommand.h (revision 25dc253d6ab28ce204fa4de2d3e7a27d167fc817)
1 /*
2  * Copyright 2006-2007, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 #ifndef NUDGE_POINTS_ACTION_H
9 #define NUDGE_POINTS_ACTION_H
10 
11 
12 #include "IconBuild.h"
13 #include "TransformCommand.h"
14 
15 #include <String.h>
16 
17 
18 _BEGIN_ICON_NAMESPACE
19 	class VectorPath;
20 	struct control_point;
21 _END_ICON_NAMESPACE
22 
23 _USING_ICON_NAMESPACE
24 
25 
26 class NudgePointsCommand : public TransformCommand {
27  public:
28 								NudgePointsCommand(VectorPath* path,
29 
30 												   const int32* indices,
31 												   const control_point* points,
32 												   int32 count);
33 
34 	virtual						~NudgePointsCommand();
35 
36 	virtual	status_t			InitCheck();
37 
38  protected:
39 	virtual	status_t			_SetTransformation(BPoint pivot,
40 												   BPoint translation,
41 												   double rotation,
42 												   double xScale,
43 												   double yScale) const;
44 
45 			VectorPath*			fPath;
46 
47 			int32*				fIndices;
48 			control_point*		fPoints;
49 			int32				fCount;
50 };
51 
52 #endif // NUDGE_POINTS_ACTION_H
53