home *** CD-ROM | disk | FTP | other *** search
/ Los Alamos National Laboratory / LANL_CD.ISO / software / medview / custom / source / 3dcustom / cubeview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-10  |  1.9 KB  |  99 lines

  1.  
  2. /* Generated by Interface Builder */
  3.                 /* TODO: create a buffer as an */
  4.                 /* instance variable and remove the */
  5.                 /* thisline stuff from readData*/
  6. #import <appkit/View.h>
  7. #import <appkit/NXImage.h>
  8. #import <sys/loader.h>
  9. #import "AzimuthMat.h"
  10.  
  11. typedef enum {
  12.   NEITHER = 0,
  13.   LINES,
  14.   POINTS,
  15.   BOTH,
  16.   COLOR
  17.   } pts_or_lines;
  18.  
  19. typedef struct {
  20.   float **all;
  21.   float **displayed;
  22.   int   npts;
  23.   pts_or_lines type;
  24. } datapoints;
  25.  
  26. @interface CubeView:View
  27. {
  28.   float cube[3][16], axes[3][54], *path;
  29.   float dot_offset[2];
  30.   int max_path, dotgstate;
  31.   float boundingBox[4];
  32.   AzimuthMat *vm;
  33.   datapoints **toshow;
  34.   id    AngleDisplay;
  35.   id    PhiSlider;
  36.   float currentPhi;
  37.   id    ThetaSlider;
  38.   float currentTheta;
  39.   id    DistanceSlider;
  40.   float currentDist;
  41.   id openReq;
  42.   id viewSound;
  43.   id soundButton;
  44.   NXRect sndBtnRect;
  45.   BOOL showCube, showAxes, PSonly;
  46.   NXImage *dot;
  47.   char ops[3];
  48.   struct mach_header *machHeader;
  49.   id  myController;
  50.   int  tag;
  51.   char *dataFileName;
  52. }
  53.  
  54. + newFrame:(const NXRect *) frameRect;
  55. + new;
  56.  
  57. - (id)class;
  58. - (const char *)name;
  59. - (int)tag;
  60. - (id)controllerObj;
  61.  
  62. - setmachHeader:(struct mach_header *)mH;
  63. - setController:(id)ctrlr;
  64.  
  65. - (void)showError:(char *)errorMessage;
  66. - (void)initStatus;
  67. - Reset:sender;
  68. - (void)ShowAngles:sender;
  69. - openData:sender;
  70. - toggleAxes:sender;
  71. - toggleCube:sender;
  72. - reScale:sender;
  73. - setTheta:sender;
  74. - setPhi:sender;
  75. - setdist:sender;
  76. - setinvdist:sender;
  77. - setTheta_degrees:sender;
  78. - setPhi_degrees:sender;
  79. - setAngleDisplay:anObject;
  80. - setDistanceSlider:anObject;
  81. - setPhiSlider:anObject;
  82. - setSoundButton:anObject;
  83. - setThetaSlider:anObject;
  84. - setlimits:(float *) limits;
  85. - (BOOL) readData:(const char *)filename;
  86. - (void)showSoundButton;
  87. - (void)setViewSound:(id)sndObj;
  88. - (void)deleteViewSound;
  89. - playSound:sender;
  90. - (char *)currentDataFile;
  91. - (float)readTheta;
  92. - (float)readPhi;
  93. - (float)readInvdist;
  94. - (BOOL)writeTheta:(float)tht;
  95. - (BOOL)writePhi:(float)phi;
  96. - (BOOL)writeInvdist:(float)invd;
  97.  
  98. @end
  99.