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();
#define LOG4CPP_INFO_S(logger)
void setImageVisible(bool visible)
Show/hide background image.
void setProcessedPixmap(const QPixmap &pixmap)
Save the image for this state after it has been processed by the leaf class.
BackgroundStateAbstractBase(BackgroundStateContext &context, GraphicsScene &scene)
Single constructor.
Unique identifier for QGraphicsItem object
BackgroundStateContext & context()
Reference to the BackgroundStateContext that contains all the BackgroundStateAbstractBase subclasses,...
#define ENGAUGE_CHECK_PTR(ptr)
#endif
QGraphicsPixmapItem & imageItem() const
Graphics image item for the current state.
Context class that manages the background image state machine.
log4cpp::Category * mainCat
QImage image() const
Image for the current state.
const int Z_VALUE_BACKGROUND
Z values for ordering of the various graphics layers, with background at the bottom.
Add point and line handling to generic QGraphicsScene.
GraphicsScene & scene()
Reference to the GraphicsScene, without const.
virtual ~BackgroundStateAbstractBase()