[BACK]Return to MyOpenGLView.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / cfep

File: [local] / OpenXM / src / cfep / MyOpenGLView.h (download)

Revision 1.4, Fri Mar 10 11:48:01 2006 UTC (18 years, 2 months ago) by takayama
Branch: MAIN
CVS Tags: R_1_3_1-2, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, HEAD, DEB_REL_1_2_3-9
Changes since 1.3: +1 -0 lines

1. Improved error messages.
2. Added new selctor outputBorderLine:
3. Added new OpenGL commands glDisable, glEnable, glLineStipple, glLineWidth, glNormal3f.

//
//  MyOpenGLView.h
//  cfep
//
//  Created by Nobuki Takayama on 06/02/18.
//  Copyright 2006 OpenXM.org. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "MyOpenGLCommand.h"

@interface MyOpenGLView : NSOpenGLView {
  int initGl;
  double xeye,yeye,zeye;  // eye position
  NSMutableArray *oglComm;
  int oglCommSize;
  NSMutableArray *oglInitComm;
  int oglInitCommSize;
  int gid;
  NSFont *myfont;
}
-(id) initWithFrame: (NSRect) frameRect;
-(void) drawRectSimple: (NSRect) rect withColor: (double)c;
-(void) drawRect: (NSRect) rect ;
-(void) showEyePos ;
-(IBAction) setXeye: (id) sender;
-(IBAction) setYeye: (id) sender;
-(IBAction) setZeye: (id) sender;
-(void) setGid: (int) gid;
-(void) setInitGL: (id) sender;
-(int) getOglCommSize;
-(int) getOglInitCommSize;
-(void) addOglComm: (NSString *) comm by: (id) sender;
-(void) drawOglComm ;
-(void) addOglInitComm: (NSString *) comm by: (id) sender;

-(NSMutableArray *)getListOfOglComm;
-(NSMutableArray *)getListOfOglInitComm;
-(int) countOfOglComm ;
-(int) countOfOglInitComm;
-(int) removeLastOfOglComm;
-(int) removeLastOfOglInitComm;
-(int) removeAllOfOglComm;
-(int) removeAllOfOglInitComm;

-(void) drawOglInitComm ;
-(void) execute: (MyOpenGLCommand *)gc;
-(void) initGL ;

-(void) glib3_ray;

@end

// original glib functions
void glib_line(float x,float y, float x2,float y2, int color);
void glib_putpixel(float x,float y, int color);