API Documentation
Loading...
Searching...
No Matches
ImageData Class Reference

A container for Images managed by the ImageFactory. Provides convenience access functions without actually allocating memory outside of the factory. More...

#include <ImageFactory.h>

Collaboration diagram for ImageData:
[legend]

Public Member Functions

String compressionFormat () const
 
const Filefile () const
 
const Buffer< uint01 > & getCompressed (const String &default_image_format) const
 
const Buffer< uint01 > & getUncompressed () const
 
 ImageData (const ImageData &data)
 
 ImageData (const String &id, ImageFactory &image_factory)
 
 ImageData (ImageData &&data) noexcept
 
Time modifiedTime () const
 
const Vector< 2, uint04 > & size () const
 
 ~ImageData ()
 

Protected Attributes

const String m_id
 
ImageFactorym_image_factory
 

Detailed Description

A container for Images managed by the ImageFactory. Provides convenience access functions without actually allocating memory outside of the factory.


Constructor & Destructor Documentation

◆ ImageData() [1/3]

ImageData ( const String & id,
ImageFactory & image_factory )

◆ ImageData() [2/3]

ImageData ( const ImageData & data)

◆ ImageData() [3/3]

ImageData ( ImageData && data)
noexcept

◆ ~ImageData()

~ImageData ( )

Member Function Documentation

◆ compressionFormat()

String compressionFormat ( ) const
nodiscard

◆ file()

const File & file ( ) const
nodiscard

◆ getCompressed()

const Buffer< uint01 > & getCompressed ( const String & default_image_format) const
nodiscard

◆ getUncompressed()

const Buffer< uint01 > & getUncompressed ( ) const
nodiscard

◆ modifiedTime()

Time modifiedTime ( ) const
nodiscard

◆ size()

const Vector< 2, uint04 > & size ( ) const
nodiscard

Member Data Documentation

◆ m_id

const String m_id
protected

◆ m_image_factory

ImageFactory& m_image_factory
protected

The documentation for this class was generated from the following file: