GraphicsContext.h 774 B

12345678910111213141516171819202122232425262728
  1. #ifndef GRAPHICSCONTEXT_H
  2. #define GRAPHICSCONTEXT_H
  3. #include "showunit_global.h"
  4. #include <QVariantHash>
  5. #include<QHash>
  6. #include "HalconCpp.h"
  7. using namespace HalconCpp;
  8. class SHOWUNITSHARED_EXPORT GraphicsContext
  9. {
  10. public:
  11. static QString GC_COLOR;
  12. static QString GC_COLORED ;
  13. static QString GC_LINEWIDTH ;
  14. static QString GC_DRAWMODE ;
  15. static QString GC_SHAPE;
  16. static QString GC_LUT ;
  17. static QString GC_PAINT;
  18. static QString GC_LINESTYLE;
  19. QHash<QString, HTuple> graphicalSettings;
  20. QHash<QString, HTuple> stateOfSettings;
  21. GraphicsContext();
  22. void applyContext(const HTuple &winID, const QHash<QString, HTuple> &cContext);
  23. void setAttribute(const QString &key, const HTuple &val);
  24. };
  25. #endif // GRAPHICSCONTEXT_H