Open 3D Engine GraphModel Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
GraphModelIntegration::ThumbnailImageItem Class Reference

#include <ThumbnailImageItem.h>

Inherits GraphModelIntegration::ThumbnailItem.

Public Member Functions

 AZ_RTTI (ThumbnailImageItem, "{DB2F488F-95CF-49BC-8DD4-806969A71A16}", ThumbnailItem)
 
 ThumbnailImageItem (const QPixmap &image, QGraphicsItem *parent=nullptr)
 
void UpdateImage (const QPixmap &image)
 
QSizeF sizeHint (Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const override
 Override from QGraphicsLayoutItem.
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) override
 Override from QGraphicsItem.
 
- Public Member Functions inherited from GraphModelIntegration::ThumbnailItem
 AZ_RTTI (ThumbnailItem, "{4248ADDE-4DFF-4A02-A8FD-B992E3CFF94B}")
 
 ThumbnailItem (QGraphicsItem *parent=nullptr)
 
void setGeometry (const QRectF &geom) override
 Override from QGraphicsLayoutItem.
 
QRectF boundingRect () const override
 Override from QGraphicsItem.
 

Protected Attributes

QPixmap m_pixmap
 

Detailed Description

Default image implementation of our ThumbnailItem class to draw a simple QPixmap as the thumbnail.


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