home *** CD-ROM | disk | FTP | other *** search
/ VRML Tools for 3D Cyberspace / VRML_Tools_For_3D_Cyberspace.iso / amber / include / intxmsg.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-01  |  2.0 KB  |  74 lines

  1. ////////////////////////////////////////////////////////////////////////
  2. //  DIVE Laboratories, Inc.
  3. //  Copyright(c) 1995 - 1996
  4. //**********************************************************************
  5. //  NOTICE: THIS [PROGRAM, DATABASE, DOCUMENT].CONSISTS OF TRADE SECRETS
  6. //  THAT ARE THE PROPERTY OF DIVE LABORATORIES, INC. THE CONTENTS MAY NOT
  7. //  BE USED OR DISCLOSED WITHOUT EXPRESS WRITTEN PERMISSION OF THE OWNER.
  8. //**********************************************************************
  9. //  FILE:   intxmsg.hpp
  10. //
  11. //  DESCRIPTION
  12. //        intersection message passing class
  13. //
  14. //  Author: B. Green
  15. //
  16. //  Modification History:
  17. //  ?/??/95 Created
  18. //    8/03/95 SGI/stand-alone port
  19. //    01/20/96 geometryClass and polygonClass pointers added.
  20. //
  21. ////////////////////////////////////////////////////////////////////////
  22.  
  23. #ifndef _INTXMSG_HPP
  24. #define _INTXMSG_HPP
  25.  
  26. class intxMsgClass;
  27.  
  28. #include"vrtypes.hpp"
  29. class geometryClass;
  30. class polygonClass;
  31.  
  32. #ifndef _DEFAULT
  33.   #define DEFAULT -1
  34. #endif
  35.  
  36. ////////////////////////////////////////////////////////////////////////
  37.  
  38. class intxMsgClass {
  39.  
  40.     private:
  41.     public:
  42.  
  43.         polygonClass *iPoly;
  44.         geometryClass *iGeo;
  45.     
  46.  
  47.         int objID,
  48.             polyID;
  49.  
  50.         V3 iPos;
  51.  
  52.         void getIntx(V3 pos, int& objectID, int& polyID);
  53.         void getIntxLocalPos(V3 pos);
  54.         void getIntxWorldPos(V3 pos);
  55.         int  getIntxObject();
  56.         int  getIntxPoly();
  57.  
  58.         void setIntx(V3 pos,int object,int polyID=0);
  59.         void set( V3 pos, geometryClass *geo, polygonClass *poly );
  60.  
  61.         intxMsgClass();
  62.         intxMsgClass(V3 pos,int objectID=DEFAULT,int polyID=DEFAULT);
  63.         intxMsgClass(V3 pos, geometryClass *geo, polygonClass *poly );
  64.         ~intxMsgClass();
  65. };
  66.  
  67.  
  68. //**********************************************************************
  69. //  NOTICE: THIS [PROGRAM, DATABASE, DOCUMENT].CONSISTS OF TRADE SECRETS
  70. //  THAT ARE THE PROPERTY OF DIVE LABORATORIES, INC. THE CONTENTS MAY NOT
  71. //  BE USED OR DISCLOSED WITHOUT EXPRESS WRITTEN PERMISSION OF THE OWNER.
  72. //**********************************************************************
  73. #endif
  74.