@HeightBrushClass.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class HeightBrushClass : Window
  4. {
  5. class AlignWaypoint
  6. {
  7. EditWaypoint *wp;
  8. EditWaypointPoint *p;
  9. void set(EditWaypoint &wp, EditWaypointPoint &p);
  10. };
  11. Image noise[2];
  12. Tabs mode;
  13. Memc<Area*> changed_areas;
  14. Memc<AlignWaypoint> align_waypoints;
  15. SyncLock lock;
  16. static void ModeChanged(HeightBrushClass &hb);
  17. HeightBrushClass& create();
  18. static void GetHeight(Cell<Area> &cell, Cursor &cur, int thread_index);
  19. void getHeight( Area &area, Cursor &cur);
  20. static void UpdateHeight(Cell<Area> &cell, ptr user, int thread_index);
  21. void updateHeight( Area &area);
  22. void detectWaypoints(C RectI &rect);
  23. void alignWaypoints();
  24. void update();
  25. static void AreaUpdate(Area* &area, ptr user, int thread_index);
  26. void updateChanged();
  27. };
  28. /******************************************************************************/
  29. /******************************************************************************/
  30. extern HeightBrushClass HeightBrush;
  31. /******************************************************************************/