home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12otk1.exe / include / ShapeB.idl < prev    next >
Text File  |  1997-04-02  |  5KB  |  169 lines

  1. /* @(#)Z 1.6 com/src/imaging/idl/ShapeB.idl, odimaging, od96os2, odos29712d 97/03/21 17:18:21 (96/10/29 09:26:02) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odimaging
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 82,27
  10. //#
  11. //#
  12. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //#   All Rights Reserved
  14. //#   Licensed Materials - Property of IBM
  15. //#   US Government Users Restricted Rights - Use, duplication or
  16. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //#       
  18. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //#   OR PERFORMANCE OF THIS SOFTWARE.
  25. //#
  26. //#====END_GENERATED_PROLOG========================================
  27. //#
  28.  
  29. /********************************************************************/
  30. /*  Licensed Materials - Property of IBM                            */
  31. /*                                                                  */
  32. /*                                                                  */
  33. /* Copyright (C) International Business Machines Corp., 1994.       */
  34. /* Copyright (C) Apple Computer, Inc., 1994                         */
  35. /*                                                                  */
  36. /*  US Government Users Restricted Rights -                         */
  37. /*  Use, duplication, or disclosure restricted                      */
  38. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  39. /*                                                                  */
  40. /*                                                                  */
  41. /********************************************************************/
  42. //#    Copyright:    (r) 1993-1995 by Apple Computer, Inc., all rights reserved.
  43.  
  44. #ifndef _SHAPEB_
  45. #define _SHAPEB_
  46.  
  47. #ifndef _REFCTOBJ_
  48. #include "RefCtObj.idl"  
  49. #endif
  50.  
  51. //==============================================================================
  52. // Classes defined in this interface
  53. //==============================================================================
  54.  
  55. interface ODBaseShape;
  56.  
  57. //==============================================================================
  58. // Classes used in this interface
  59. //==============================================================================
  60.  
  61. interface ODShape;
  62. interface ODTransform;
  63. interface ODStorageUnit;
  64.  
  65.  
  66.  
  67. //==============================================================================
  68. // ODBaseShape
  69. //==============================================================================
  70.  
  71. interface ODBaseShape :  ODRefCntObject
  72. {
  73.     
  74.     //#---------------------------------
  75.     //# factories:
  76.  
  77.     ODShape            NewShape();
  78.     ODShape            Copy();
  79.  
  80.     //#---------------------------------
  81.     //# getters/setters
  82.     
  83.     ODGeometryMode    GetGeometryMode();
  84.     void            SetGeometryMode(in ODGeometryMode mode);
  85.     void            GetBoundingBox(out ODRect bounds);
  86.     ODShape            SetRectangle(in ODRect rect);
  87.     void            CopyPolygon(out ODPolygon copy);
  88.     ODShape            SetPolygon(in ODPolygon polygon);
  89.     ODPlatformShape    GetPlatformShape(in ODGraphicsSystem graphicsSystem);
  90.     void            SetPlatformShape(in ODGraphicsSystem graphicsSystem,
  91.                                       in ODPlatformShape platformShape);
  92.     void            Reset();
  93.     
  94.     //#---------------------------------
  95.     //# input / output:
  96.     
  97.     void            WriteShape(in ODStorageUnit storageUnit);
  98.     ODShape            ReadShape(in ODStorageUnit storageUnit);
  99.     
  100.     //#---------------------------------
  101.     //# comparison/testing functions
  102.     
  103.     ODBoolean        IsSameAs(in ODShape compareShape);
  104.     ODBoolean        IsEmpty();
  105.     ODBoolean        ContainsPoint(in ODPoint point);
  106.     ODBoolean        IsRectangular();
  107.     ODBoolean        HasGeometry();
  108.     
  109.     //#---------------------------------
  110.     //# geometry operations
  111.     
  112.     void        CopyFrom(in ODShape sourceShape);
  113.     ODShape        Transform(in ODTransform transform);
  114.     ODShape        InverseTransform(in ODTransform transform);
  115.     ODShape        Subtract(in ODShape diffShape);
  116.     ODShape        Intersect(in ODShape sectShape);
  117.     ODShape        Union(in ODShape unionShape);
  118.     ODShape        Outset( in ODCoordinate distance );
  119.       
  120. #ifdef __SOMIDL__
  121.     implementation
  122.     {
  123.         override:
  124.             somUninit,
  125.             Purge,
  126.             Release;
  127.             
  128.         releaseorder:
  129.             SetGeometryMode,
  130.             GetGeometryMode,
  131.             GetBoundingBox,
  132.             SetRectangle,
  133.             CopyPolygon,
  134.             SetPolygon,
  135.             GetPlatformShape,
  136.             SetPlatformShape,
  137.             WriteShape,
  138.             ReadShape,
  139.             IsSameAs,
  140.             IsEmpty,
  141.             ContainsPoint,
  142.             IsRectangular,
  143.             HasGeometry,
  144.             Copy,
  145.             CopyFrom,
  146.             Transform,
  147.             InverseTransform,
  148.             Subtract,
  149.             Intersect,
  150.             Union,
  151.             Outset,
  152.             NewShape,
  153.             Reset,
  154.             reserved1,
  155.             reserved2;
  156.         
  157.             
  158.         majorversion = 1; minorversion = 0;
  159.         
  160.         functionprefix = ODBaseShape;
  161.         
  162.     };
  163. #endif
  164. };
  165.  
  166. #endif // _SHAPEB_
  167.  
  168.  
  169.