home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3dm / fx / DMFXImageViewer.z / DMFXImageViewer
Encoding:
Text File  |  2002-10-03  |  8.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. DDDDMMMMFFFFXXXXIIIImmmmaaaaggggeeeeVVVViiiieeeewwwweeeerrrr((((3333ddddmmmm))))                                      DDDDMMMMFFFFXXXXIIIImmmmaaaaggggeeeeVVVViiiieeeewwwweeeerrrr((((3333ddddmmmm))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DDDDMMMMFFFFXXXXIIIImmmmaaaaggggeeeeVVVViiiieeeewwwweeeerrrr - An image viewer class for plugins
  10.  
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////ffffxxxx____iiiimmmmaaaaggggeeee____vvvviiiieeeewwwweeeerrrr....hhhh>>>>
  14.  
  15.          Methods of class DMFXImageViewer:
  16.  
  17.  
  18.               DDDDMMMMFFFFXXXXIIIImmmmaaaaggggeeeeVVVViiiieeeewwwweeeerrrr(((( WWWWiiiiddddggggeeeetttt ppppaaaarrrreeeennnntttt ))))
  19.  
  20.               ~~~~DDDDMMMMFFFFXXXXIIIImmmmaaaaggggeeeeVVVViiiieeeewwwweeeerrrr(((())))
  21.  
  22.      vvvvooooiiiidddd     sssseeeettttBBBBuuuuffff((((ccccoooonnnnsssstttt vvvvooooiiiidddd ****bbbbuuuuffff,,,, uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt wwwwiiiiddddtttthhhh,,,, uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt hhhheeeeiiiigggghhhhtttt,,,,
  23.                      uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt rrrroooowwwwBBBByyyytttteeeessss))))
  24.  
  25.      vvvvooooiiiidddd     rrrreeeeddddrrrraaaawwww(((())))
  26.  
  27.      vvvvooooiiiidddd     sssseeeettttEEEExxxxppppoooosssseeeeCCCCaaaallllllllbbbbaaaacccckkkk((((EEEExxxxppppoooosssseeeeCCCCaaaallllllllbbbbaaaacccckkkk eeeexxxxppppoooosssseeeeCCCCBBBB,,,, XXXXttttPPPPooooiiiinnnntttteeeerrrr cccclllliiiieeeennnnttttDDDDaaaattttaaaa))))
  28.  
  29.      vvvvooooiiiidddd     sssseeeettttGGGGLLLLCCCCoooonnnntttteeeexxxxtttt(((())))
  30.  
  31.      vvvvooooiiiidddd     rrrreeeessssttttoooorrrreeeeGGGGLLLLCCCCoooonnnntttteeeexxxxtttt(((())))
  32.  
  33.      BBBBoooooooolllleeeeaaaannnn  sssseeeettttKKKKeeeeeeeeppppAAAAssssppppeeeeccccttttRRRRaaaattttiiiioooo((((BBBBoooooooolllleeeeaaaannnn kkkkeeeeeeeeppppAAAAssssppppeeeecccctttt))))
  34.  
  35.      BBBBoooooooolllleeeeaaaannnn  ggggeeeettttKKKKeeeeeeeeppppAAAAssssppppeeeeccccttttRRRRaaaattttiiiioooo(((())))
  36.  
  37.  
  38.  
  39. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  40.      Special effects plugins may have user customizable settings in the form
  41.      of a dialog box.  These dialog boxes may have an image viewer.  This
  42.      class provides an easy way for plugins to display an image.
  43.  
  44.  
  45. MMMMEEEETTTTHHHHOOOODDDDSSSS
  46.      DDDDMMMMFFFFXXXXIIIImmmmaaaaggggeeeeVVVViiiieeeewwwweeeerrrr((((ccccoooonnnnsssstttt cccchhhhaaaarrrr ****nnnnaaaammmmeeee,,,, WWWWiiiiddddggggeeeetttt ppppaaaarrrreeeennnntttt,,,, ccccoooonnnnsssstttt SSSSttttrrrriiiinnnngggg ****rrrreeeessssoooouuuurrrrcccceeeessss))))
  47.  
  48.          The plugin image viewer constructor.
  49.  
  50.      ~~~~DDDDMMMMFFFFXXXXIIIImmmmaaaaggggeeeeVVVViiiieeeewwwweeeerrrr(((( ))))
  51.  
  52.          The plugin image viewer destructor.
  53.  
  54.      vvvvooooiiiidddd sssseeeettttBBBBuuuuffff((((ccccoooonnnnsssstttt vvvvooooiiiidddd ****bbbbuuuuffff,,,, uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt wwwwiiiiddddtttthhhh,,,, uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt hhhheeeeiiiigggghhhhtttt,,,,
  55.                  uuuunnnnssssiiiiggggnnnneeeedddd iiiinnnntttt rrrroooowwwwBBBByyyytttteeeessss))))
  56.  
  57.          Takes a pointer to an ABGR image that is to be displayed in the gl
  58.      widget.  The image is resized as needed to show up in the window.
  59.      Ownership of the pointer remains with the caller, *but* this object
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDMMMMFFFFXXXXIIIImmmmaaaaggggeeeeVVVViiiieeeewwwweeeerrrr((((3333ddddmmmm))))                                      DDDDMMMMFFFFXXXXIIIImmmmaaaaggggeeeeVVVViiiieeeewwwweeeerrrr((((3333ddddmmmm))))
  71.  
  72.  
  73.  
  74.      retains a pointer to it until the next sssseeeettttBBBBuuuuffff call.  It is OK to call
  75.      sssseeeettttBBBBuuuuffff with NULL.
  76.  
  77.      vvvvooooiiiidddd rrrreeeeddddrrrraaaawwww(((( ))))
  78.  
  79.          Redraws the image. Note that no explicit call to rrrreeeeddddrrrraaaawwww(((()))) is
  80.      necessary after a sssseeeettttBBBBuuuuffff(((()))) call.
  81.  
  82.      vvvvooooiiiidddd sssseeeettttEEEExxxxppppoooosssseeeeCCCCaaaallllllllbbbbaaaacccckkkk((((EEEExxxxppppoooosssseeeeCCCCaaaallllllllbbbbaaaacccckkkk eeeexxxxppppoooosssseeeeCCCCBBBB,,,, XXXXttttPPPPooooiiiinnnntttteeeerrrr cccclllliiiieeeennnnttttDDDDaaaattttaaaa))))
  83.  
  84.          Set the expose callback, where exposeCB should look like:
  85.  
  86.      void exposeCB(Widget w, XtPointer clientData, const XEvent *xev);
  87.  
  88.      Note that when using sssseeeettttBBBBuuuuffff(((()))), expose events are handled by the image
  89.      viewer class, and the plugin does not need to handle them.
  90.  
  91.      vvvvooooiiiidddd sssseeeettttGGGGLLLLCCCCoooonnnntttteeeexxxxtttt(((( ))))
  92.  
  93.          Saves the GL context. PlugIns that render with OpenGL, and want to
  94.      render directly to the screen can use the sssseeeettttGGGGLLLLCCCCoooonnnntttteeeexxxxtttt(((()))), and
  95.      rrrreeeessssttttoooorrrreeeeGGGGLLLLCCCCoooonnnntttteeeexxxxtttt(((()))).
  96.  
  97.      vvvvooooiiiidddd rrrreeeessssttttoooorrrreeeeGGGGLLLLCCCCoooonnnntttteeeexxxxtttt(((( ))))
  98.  
  99.          Restores the GL context.  PlugIns that render with OpenGL, and want
  100.      to render directly to the screen can use the sssseeeettttGGGGLLLLCCCCoooonnnntttteeeexxxxtttt(((()))), and
  101.      rrrreeeessssttttoooorrrreeeeGGGGLLLLCCCCoooonnnntttteeeexxxxtttt(((()))).
  102.  
  103.      BBBBoooooooolllleeeeaaaannnn sssseeeettttKKKKeeeeeeeeppppAAAAssssppppeeeeccccttttRRRRaaaattttiiiioooo((((BBBBoooooooolllleeeeaaaannnn kkkkeeeeeeeeppppAAAAssssppppeeeecccctttt))))
  104.  
  105.          Set whether or not the image viewer should maintain its aspect ratio.
  106.  
  107.      BBBBoooooooolllleeeeaaaannnn ggggeeeettttKKKKeeeeeeeeppppAAAAssssppppeeeeccccttttRRRRaaaattttiiiioooo(((( ))))
  108.  
  109.          Return whether or not the image viewer should maintain its aspect
  110.      ratio.
  111.  
  112.  
  113. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  114.      DMFXDialog(3dm).
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.