engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | 友元 | 所有成员列表
FObjectThumbnail类 参考

Thumbnail image data for an object. 更多...

#include <ObjectThumbnail.h>

Public 成员函数

TArray< uint8 > & AccessCompressedImageData ()
 Access the compressed image data.
 
TArray< uint8 > & AccessImageData ()
 Access the image data in place (does not decompress).
 
const TArray< uint8 > & AccessImageData () const
 Access the image data in place (does not decompress) const version.
 
void CompressImageData ()
 Compress image data.
 
void CountBytes (FArchive &Ar) const
 Calculates the memory usage of this FObjectThumbnail. 更多...
 
void CountImageBytes_Compressed (FArchive &Ar) const
 Calculates the amount of memory used by the compressed bytes array. 更多...
 
void CountImageBytes_Uncompressed (FArchive &Ar) const
 Calculates the amount of memory used by the uncompressed bytes array. 更多...
 
void DecompressImageData ()
 Decompress image data.
 
 FObjectThumbnail ()
 Default constructor.
 
int32 GetCompressedDataSize () const
 
int32 GetImageHeight () const
 Returns the height of the thumbnail.
 
int32 GetImageWidth () const
 Returns the width of the thumbnail.
 
const TArray< uint8 > & GetUncompressedImageData () const
 Returns uncompressed image data, decompressing it on demand if needed.
 
bool IsCreatedAfterCustomThumbsEnabled (void) const
 Returns true if the thumbnail was saved AFTER custom-thumbnails for shared thumbnail asset types was supported.
 
bool IsDirty () const
 Returns true if the thumbnail is dirty and needs to be regenerated at some point.
 
bool IsEmpty () const
 Returns true if this is an empty thumbnail.
 
bool IsLoadedFromDisk (void) const
 Returns true if the thumbnail was loaded from disk and not dynamically generated.
 
void MarkAsDirty ()
 Marks the thumbnail as dirty.
 
bool operator== (const FObjectThumbnail &Other) const
 Comparison operator
 
void Serialize (FArchive &Ar)
 Serializers
 
void SetCreatedAfterCustomThumbsEnabled (void)
 For newly generated custom thumbnails, mark it as valid in the future.
 
void SetImageSize (int32 InWidth, int32 InHeight)
 Sets the image dimensions.
 

静态 Public 成员函数

static void SetThumbnailCompressor (FThumbnailCompressionInterface *InThumbnailCompressor)
 Static: Sets the thumbnail compressor to use when loading/saving packages. 更多...
 

友元

FArchive & operator<< (FArchive &Ar, FObjectThumbnail &Thumb)
 I/O operator
 

详细描述

Thumbnail image data for an object.

成员函数说明

◆ CountBytes()

void FObjectThumbnail::CountBytes ( FArchive &  Ar) const

Calculates the memory usage of this FObjectThumbnail.

参数
Arthe FArchiveCountMem (or similar) archive that will store the results of the memory usage calculation.

◆ CountImageBytes_Compressed()

void FObjectThumbnail::CountImageBytes_Compressed ( FArchive &  Ar) const

Calculates the amount of memory used by the compressed bytes array.

参数
Arthe FArchiveCountMem (or similar) archive that will store the results of the memory usage calculation.

◆ CountImageBytes_Uncompressed()

void FObjectThumbnail::CountImageBytes_Uncompressed ( FArchive &  Ar) const

Calculates the amount of memory used by the uncompressed bytes array.

参数
Arthe FArchiveCountMem (or similar) archive that will store the results of the memory usage calculation.

◆ GetCompressedDataSize()

int32 FObjectThumbnail::GetCompressedDataSize ( ) const
inline
返回
the number of bytes in this thumbnail's compressed image data.

◆ SetThumbnailCompressor()

static void FObjectThumbnail::SetThumbnailCompressor ( FThumbnailCompressionInterface *  InThumbnailCompressor)
inlinestatic

Static: Sets the thumbnail compressor to use when loading/saving packages.

The caller is responsible for the object's lifespan.

参数
InThumbnailCompressorA class derived from FThumbnailCompressionInterface.

该类的文档由以下文件生成: