23 m_imageItem = m_scene.addPixmap (dummy);
24 m_imageItem->setVisible (
false);
66 m_imageItem->setVisible (visible);
72 <<
" map=(" << pixmap.width() <<
"x" << pixmap.height() <<
")";
76 m_imageItem->setPixmap (pixmap);
79 m_scene.setSceneRect (m_imageItem->boundingRect ());
81 m_image = pixmap.toImage();
@ DATA_KEY_GRAPHICS_ITEM_TYPE
Unique identifier for QGraphicsItem object
#define ENGAUGE_CHECK_PTR(ptr)
#endif
@ GRAPHICS_ITEM_TYPE_IMAGE
log4cpp::Category * mainCat
const int Z_VALUE_BACKGROUND
Z values for ordering of the various graphics layers, with background at the bottom.
BackgroundStateAbstractBase(BackgroundStateContext &context, GraphicsScene &scene)
Single constructor.
QGraphicsPixmapItem & imageItem() const
Graphics image item for the current state.
GraphicsScene & scene()
Reference to the GraphicsScene, without const.
BackgroundStateContext & context()
Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses,...
void setImageVisible(bool visible)
Show/hide background image.
QImage image() const
Image for the current state.
virtual ~BackgroundStateAbstractBase()
void setProcessedPixmap(const QPixmap &pixmap)
Save the image for this state after it has been processed by the leaf class.
Context class that manages the background image state machine.
Add point and line handling to generic QGraphicsScene.
#define LOG4CPP_INFO_S(logger)