@GroupRegion.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class GroupRegion : Region
  4. {
  5. class Index
  6. {
  7. int i;
  8. public:
  9. Index();
  10. };
  11. Memc<Index> indexes;
  12. Memx<Button> set_groups;
  13. flt set_groups_zoom;
  14. Text groups_t, parts_t;
  15. Region groups_r, parts_r;
  16. List<Index> groups_l, parts_l;
  17. TextWhite ts;
  18. static int VisibleParts(C MeshLod &lod );
  19. static int VisiblePartI(C MeshLod &lod, int i); // vis to abs
  20. static int AbsPartI(C MeshLod &lod, int i); // abs to vis
  21. static C MeshPart* VisiblePart (C MeshLod &lod, int i);
  22. static Str IndexToGroupName(C Index &index);
  23. static Str IndexToPartName(C Index &index);
  24. static Str IndexToPartGroup(C Index &index);
  25. static void DragGroup(ptr index, GuiObj *go, C Vec2 &screen_pos);
  26. static void SetGroup(Button &button);
  27. int getSetGroup();
  28. void highlight(int part);
  29. GroupRegion& create();
  30. virtual void update(C GuiPC &gpc)override;
  31. public:
  32. GroupRegion();
  33. };
  34. /******************************************************************************/
  35. /******************************************************************************/
  36. /******************************************************************************/