1 /* 2 * Copyright 2006, 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 SPLIT_POINTS_COMMAND_H 10 #define SPLIT_POINTS_COMMAND_H 11 12 #include "PathCommand.h" 13 14 class BPoint; 15 16 class SplitPointsCommand : public PathCommand { 17 public: 18 SplitPointsCommand(VectorPath* path, 19 const int32* indices, 20 int32 count); 21 virtual ~SplitPointsCommand(); 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 BPoint* fPoint; 33 BPoint* fPointIn; 34 BPoint* fPointOut; 35 bool* fConnected; 36 int32 fCount; 37 }; 38 39 #endif // SPLIT_POINTS_COMMAND_H 40