1 //
2 //  PRCurvesPath.h
3 //  PRICE
4 //
5 //  Created by Riccardo Mottola on Thu 11 August 2011.
6 //  Copyright 2011-2014 Riccardo Mottola. All rights reserved.
7 //
8 // This application is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
10 
11 #import <Foundation/Foundation.h>
12 #import <AppKit/NSBezierPath.h>
13 
14 @interface PRCurvesPath : NSBezierPath
15 {
16   BOOL isEditing;
17 }
18 
19 -(BOOL)isEditing;
20 -(void)setIsEditing: (BOOL)flag;
21 -(NSArray *)values;
22 
23 /** returns black point */
24 -(NSPoint)blackPoint;
25 
26 /** returns white point */
27 -(NSPoint)whitePoint;
28 
29 /** moves a control point p1 to p2 */
30 -(void)move: (NSPoint)p1 toPoint:(NSPoint)p2;
31 
32 /** determines if any control point of the path got hit */
33 -(BOOL)pointOnControlHandle:(NSPoint)p;
34 
35 @end
36