ViewportHighlight.h 902 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. class ViewportHighlight
  10. {
  11. public:
  12. ViewportHighlight();
  13. virtual ~ViewportHighlight();
  14. //! Given the invisibleRootItem and the list of selectedItems, draw
  15. //! the correct highlight borders around elements, according to the
  16. //! given flags (defined in ViewportWidget::DrawElementBorders).
  17. void Draw(Draw2dHelper& draw2d,
  18. QTreeWidgetItem* invisibleRootItem,
  19. HierarchyItemRawPtrList& selectedItems,
  20. uint32 flags);
  21. void DrawHover(Draw2dHelper& draw2d, AZ::EntityId hoverElement);
  22. private:
  23. std::unique_ptr< ViewportIcon > m_highlightIconSelected;
  24. std::unique_ptr< ViewportIcon > m_highlightIconUnselected;
  25. };