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

Diff for /OpenXM/src/cfep/MyOpenGLController.m between version 1.1 and 1.2

version 1.1, 2006/03/03 23:31:12 version 1.2, 2006/03/07 11:15:23
Line 115  static int Gid=0;
Line 115  static int Gid=0;
   
 -(void) windowDidLoad {  -(void) windowDidLoad {
   [super windowDidLoad];    [super windowDidLoad];
     [myogl setGid: gid];
     // [self showCount];
 }  }
   
 -(void) dealloc {  -(void) dealloc {
Line 141  static int Gid=0;
Line 143  static int Gid=0;
 -(void) addOglInitComm: (NSString *)comm {  -(void) addOglInitComm: (NSString *)comm {
   [myogl addOglInitComm: comm by: self];    [myogl addOglInitComm: comm by: self];
 }  }
   
   -(int) countOfOglComm {return [myogl countOfOglComm];}
   -(int) countOfOglInitComm {return [myogl countOfOglInitComm];}
   -(int) removeLastOfOglComm {return [myogl removeLastOfOglComm];}
   -(int) removeLastOfOglInitComm {return [myogl removeLastOfOglInitComm];}
   -(int) removeAllOfOglComm { return [myogl removeAllOfOglComm];}
   -(int) removeAllOfOglInitComm {return [myogl removeAllOfOglInitComm];}
   -(NSMutableArray *) getListOfOglComm { return [myogl getListOfOglComm];}
   -(NSMutableArray *) getListOfOglInitComm { return [myogl getListOfOglInitComm]; }
   -(void) showEyeX: (float) x Y: (float) y Z: (float) z {
     [self clearOutput];
     [self output: [NSString stringWithFormat: @"gid=%d, n=%d, position of your eye:(%1.2f,%1.2f,%1.2f)",gid,[self countOfOglComm],x,y,z]];
   }
   -(void) showCount {
     [self clearOutput];
     [self output: [NSString stringWithFormat: @"gid=%d, number of OpenGL commands=%d, init=%d",
                                                  gid, [self countOfOglComm], [self countOfOglInitComm]]];
   }
   -(void) clearOutput { [mymessage setBackgroundColor: [NSColor whiteColor]]; } //does it work?
 -(void) output: (NSString *)msg {  -(void) output: (NSString *)msg {
   [mymessage setStringValue: msg];    [mymessage setStringValue: msg];
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>