home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ibmodf.zip / OPEND_HH.ZIP / SHAPEB.HH < prev    next >
Text File  |  1995-04-13  |  4KB  |  116 lines

  1. #ifndef _DTS_HH_INCLUDED_SHAPEB
  2. #define _DTS_HH_INCLUDED_SHAPEB
  3. /* Start Interface ODBaseShape */
  4.  
  5. // This file was generated by the IBM "DirectToSOM" emitter for C++ (V1.71)
  6. // Generated at 04/13/95 11:46:02 EDT
  7.  
  8. #include <som.hh>
  9.  
  10.      #pragma SOMAsDefault(on)
  11. class SOMClass;
  12.      #pragma SOMAsDefault(pop)
  13.      #pragma SOMAsDefault(on)
  14. class SOMObject;
  15.      #pragma SOMAsDefault(pop)
  16.      #pragma SOMAsDefault(on)
  17. class ODObject;
  18.      #pragma SOMAsDefault(pop)
  19.      #pragma SOMAsDefault(on)
  20. class ODExtension;
  21.      #pragma SOMAsDefault(pop)
  22.      #pragma SOMAsDefault(on)
  23. class ODBaseShape;
  24.      #pragma SOMAsDefault(pop)
  25.      #pragma SOMAsDefault(on)
  26. class ODShape;
  27.      #pragma SOMAsDefault(pop)
  28.      #pragma SOMAsDefault(on)
  29. class ODTransform;
  30.      #pragma SOMAsDefault(pop)
  31.      #pragma SOMAsDefault(on)
  32. class ODStorageUnit;
  33.      #pragma SOMAsDefault(pop)
  34. #include <ODObject.hh>
  35. #include <somcls.hh>
  36. #pragma SOMNonDTS(on)
  37.  
  38. #pragma SOMAsDefault(on)
  39. class ODBaseShape : public ODObject {
  40.  
  41.     #pragma SOMClassName(*, "ODBaseShape")
  42.     #pragma SOMNoMangling(*)
  43.     #pragma SOMNoDataDirect(*)
  44.     #pragma SOMNonDTS(*)
  45.  
  46.      #pragma SOMClassVersion (ODBaseShape, 1, 0)
  47.      #pragma SOMCallstyle (idl)
  48.      #pragma SOMAsDefault(off)
  49.      #pragma SOMAsDefault(pop)
  50.   public :
  51.      virtual ODGeometryMode GetGeometryMode();
  52.      virtual void SetGeometryMode(ODGeometryMode mode);
  53.      virtual void GetBoundingBox(ODRect* bounds);
  54.      virtual ODShape* SetRectangle(ODRect* rect);
  55.      virtual ODPolygon CopyPolygon();
  56.      virtual ODShape* SetPolygon(ODPolygon* polygon);
  57.      virtual ODPlatformShape GetPlatformShape(ODGraphicsSystem graphicsSystem);
  58.      
  59.      //
  60.      // input / output:
  61.      virtual void SetPlatformShape(ODGraphicsSystem graphicsSystem, 
  62.                                    ODPlatformShape platformShape);
  63.      virtual void WriteShape(ODStorageUnit* storageUnit);
  64.      
  65.      //
  66.      // comparison/testing functions
  67.      virtual ODShape* ReadShape(ODStorageUnit* storageUnit);
  68.      virtual ODBoolean IsSameAs(ODShape* compareShape);
  69.      virtual ODBoolean IsEmpty();
  70.      virtual ODBoolean ContainsPoint(ODPoint* point);
  71.      virtual ODBoolean IsRectangular();
  72.      
  73.      //
  74.      // geometry operations
  75.      virtual ODBoolean HasGeometry();
  76.      virtual ODShape* Copy();
  77.      virtual void CopyFrom(ODShape* sourceShape);
  78.      virtual ODShape* Transform(ODTransform* transform);
  79.      virtual ODShape* InverseTransform(ODTransform* transform);
  80.      virtual ODShape* Subtract(ODShape* diffShape);
  81.      virtual ODShape* Intersect(ODShape* sectShape);
  82.      virtual ODShape* Union(ODShape* unionShape);
  83.      ODBaseShape();  
  84.      virtual ~ODBaseShape();  
  85.      #pragma SOMReleaseOrder ( \
  86.                   "SetGeometryMode", \
  87.                   "GetGeometryMode", \
  88.                   "GetBoundingBox", \
  89.                   "SetRectangle", \
  90.                   "CopyPolygon", \
  91.                   "SetPolygon", \
  92.                   "GetPlatformShape", \
  93.                   "SetPlatformShape", \
  94.                   "WriteShape", \
  95.                   "ReadShape", \
  96.                   "IsSameAs", \
  97.                   "IsEmpty", \
  98.                   "ContainsPoint", \
  99.                   "IsRectangular", \
  100.                   "HasGeometry", \
  101.                   "Copy", \
  102.                   "CopyFrom", \
  103.                   "Transform", \
  104.                   "InverseTransform", \
  105.                   "Subtract", \
  106.                   "Intersect", \
  107.                   "Union", \
  108.                   *, \
  109.                   *)
  110. };
  111. #pragma SOMAsDefault(pop)
  112.  
  113.      #pragma SOMNonDTS(pop)
  114. /* End ODBaseShape */
  115. #endif /* _DTS_HH_INCLUDED_SHAPEB */
  116.