-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMIVVesselPlotView.h
55 lines (46 loc) · 1.37 KB
/
CMIVVesselPlotView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//
// CMIVVesselPlotView.h
// CMIV_CTA_TOOLS
//
// Created by chuwa on 12/4/08.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface CMIVVesselPlotView : NSView {
IBOutlet NSPopUpButton *yAxisOptionsButton;
NSColor *backgroundColor, *pointsColor, *curveColor, *textLabelColor, *axesColor, *selectBoxColor,*referenceLineColor;
int leftSpace, bottomSpace;
int pointDiameter;
int lineWidth;
float xScaleFactor,yScaleFactor;
float xUnit,yUnit;
float xStepLength;
float xLeftLimit,xRightLimit;
float yTopLimit, yBottomLimit;
NSRect viewFrame;
int handleSize;
NSAffineTransform* globalTransform;
NSAffineTransform* invertedTransfer;
NSArray* currentCurve;
id viewControllor;
float curPtX;
float startPtX,endPtX;
NSRect curXHandleRect;
NSPoint startDragPoint;
float curPtY;
float referenceY;
float mousePtX;
int mouseStartDraggingFlag;
int curseLabelFlag;
}
@property(readonly) float curPtX;
- (NSAffineTransform *)transform:(NSRect) rect;
- (void)setACurve:(NSString*)name :(NSArray*)curve :(NSColor*)color :(float)xscale :(float)yscale;
- (void)removeCurCurve;
- (void)setViewControllor:(id)controllor;
- (void)drawAxesInRect:(NSRect)rect;
- (void)drawCurveInRect:(NSRect)rect;
- (void)drawSelectedBoxInRect:(NSRect)rect;
- (void)drawStenosisBoxInRect:(NSRect)rect;
- (void)setCursorLabelWithText:(NSString*)text;
@end