API Documentation
Loading...
Searching...
No Matches
DesignPixmapResolver.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/QTIconManager.h>
4namespace NDEVR
5{
6 class ImageData;
7 /**--------------------------------------------------------------------------------------------------
8 \brief Resolves images that are stored in NDV files or are a part of ImageFactory
9 This class opens and pulls icons stored in NDV files and also converts NDEVR native images into the
10 QPixmap fomrat.
11 **/
13 {
14 public:
15 virtual bool canPotentiallyResolve(const String& pixmap_resource) override;
16 virtual QPixmap resolve(const String& pixmap_resource, QIcon::Mode, const QSize&, Dictionary<String, QPixmap>& pixmaps) override;
17 virtual UUID id() const override;
18 static QImage Convert(const ImageData& image);
19 static ImageData Convert(const String& to_id, const QImage& qimage);
20 static void SaveToImageFactory(const String& image_id, const QImage& image);
21 };
22}
#define DESIGN_WIDGETS_API
Definition DLLInfo.h:56
Resolves images that are stored in NDV files or are a part of ImageFactory This class opens and pulls...
Definition DesignPixmapResolver.h:13
virtual UUID id() const override
virtual QPixmap resolve(const String &pixmap_resource, QIcon::Mode, const QSize &, Dictionary< String, QPixmap > &pixmaps) override
static void SaveToImageFactory(const String &image_id, const QImage &image)
virtual bool canPotentiallyResolve(const String &pixmap_resource) override
static QImage Convert(const ImageData &image)
static ImageData Convert(const String &to_id, const QImage &qimage)
A hash-based key-value store, useful for quick associative lookups. Key features include:
Definition Dictionary.h:61
A container for Images managed by the ImageFactory. Provides convenience access functions without act...
Definition ImageFactory.h:124
Base class for logic that can be used to resolve a Pixmap resource and turn it into a QPixmap for use...
Definition QTIconManager.h:116
The core String class for the NDEVR API.
Definition String.h:69
A universally unique identifier (UUID) is a 128-bit number used to identify information in computer s...
Definition UUID.h:60
Definition ACIColor.h:37