-
Notifications
You must be signed in to change notification settings - Fork 217
/
CPRHorizontalFillOperation.h
49 lines (34 loc) · 1.75 KB
/
CPRHorizontalFillOperation.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
/*=========================================================================
Program: OsiriX
Copyright (c) OsiriX Team
All rights reserved.
Distributed under GNU - LGPL
See http://www.osirix-viewer.com/copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
=========================================================================*/
#import <Cocoa/Cocoa.h>
#import "N3Geometry.h"
@class CPRVolumeData;
// This operation will fill out floatBytes from the given data. FloatBytes is assumed to be tightly packed float image of width "width" and height "height"
// float bytes will be filled in with values at vectors and each successive scan line will be filled with with values at vector+normal*scanlineNumber
@interface CPRHorizontalFillOperation : NSOperation {
CPRVolumeData *_volumeData;
float *_floatBytes;
NSUInteger _width;
NSUInteger _height;
N3VectorArray _vectors;
N3VectorArray _normals;
BOOL _linearInterpolating;
}
// vectors and normals need to be arrays of length width
- (id)initWithVolumeData:(CPRVolumeData *)volumeData floatBytes:(float *)floatBytes width:(NSUInteger)width height:(NSUInteger)height vectors:(N3VectorArray)vectors normals:(N3VectorArray)normals;
@property (readonly, retain) CPRVolumeData *volumeData;
@property (readonly, assign) float *floatBytes;
@property (readonly, assign) NSUInteger width;
@property (readonly, assign) NSUInteger height;
@property (readonly, assign) N3VectorArray vectors;
@property (readonly, assign) N3VectorArray normals;
@property (readwrite, assign, getter=isLinearInterpolating) BOOL linearInterpolating; // YES by default
@end