home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / Programming / Source / tess / tess-1.0 / aGroup-inter.h < prev    next >
Encoding:
Text File  |  1992-06-30  |  1.4 KB  |  47 lines

  1. #import <appkit/appkit.h>
  2.  
  3. #define DOCLIP(x,y,seq)   PSgsave();[self clip: (x) : (y)];seq;PSgrestore();
  4.  
  5. void GroupSetup(); /* call once to download postscript */
  6. int genfun ();     /* these should be defined in groups as e.g. */
  7. int clipper();     /* p3m1gen, p3m1clip, p3m1tess */
  8. int tesselate();
  9.  
  10. @interface aGroup:View
  11. {
  12.   id output,genovly;
  13.   NXSize latticesize;
  14.   BOOL isrigid;
  15.   id anglewin,angle1slide,angle2slide,angle1box,angle2box;
  16. }
  17.  
  18. +new;
  19. +setup;
  20. - drawSelf:(const NXRect *)rects :(int)rectCount;
  21. - setGenovly: sender; 
  22. - sizeTo: (float) x : (float) y;
  23. - resizeGenerator;
  24. - performTesselation: sender; /* do it getting info from sender */
  25. - generator: (NXCoord) x : (NXCoord) y;
  26. - clip: (NXCoord) x: (NXCoord) y;
  27. - (NXPoint *)getGeneratorOffset: (NXPoint *) pt;
  28. - (NXSize *)getGeneratorSize: (NXSize *) size;
  29. - (BOOL)isRigidLattice;                /* can the x & y scale differently */
  30. - rightTranslatePoint: (NXPoint *) pt;
  31. - leftTranslatePoint: (NXPoint *) pt;
  32. - upTranslatePoint: (NXPoint *)pt;
  33. - (NXSize *)getLatticeUnitSize: (NXSize *) size;
  34. - makeLatticeUnitAt: (NXPoint *)pt fromImage: img;
  35. - drawImage;                    // draw template in current locked view
  36. - sketchTemplate;                //image object of group template
  37. - singleAngleSetup: (float) a ;
  38. - twoAngleSetup: (float) a : (float) b;
  39. - noAngleSetup;
  40. - setAngle1: (float) a1;
  41. - setAngle2: (float) a2;
  42. - anglesDidChange;
  43. - defaultConfig;
  44. - sizeKludge: (float *) x : (float *) y;
  45. @end
  46.  
  47.