QCPItemPixmap Class Reference

#include </home/florent/devel/release/src/gepetto-viewer/plugins/pyqcustomplot/qcustomplot-1.3.2/qcustomplot.h>

Inheritance diagram for QCPItemPixmap:
Collaboration diagram for QCPItemPixmap:

Public Member Functions

 QCPItemPixmap (QCustomPlot *parentPlot)
 
virtual ~QCPItemPixmap ()
 
QPixmap pixmap () const
 
bool scaled () const
 
Qt::AspectRatioMode aspectRatioMode () const
 
Qt::TransformationMode transformationMode () const
 
QPen pen () const
 
QPen selectedPen () const
 
void setPixmap (const QPixmap &pixmap)
 
void setScaled (bool scaled, Qt::AspectRatioMode aspectRatioMode=Qt::KeepAspectRatio, Qt::TransformationMode transformationMode=Qt::SmoothTransformation)
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
 QCPItemPixmap (QCustomPlot *parentPlot)
 
virtual ~QCPItemPixmap ()
 
QPixmap pixmap () const
 
bool scaled () const
 
Qt::AspectRatioMode aspectRatioMode () const
 
Qt::TransformationMode transformationMode () const
 
QPen pen () const
 
QPen selectedPen () const
 
void setPixmap (const QPixmap &pixmap)
 
void setScaled (bool scaled, Qt::AspectRatioMode aspectRatioMode=Qt::KeepAspectRatio, Qt::TransformationMode transformationMode=Qt::SmoothTransformation)
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE
 
 QCPItemPixmap (QCustomPlot *parentPlot)
 
virtual ~QCPItemPixmap ()
 
QPixmap pixmap () const
 
bool scaled () const
 
Qt::AspectRatioMode aspectRatioMode () const
 
Qt::TransformationMode transformationMode () const
 
QPen pen () const
 
QPen selectedPen () const
 
void setPixmap (const QPixmap &pixmap)
 
void setScaled (bool scaled, Qt::AspectRatioMode aspectRatioMode=Qt::KeepAspectRatio, Qt::TransformationMode transformationMode=Qt::SmoothTransformation)
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
- Public Member Functions inherited from QCPAbstractItem
 QCPAbstractItem (QCustomPlot *parentPlot)
 
virtual ~QCPAbstractItem ()
 
bool clipToAxisRect () const
 
QCPAxisRectclipAxisRect () const
 
bool selectable () const
 
bool selected () const
 
void setClipToAxisRect (bool clip)
 
void setClipAxisRect (QCPAxisRect *rect)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
QList< QCPItemPosition * > positions () const
 
QList< QCPItemAnchor * > anchors () const
 
QCPItemPositionposition (const QString &name) const
 
QCPItemAnchoranchor (const QString &name) const
 
bool hasAnchor (const QString &name) const
 
 QCPAbstractItem (QCustomPlot *parentPlot)
 
virtual ~QCPAbstractItem ()
 
bool clipToAxisRect () const
 
QCPAxisRectclipAxisRect () const
 
bool selectable () const
 
bool selected () const
 
void setClipToAxisRect (bool clip)
 
void setClipAxisRect (QCPAxisRect *rect)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
QList< QCPItemPosition * > positions () const
 
QList< QCPItemAnchor * > anchors () const
 
QCPItemPositionposition (const QString &name) const
 
QCPItemAnchoranchor (const QString &name) const
 
bool hasAnchor (const QString &name) const
 
 QCPAbstractItem (QCustomPlot *parentPlot)
 
virtual ~QCPAbstractItem ()
 
bool clipToAxisRect () const
 
QCPAxisRectclipAxisRect () const
 
bool selectable () const
 
bool selected () const
 
void setClipToAxisRect (bool clip)
 
void setClipAxisRect (QCPAxisRect *rect)
 
Q_SLOT void setSelectable (bool selectable)
 
Q_SLOT void setSelected (bool selected)
 
QList< QCPItemPosition * > positions () const
 
QList< QCPItemAnchor * > anchors () const
 
QCPItemPositionposition (const QString &name) const
 
QCPItemAnchoranchor (const QString &name) const
 
bool hasAnchor (const QString &name) const
 
- Public Member Functions inherited from QCPLayerable
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
 ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
bool realVisibility () const
 
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
virtual ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
bool realVisibility () const
 
 QCPLayerable (QCustomPlot *plot, QString targetLayer=QString(), QCPLayerable *parentLayerable=0)
 
 ~QCPLayerable ()
 
bool visible () const
 
QCustomPlotparentPlot () const
 
QCPLayerableparentLayerable () const
 
QCPLayerlayer () const
 
bool antialiased () const
 
void setVisible (bool on)
 
Q_SLOT bool setLayer (QCPLayer *layer)
 
bool setLayer (const QString &layerName)
 
void setAntialiased (bool enabled)
 
bool realVisibility () const
 

Public Attributes

QCPItemPosition *const topLeft
 
QCPItemPosition *const bottomRight
 
QCPItemAnchor *const top
 
QCPItemAnchor *const topRight
 
QCPItemAnchor *const right
 
QCPItemAnchor *const bottom
 
QCPItemAnchor *const bottomLeft
 
QCPItemAnchor *const left
 

Protected Types

enum  AnchorIndex {
  aiTop, aiTopRight, aiRight, aiBottom,
  aiBottomLeft, aiLeft, aiTop, aiTopRight,
  aiRight, aiBottom, aiBottomLeft, aiLeft,
  aiTop, aiTopRight, aiRight, aiBottom,
  aiBottomLeft, aiLeft
}
 
enum  AnchorIndex {
  aiTop, aiTopRight, aiRight, aiBottom,
  aiBottomLeft, aiLeft, aiTop, aiTopRight,
  aiRight, aiBottom, aiBottomLeft, aiLeft,
  aiTop, aiTopRight, aiRight, aiBottom,
  aiBottomLeft, aiLeft
}
 
enum  AnchorIndex {
  aiTop, aiTopRight, aiRight, aiBottom,
  aiBottomLeft, aiLeft, aiTop, aiTopRight,
  aiRight, aiBottom, aiBottomLeft, aiLeft,
  aiTop, aiTopRight, aiRight, aiBottom,
  aiBottomLeft, aiLeft
}
 

Protected Member Functions

virtual void draw (QCPPainter *painter)
 
virtual QPointF anchorPixelPoint (int anchorId) const
 
void updateScaledPixmap (QRect finalRect=QRect(), bool flipHorz=false, bool flipVert=false)
 
QRect getFinalRect (bool *flippedHorz=0, bool *flippedVert=0) const
 
QPen mainPen () const
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
 
virtual QPointF anchorPixelPosition (int anchorId) const Q_DECL_OVERRIDE
 
void updateScaledPixmap (QRect finalRect=QRect(), bool flipHorz=false, bool flipVert=false)
 
QRect getFinalRect (bool *flippedHorz=0, bool *flippedVert=0) const
 
QPen mainPen () const
 
virtual void draw (QCPPainter *painter)
 
virtual QPointF anchorPixelPoint (int anchorId) const
 
void updateScaledPixmap (QRect finalRect=QRect(), bool flipHorz=false, bool flipVert=false)
 
QRect getFinalRect (bool *flippedHorz=0, bool *flippedVert=0) const
 
QPen mainPen () const
 
- Protected Member Functions inherited from QCPAbstractItem
virtual QCP::Interaction selectionCategory () const
 
virtual QRect clipRect () const
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
double distSqrToLine (const QPointF &start, const QPointF &end, const QPointF &point) const
 
double rectSelectTest (const QRectF &rect, const QPointF &pos, bool filledRect) const
 
QCPItemPositioncreatePosition (const QString &name)
 
QCPItemAnchorcreateAnchor (const QString &name, int anchorId)
 
virtual QCP::Interaction selectionCategory () const Q_DECL_OVERRIDE
 
virtual QRect clipRect () const Q_DECL_OVERRIDE
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const Q_DECL_OVERRIDE
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) Q_DECL_OVERRIDE
 
virtual void deselectEvent (bool *selectionStateChanged) Q_DECL_OVERRIDE
 
double rectDistance (const QRectF &rect, const QPointF &pos, bool filledRect) const
 
QCPItemPositioncreatePosition (const QString &name)
 
QCPItemAnchorcreateAnchor (const QString &name, int anchorId)
 
virtual QCP::Interaction selectionCategory () const
 
virtual QRect clipRect () const
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
double distSqrToLine (const QPointF &start, const QPointF &end, const QPointF &point) const
 
double rectSelectTest (const QRectF &rect, const QPointF &pos, bool filledRect) const
 
QCPItemPositioncreatePosition (const QString &name)
 
QCPItemAnchorcreateAnchor (const QString &name, int anchorId)
 
- Protected Member Functions inherited from QCPLayerable
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
virtual void mousePressEvent (QMouseEvent *event, const QVariant &details)
 
virtual void mouseMoveEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseReleaseEvent (QMouseEvent *event, const QPointF &startPos)
 
virtual void mouseDoubleClickEvent (QMouseEvent *event, const QVariant &details)
 
virtual void wheelEvent (QWheelEvent *event)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 
virtual void parentPlotInitialized (QCustomPlot *parentPlot)
 
void initializeParentPlot (QCustomPlot *parentPlot)
 
void setParentLayerable (QCPLayerable *parentLayerable)
 
bool moveToLayer (QCPLayer *layer, bool prepend)
 
void applyAntialiasingHint (QCPPainter *painter, bool localAntialiased, QCP::AntialiasedElement overrideElement) const
 

Protected Attributes

QPixmap mPixmap
 
QPixmap mScaledPixmap
 
bool mScaled
 
bool mScaledPixmapInvalidated
 
Qt::AspectRatioMode mAspectRatioMode
 
Qt::TransformationMode mTransformationMode
 
QPen mPen
 
QPen mSelectedPen
 
- Protected Attributes inherited from QCPAbstractItem
bool mClipToAxisRect
 
QPointer< QCPAxisRectmClipAxisRect
 
QList< QCPItemPosition * > mPositions
 
QList< QCPItemAnchor * > mAnchors
 
bool mSelectable
 
bool mSelected
 
- Protected Attributes inherited from QCPLayerable
bool mVisible
 
QCustomPlotmParentPlot
 
QPointer< QCPLayerablemParentLayerable
 
QCPLayermLayer
 
bool mAntialiased
 

Additional Inherited Members

- Signals inherited from QCPAbstractItem
void selectionChanged (bool selected)
 
void selectableChanged (bool selectable)
 
void selectionChanged (bool selected)
 
void selectableChanged (bool selectable)
 
void selectionChanged (bool selected)
 
void selectableChanged (bool selectable)
 
- Signals inherited from QCPLayerable
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 
void layerChanged (QCPLayer *newLayer)
 

Member Enumeration Documentation

◆ AnchorIndex [1/3]

Enumerator
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 

◆ AnchorIndex [2/3]

Enumerator
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 

◆ AnchorIndex [3/3]

Enumerator
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 

Constructor & Destructor Documentation

◆ QCPItemPixmap() [1/3]

QCPItemPixmap::QCPItemPixmap ( QCustomPlot parentPlot)

◆ ~QCPItemPixmap() [1/3]

virtual QCPItemPixmap::~QCPItemPixmap ( )
virtual

◆ QCPItemPixmap() [2/3]

QCPItemPixmap::QCPItemPixmap ( QCustomPlot parentPlot)
explicit

◆ ~QCPItemPixmap() [2/3]

virtual QCPItemPixmap::~QCPItemPixmap ( )
virtual

◆ QCPItemPixmap() [3/3]

QCPItemPixmap::QCPItemPixmap ( QCustomPlot parentPlot)

◆ ~QCPItemPixmap() [3/3]

virtual QCPItemPixmap::~QCPItemPixmap ( )
virtual

Member Function Documentation

◆ anchorPixelPoint() [1/2]

virtual QPointF QCPItemPixmap::anchorPixelPoint ( int  anchorId) const
protectedvirtual

Reimplemented from QCPAbstractItem.

◆ anchorPixelPoint() [2/2]

virtual QPointF QCPItemPixmap::anchorPixelPoint ( int  anchorId) const
protectedvirtual

Reimplemented from QCPAbstractItem.

◆ anchorPixelPosition()

virtual QPointF QCPItemPixmap::anchorPixelPosition ( int  anchorId) const
protectedvirtual

Reimplemented from QCPAbstractItem.

◆ aspectRatioMode() [1/3]

Qt::AspectRatioMode QCPItemPixmap::aspectRatioMode ( ) const
inline

◆ aspectRatioMode() [2/3]

Qt::AspectRatioMode QCPItemPixmap::aspectRatioMode ( ) const
inline

◆ aspectRatioMode() [3/3]

Qt::AspectRatioMode QCPItemPixmap::aspectRatioMode ( ) const
inline

◆ draw() [1/3]

virtual void QCPItemPixmap::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractItem.

◆ draw() [2/3]

virtual void QCPItemPixmap::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractItem.

◆ draw() [3/3]

virtual void QCPItemPixmap::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractItem.

◆ getFinalRect() [1/3]

QRect QCPItemPixmap::getFinalRect ( bool *  flippedHorz = 0,
bool *  flippedVert = 0 
) const
protected

◆ getFinalRect() [2/3]

QRect QCPItemPixmap::getFinalRect ( bool *  flippedHorz = 0,
bool *  flippedVert = 0 
) const
protected

◆ getFinalRect() [3/3]

QRect QCPItemPixmap::getFinalRect ( bool *  flippedHorz = 0,
bool *  flippedVert = 0 
) const
protected

◆ mainPen() [1/3]

QPen QCPItemPixmap::mainPen ( ) const
protected

◆ mainPen() [2/3]

QPen QCPItemPixmap::mainPen ( ) const
protected

◆ mainPen() [3/3]

QPen QCPItemPixmap::mainPen ( ) const
protected

◆ pen() [1/3]

QPen QCPItemPixmap::pen ( ) const
inline

◆ pen() [2/3]

QPen QCPItemPixmap::pen ( ) const
inline

◆ pen() [3/3]

QPen QCPItemPixmap::pen ( ) const
inline

◆ pixmap() [1/3]

QPixmap QCPItemPixmap::pixmap ( ) const
inline

◆ pixmap() [2/3]

QPixmap QCPItemPixmap::pixmap ( ) const
inline

◆ pixmap() [3/3]

QPixmap QCPItemPixmap::pixmap ( ) const
inline

◆ scaled() [1/3]

bool QCPItemPixmap::scaled ( ) const
inline

◆ scaled() [2/3]

bool QCPItemPixmap::scaled ( ) const
inline

◆ scaled() [3/3]

bool QCPItemPixmap::scaled ( ) const
inline

◆ selectedPen() [1/3]

QPen QCPItemPixmap::selectedPen ( ) const
inline

◆ selectedPen() [2/3]

QPen QCPItemPixmap::selectedPen ( ) const
inline

◆ selectedPen() [3/3]

QPen QCPItemPixmap::selectedPen ( ) const
inline

◆ selectTest() [1/3]

virtual double QCPItemPixmap::selectTest ( const QPointF &  pos,
bool  onlySelectable,
QVariant *  details = 0 
) const
virtual

Implements QCPAbstractItem.

◆ selectTest() [2/3]

virtual double QCPItemPixmap::selectTest ( const QPointF &  pos,
bool  onlySelectable,
QVariant *  details = 0 
) const
virtual

Implements QCPAbstractItem.

◆ selectTest() [3/3]

virtual double QCPItemPixmap::selectTest ( const QPointF &  pos,
bool  onlySelectable,
QVariant *  details = 0 
) const
virtual

Implements QCPAbstractItem.

◆ setPen() [1/3]

void QCPItemPixmap::setPen ( const QPen &  pen)

◆ setPen() [2/3]

void QCPItemPixmap::setPen ( const QPen &  pen)

◆ setPen() [3/3]

void QCPItemPixmap::setPen ( const QPen &  pen)

◆ setPixmap() [1/3]

void QCPItemPixmap::setPixmap ( const QPixmap &  pixmap)

◆ setPixmap() [2/3]

void QCPItemPixmap::setPixmap ( const QPixmap &  pixmap)

◆ setPixmap() [3/3]

void QCPItemPixmap::setPixmap ( const QPixmap &  pixmap)

◆ setScaled() [1/3]

void QCPItemPixmap::setScaled ( bool  scaled,
Qt::AspectRatioMode  aspectRatioMode = Qt::KeepAspectRatio,
Qt::TransformationMode  transformationMode = Qt::SmoothTransformation 
)

◆ setScaled() [2/3]

void QCPItemPixmap::setScaled ( bool  scaled,
Qt::AspectRatioMode  aspectRatioMode = Qt::KeepAspectRatio,
Qt::TransformationMode  transformationMode = Qt::SmoothTransformation 
)

◆ setScaled() [3/3]

void QCPItemPixmap::setScaled ( bool  scaled,
Qt::AspectRatioMode  aspectRatioMode = Qt::KeepAspectRatio,
Qt::TransformationMode  transformationMode = Qt::SmoothTransformation 
)

◆ setSelectedPen() [1/3]

void QCPItemPixmap::setSelectedPen ( const QPen &  pen)

◆ setSelectedPen() [2/3]

void QCPItemPixmap::setSelectedPen ( const QPen &  pen)

◆ setSelectedPen() [3/3]

void QCPItemPixmap::setSelectedPen ( const QPen &  pen)

◆ transformationMode() [1/3]

Qt::TransformationMode QCPItemPixmap::transformationMode ( ) const
inline

◆ transformationMode() [2/3]

Qt::TransformationMode QCPItemPixmap::transformationMode ( ) const
inline

◆ transformationMode() [3/3]

Qt::TransformationMode QCPItemPixmap::transformationMode ( ) const
inline

◆ updateScaledPixmap() [1/3]

void QCPItemPixmap::updateScaledPixmap ( QRect  finalRect = QRect(),
bool  flipHorz = false,
bool  flipVert = false 
)
protected

◆ updateScaledPixmap() [2/3]

void QCPItemPixmap::updateScaledPixmap ( QRect  finalRect = QRect(),
bool  flipHorz = false,
bool  flipVert = false 
)
protected

◆ updateScaledPixmap() [3/3]

void QCPItemPixmap::updateScaledPixmap ( QRect  finalRect = QRect(),
bool  flipHorz = false,
bool  flipVert = false 
)
protected

Member Data Documentation

◆ bottom

QCPItemAnchor *const QCPItemPixmap::bottom

◆ bottomLeft

QCPItemAnchor *const QCPItemPixmap::bottomLeft

◆ bottomRight

QCPItemPosition *const QCPItemPixmap::bottomRight

◆ left

QCPItemAnchor *const QCPItemPixmap::left

◆ mAspectRatioMode

Qt::AspectRatioMode QCPItemPixmap::mAspectRatioMode
protected

◆ mPen

QPen QCPItemPixmap::mPen
protected

◆ mPixmap

QPixmap QCPItemPixmap::mPixmap
protected

◆ mScaled

bool QCPItemPixmap::mScaled
protected

◆ mScaledPixmap

QPixmap QCPItemPixmap::mScaledPixmap
protected

◆ mScaledPixmapInvalidated

bool QCPItemPixmap::mScaledPixmapInvalidated
protected

◆ mSelectedPen

QPen QCPItemPixmap::mSelectedPen
protected

◆ mTransformationMode

Qt::TransformationMode QCPItemPixmap::mTransformationMode
protected

◆ right

QCPItemAnchor *const QCPItemPixmap::right

◆ top

QCPItemAnchor *const QCPItemPixmap::top

◆ topLeft

QCPItemPosition *const QCPItemPixmap::topLeft

◆ topRight

QCPItemAnchor *const QCPItemPixmap::topRight

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