Programmable real-time audio signal processing application
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmGr2dFltk.h 606B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef cmGr2dFltk_h
  2. #define cmGr2dFltk_h
  3. class Fl_Menu_Bar;
  4. class cmGr2dFltk : public cmGrPlotFltk
  5. {
  6. public:
  7. cmGr2dFltk(cmCtx_t* ctx, Fl_Menu_Bar* menuBar, int x, int y, int w, int h);
  8. virtual ~cmGr2dFltk();
  9. virtual bool on_plot_object( cmGrPlotCbArg_t* arg );
  10. double x() const;
  11. double y() const;
  12. double radius() const;
  13. double angle() const;
  14. private:
  15. enum
  16. {
  17. kWidth = 100,
  18. kHeight = 100
  19. };
  20. enum
  21. {
  22. kOkRC = 0,
  23. kCreateObjRC
  24. };
  25. cmErr_t _err;
  26. double _x;
  27. double _y;
  28. double _radius;
  29. double _angle;
  30. unsigned _objId;
  31. void _createObj();
  32. };
  33. #endif