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

  1. //**********************************************************************
  2. //  DIVE Laboratories, Inc.
  3. //  Copyright(c) 1995
  4. //  All rights reserved.
  5. //  FILE:   PLATTER.HPP
  6. //
  7. //  DESCRIPTION
  8. //  This file provides the function prototypes for the platterClass
  9. //  that is the driver for the standard window platter.
  10. //
  11. //  Author: M. Doucet
  12. //
  13. //  Modification History:
  14. //  7/3/95    Created
  15. //
  16. //**********************************************************************
  17. #ifndef _PLATTER_HPP
  18. #define _PLATTER_HPP
  19.  
  20. #include "sensor.hpp"
  21. #include "style.hpp"
  22. #include "vector.hpp"
  23. #include "position.hpp"
  24.  
  25.  
  26. class platterClass : public sensorClass, public styleClass {
  27.  
  28. private:
  29.  
  30.     V3  mRotations;
  31.     V3  mDeltas;
  32.     vectorClass vec, xRef, yRef;
  33.     positionClass  pos;
  34.     Vres LOS_VAL;
  35.     float wW, wH, mX, mY, minP, maxP;
  36.     void *hostWnd;
  37.  
  38.     void doUpdate();
  39.  
  40. public:
  41.  
  42.     // Button down flags
  43.     int rightBD, leftBD, middleBD;
  44.  
  45.     void style(void);
  46. #ifdef WIN32
  47.     void mouseEvent(mouseEventEnum event, I2 point, void *wnd);
  48. #endif
  49.     void mouseMove(float width, float height, float platterX, float platterY);
  50.     void leftButtonDown(float width, float height, float platterX, float platterY);
  51.     void rightButtonDown(float width, float height, float platterX, float platterY);
  52.     void leftButtonUp();
  53.     void rightButtonUp();
  54.     void setMinMaxPitch(float minPitch, float maxPitch);
  55.     void setRadius(float radius);
  56.     void setAngles(F2 angles);
  57.  
  58.     platterClass(void                   *wnd,
  59.                  sensorAngleEnumType    sa=ABSOLUTE_ANGLES,
  60.                  float                  initialRadius = 0.0,
  61.                  F2                     initialAngles = zeroF2);
  62.  
  63.     ~platterClass();
  64.  
  65. };
  66.  
  67. #endif
  68.