1 /* 2 * Copyright 2007, Haiku. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 9 #ifndef FLIP_POINTS_COMMAND_H 10 #define FLIP_POINTS_COMMAND_H 11 12 #include "PathCommand.h" 13 14 class BPoint; 15 16 class FlipPointsCommand : public PathCommand { 17 public: 18 FlipPointsCommand(VectorPath* path, 19 const int32* indices, 20 int32 count); 21 virtual ~FlipPointsCommand(); 22 23 virtual status_t InitCheck(); 24 25 virtual status_t Perform(); 26 virtual status_t Undo(); 27 28 virtual void GetName(BString& name); 29 30 private: 31 int32* fIndex; 32 int32 fCount; 33 }; 34 35 #endif // FLIP_POINTS_COMMAND_H 36