[go: up one dir, main page]

Menu

[r15]: / apps / fMRI / fMRIData.h  Maximize  Restore  History

Download this file

60 lines (46 with data), 1.0 kB

 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
56
57
58
59
//
// fMRIData.h
// fMRI Visualizer
//
// Created by Paolo on 29/03/10.
// Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import <C3DT/C3DT.h>
// This can't be used if we filter fibers in real-time
//#define USE_DISPLAY_LIST
typedef enum {
kSwapXY,
kSwapXZ,
kSwapYZ
} SwapCoordType;
typedef struct _fMRIPoint {
GLfloat x;
GLfloat y;
GLfloat z;
GLfloat w; // unused: needed for alignment to 128 bit
GLfloat r;
GLfloat g;
GLfloat b;
GLfloat a; // unused
} fMRIPoint;
@interface fMRIData : C3DTGeometry {
GLint *indexes;
GLint *counts;
GLfloat *lengths;
GLint numFibers;
GLint allocFibers;
GLint *filteredIndexes;
GLint *filteredCounts;
GLint numFilteredFibers;
GLint allocFilteredFibers;
fMRIPoint *points;
GLint numPoints;
GLint allocPoints;
_C3DTBounds bounds;
}
+ (id)dataWithFile: (NSString *)dataFilePath;
- (id)initWithFile: (NSString *)dataFilePath;
- (void)filterLengthLongerThan: (float)len;
- (void)swapCoordsType: (SwapCoordType)sType;
- (_C3DTBounds)bounds;
@end