-
Notifications
You must be signed in to change notification settings - Fork 0
/
RasterView.h
51 lines (41 loc) · 1.38 KB
/
RasterView.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
//
// RasterView.h
// FeatureViewer
//
// Created by Roger Herikstad on 5/22/11.
// Copyright 2011 NUS. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import <OpenGL/glu.h>
static GLuint rVertexBuffer;
static GLuint rIndexBuffer;
static GLuint rColorBuffer;
static void drawCircle(GLfloat r, GLuint n);
@interface RasterView : NSView {
@private
NSOpenGLContext *_oglContext;
NSOpenGLPixelFormat *_pixelFormat;
GLuint npoints;
float xmin,xmax,ymin,ymax,zmin,zmax,xscale,yscale;
NSMutableData *highlightedPoints;
BOOL drawHighlightCircle,dataLoaded;
NSPoint picked;
}
//OpenGL related functions
+(NSOpenGLPixelFormat*)defaultPixelFormat;
-(id) initWithFrame:(NSRect)frameRect pixelFormat:(NSOpenGLPixelFormat*)format;
-(void) setOpenGLContext: (NSOpenGLContext*)context;
-(NSOpenGLContext*)openGLContext;
-(void) clearGLContext;
-(void) prepareOpenGL;
-(void) update;
-(void) reshape;
-(void) setPixelFormat:(NSOpenGLPixelFormat*)pixelFormat;
-(NSOpenGLPixelFormat*)pixelFormat;
-(void) _surfaceNeedsUpdate:(NSNotification *)notification;
-(void)createVertices:(NSData *)points withColor:(NSData *)color andRepBoundaries:(NSData*)boundaries;
-(void) createVertices: (NSData*)points withColor:(NSData*)color;
-(void) highlightPoints: (NSDictionary*)params;
-(void) receiveNotification: (NSNotification*)notification;
@property (assign,readwrite) BOOL drawHightlightCircle;
@end