acedsel.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. //////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Copyright 2015 Autodesk, Inc. All rights reserved.
  5. //
  6. // Use of this software is subject to the terms of the Autodesk license
  7. // agreement provided at the time of installation or download, or which
  8. // otherwise accompanies this software in either electronic or hard copy form.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11. //
  12. // DESCRIPTION: Definition of Selection-related AcEd constructs, which
  13. // currently consists solely of the AcEdSolidSubentitySelector.
  14. //
  15. #ifndef _ACEDSEL_H
  16. #define _ACEDSEL_H
  17. #include "AcArray.h"
  18. #include "dbid.h"
  19. #include "dbsubeid.h"
  20. #include "acgitransient.h"
  21. #pragma pack (push, 8)
  22. class AcEdSelectedTransientImp;
  23. class AcGsDCRect;
  24. class AcEdSolidSubentitySelector
  25. {
  26. public:
  27. AcEdSolidSubentitySelector();
  28. ~AcEdSolidSubentitySelector();
  29. Acad::ErrorStatus selectFaces(AcDbObjectId& selectedSolidId,
  30. AcArray<AcDbSubentId *>& faceSet);
  31. };
  32. class AcEdSelectedTransient
  33. {
  34. public:
  35. AcEdSelectedTransient();
  36. AcEdSelectedTransient(const AcEdSelectedTransient& source);
  37. AcEdSelectedTransient& operator=(const AcEdSelectedTransient& source);
  38. ~AcEdSelectedTransient();
  39. AcGiDrawable* parent();
  40. AcGiDrawable* drawable();
  41. Adesk::GsMarker marker();
  42. AcGiTransientDrawingMode mode();
  43. int subDrawingMode();
  44. protected:
  45. AcEdSelectedTransientImp* mImp;
  46. friend class AcEdTransientSelectionInternals;
  47. };
  48. //This function returns all transients that draw any geometry inside the pickbox.
  49. Acad::ErrorStatus acedSelectTransients(const AcGsDCRect& rect,
  50. int viewportNumber,
  51. AcArray<AcEdSelectedTransient>& result);
  52. #pragma pack (pop)
  53. #endif // _ACEDSEL_H