home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / Conic Sections 0.9.2 / Include / ConicViewManager.h < prev    next >
Encoding:
Text File  |  1997-05-31  |  981 b   |  48 lines  |  [TEXT/CWIE]

  1. //Copyright (c) 1997 Aidan Cully
  2. //All rights reserved
  3.  
  4. #ifndef __CONICORIENTATION_H
  5. #define __CONICORIENTATION_H
  6.  
  7. #include "Conic.h"
  8. #include "CLPicControl.h"
  9.  
  10. enum TConicOrientation
  11. {
  12.     kOrientationPlaneClockwise = 0,
  13.     kOrientationPlaneCounter = 1,
  14.     kOrientationPlaneIn = 2,
  15.     kOrientationPlaneOut = 3,
  16.     kOrientationYawLeft = 4,
  17.     kOrientationYawRight = 5,
  18.     kOrientationPitchForward = 6,
  19.     kOrientationPitchBack = 7
  20. };
  21.  
  22. class TViewManagerHolder:
  23.     public TLayoutBranch
  24. {
  25. protected:
  26.     virtual void BuildChildren();
  27.     TConic *mConic;
  28.     TPlane *mPlane;
  29. public:
  30.     TViewManagerHolder( TLayoutBranch*, TConic*, TPlane* );
  31. };
  32.  
  33. class TConicViewManager:
  34.     public TPicControl
  35. {
  36. protected:
  37.     int mOrientation;
  38.     TConic *mConic;
  39.     TPlane *mPlane;
  40.     UInt32 mPrevTime;
  41.     virtual void TrackMouseWithin( TMouseEvent* );
  42.     virtual void TrackMouseChange( TMouseEvent*, Boolean );
  43.     virtual void TrackMouseDown( TMouseEvent* );
  44. public:
  45.     TConicViewManager( TLayoutBranch*, SInt16, TConic*, TPlane*, int );
  46. };
  47.  
  48. #endif