xref: /haiku/src/apps/icon-o-matic/shape/commands/NudgePointsCommand.h (revision 0e1ba39f0440e200e30b6a648e70c3e8683dc5f7)
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 NUDGE_POINTS_ACTION_H
10 #define NUDGE_POINTS_ACTION_H
11 
12 #include <String.h>
13 
14 #include "TransformCommand.h"
15 
16 class VectorPath;
17 
18 struct control_point;
19 
20 class NudgePointsCommand : public TransformCommand {
21  public:
22 								NudgePointsCommand(VectorPath* path,
23 
24 												   const int32* indices,
25 												   const control_point* points,
26 												   int32 count);
27 
28 	virtual						~NudgePointsCommand();
29 
30 	virtual	status_t			InitCheck();
31 
32  protected:
33 	virtual	status_t			_SetTransformation(BPoint pivot,
34 												   BPoint translation,
35 												   double rotation,
36 												   double xScale,
37 												   double yScale) const;
38 
39 			VectorPath*			fPath;
40 
41 			int32*				fIndices;
42 			control_point*		fPoints;
43 			int32				fCount;
44 };
45 
46 #endif // NUDGE_POINTS_ACTION_H
47