home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sgi / 17844 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  1.6 KB

  1. Path: sparky!uunet!gatech!europa.asd.contel.com!howland.reston.ans.net!wupost!zaphod.mps.ohio-state.edu!darwin.sura.net!sgiblab!sgigate!sgi!fido!owl!walker
  2. From: walker@owl.asd.sgi.com (Christopher Walker)
  3. Newsgroups: comp.sys.sgi
  4. Subject: Re: IL derived file format and memeber functions
  5. Date: 11 Dec 1992 18:23:09 GMT
  6. Organization: Silicon Graphics, Inc.  Mountain View, CA
  7. Lines: 22
  8. Message-ID: <1gamadINNmg9@fido.asd.sgi.com>
  9. References: <34506@adm.brl.mil>
  10. NNTP-Posting-Host: owl.asd.sgi.com
  11.  
  12.  
  13. In article <34506@adm.brl.mil>, rose@baby.swmed.utexas.edu writes:
  14. > I have extended the IL by deriving a new file format from 
  15. > ilFileImg.  Then, in my main I executed ilAddImgFileFormat to
  16. > register my file format.  Now I can open my file with ilOpenImgFile.  
  17. > I have defined functions for my derived class.  However, if I
  18. > open my file with ilOpenImgFIle, the image type is ilFileImg not
  19. > MR_file (my file type).  As far as I understand it, if the
  20. > image type is MR_file, then I'd be able to access its member 
  21. > functions.  Does this mean that if I want to access member
  22. > functions that I should really use the constructor for MR_file?
  23. > Or does this mean that I can't access member functiona and I'm
  24. > probably going about this all wrong?  Please respond directly to
  25. > me because I am currently not receiving mail from this list.
  26.  
  27. The intended usage it to call getImageFormat on the ilFileImg* to determine
  28. what format you've opened.  If the format is some type you want to deal with
  29. specially then you can freely cast the returned ilFileImg* pointer to a 
  30. pointer to the derived file format's class, and away you go.
  31.  
  32. ---
  33. Chris Walker (x1106 or walker@sgi.com)
  34.