QCPAbstractItem Class Referenceabstract

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

Inheritance diagram for QCPAbstractItem:
Collaboration diagram for QCPAbstractItem:

Signals

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)
 

Public Member Functions

 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)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const =0
 
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)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE=0
 
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)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const =0
 
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
 

Protected Member Functions

virtual QCP::Interaction selectionCategory () const
 
virtual QRect clipRect () const
 
virtual void applyDefaultAntialiasingHint (QCPPainter *painter) const
 
virtual void draw (QCPPainter *painter)=0
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
virtual QPointF anchorPixelPoint (int anchorId) const
 
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 draw (QCPPainter *painter) Q_DECL_OVERRIDE=0
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged) Q_DECL_OVERRIDE
 
virtual void deselectEvent (bool *selectionStateChanged) Q_DECL_OVERRIDE
 
virtual QPointF anchorPixelPosition (int anchorId) const
 
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 draw (QCPPainter *painter)=0
 
virtual void selectEvent (QMouseEvent *event, bool additive, const QVariant &details, bool *selectionStateChanged)
 
virtual void deselectEvent (bool *selectionStateChanged)
 
virtual QPointF anchorPixelPoint (int anchorId) const
 
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

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
 

Friends

class QCustomPlot
 
class QCPItemAnchor
 

Constructor & Destructor Documentation

◆ QCPAbstractItem() [1/3]

QCPAbstractItem::QCPAbstractItem ( QCustomPlot parentPlot)

◆ ~QCPAbstractItem() [1/3]

virtual QCPAbstractItem::~QCPAbstractItem ( )
virtual

◆ QCPAbstractItem() [2/3]

QCPAbstractItem::QCPAbstractItem ( QCustomPlot parentPlot)
explicit

◆ ~QCPAbstractItem() [2/3]

virtual QCPAbstractItem::~QCPAbstractItem ( )
virtual

◆ QCPAbstractItem() [3/3]

QCPAbstractItem::QCPAbstractItem ( QCustomPlot parentPlot)

◆ ~QCPAbstractItem() [3/3]

virtual QCPAbstractItem::~QCPAbstractItem ( )
virtual

Member Function Documentation

◆ anchor() [1/3]

QCPItemAnchor* QCPAbstractItem::anchor ( const QString &  name) const

◆ anchor() [2/3]

QCPItemAnchor* QCPAbstractItem::anchor ( const QString &  name) const

◆ anchor() [3/3]

QCPItemAnchor* QCPAbstractItem::anchor ( const QString &  name) const

◆ anchorPixelPoint() [1/2]

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

◆ anchorPixelPoint() [2/2]

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

◆ anchorPixelPosition()

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

◆ anchors() [1/3]

QList<QCPItemAnchor*> QCPAbstractItem::anchors ( ) const
inline

◆ anchors() [2/3]

QList<QCPItemAnchor*> QCPAbstractItem::anchors ( ) const
inline

◆ anchors() [3/3]

QList<QCPItemAnchor*> QCPAbstractItem::anchors ( ) const
inline

◆ applyDefaultAntialiasingHint() [1/3]

virtual void QCPAbstractItem::applyDefaultAntialiasingHint ( QCPPainter painter) const
protectedvirtual

Implements QCPLayerable.

◆ applyDefaultAntialiasingHint() [2/3]

virtual void QCPAbstractItem::applyDefaultAntialiasingHint ( QCPPainter painter) const
protectedvirtual

Implements QCPLayerable.

◆ applyDefaultAntialiasingHint() [3/3]

virtual void QCPAbstractItem::applyDefaultAntialiasingHint ( QCPPainter painter) const
protectedvirtual

Implements QCPLayerable.

◆ clipAxisRect() [1/3]

QCPAxisRect* QCPAbstractItem::clipAxisRect ( ) const

◆ clipAxisRect() [2/3]

QCPAxisRect* QCPAbstractItem::clipAxisRect ( ) const

◆ clipAxisRect() [3/3]

QCPAxisRect* QCPAbstractItem::clipAxisRect ( ) const

◆ clipRect() [1/3]

virtual QRect QCPAbstractItem::clipRect ( ) const
protectedvirtual

Reimplemented from QCPLayerable.

◆ clipRect() [2/3]

virtual QRect QCPAbstractItem::clipRect ( ) const
protectedvirtual

Reimplemented from QCPLayerable.

◆ clipRect() [3/3]

virtual QRect QCPAbstractItem::clipRect ( ) const
protectedvirtual

Reimplemented from QCPLayerable.

◆ clipToAxisRect() [1/3]

bool QCPAbstractItem::clipToAxisRect ( ) const
inline

◆ clipToAxisRect() [2/3]

bool QCPAbstractItem::clipToAxisRect ( ) const
inline

◆ clipToAxisRect() [3/3]

bool QCPAbstractItem::clipToAxisRect ( ) const
inline

◆ createAnchor() [1/3]

QCPItemAnchor* QCPAbstractItem::createAnchor ( const QString &  name,
int  anchorId 
)
protected

◆ createAnchor() [2/3]

QCPItemAnchor* QCPAbstractItem::createAnchor ( const QString &  name,
int  anchorId 
)
protected

◆ createAnchor() [3/3]

QCPItemAnchor* QCPAbstractItem::createAnchor ( const QString &  name,
int  anchorId 
)
protected

◆ createPosition() [1/3]

QCPItemPosition* QCPAbstractItem::createPosition ( const QString &  name)
protected

◆ createPosition() [2/3]

QCPItemPosition* QCPAbstractItem::createPosition ( const QString &  name)
protected

◆ createPosition() [3/3]

QCPItemPosition* QCPAbstractItem::createPosition ( const QString &  name)
protected

◆ deselectEvent() [1/3]

virtual void QCPAbstractItem::deselectEvent ( bool *  selectionStateChanged)
protectedvirtual

Reimplemented from QCPLayerable.

◆ deselectEvent() [2/3]

virtual void QCPAbstractItem::deselectEvent ( bool *  selectionStateChanged)
protectedvirtual

Reimplemented from QCPLayerable.

◆ deselectEvent() [3/3]

virtual void QCPAbstractItem::deselectEvent ( bool *  selectionStateChanged)
protectedvirtual

Reimplemented from QCPLayerable.

◆ distSqrToLine() [1/2]

double QCPAbstractItem::distSqrToLine ( const QPointF &  start,
const QPointF &  end,
const QPointF &  point 
) const
protected

◆ distSqrToLine() [2/2]

double QCPAbstractItem::distSqrToLine ( const QPointF &  start,
const QPointF &  end,
const QPointF &  point 
) const
protected

◆ draw() [1/3]

◆ draw() [2/3]

◆ draw() [3/3]

◆ hasAnchor() [1/3]

bool QCPAbstractItem::hasAnchor ( const QString &  name) const

◆ hasAnchor() [2/3]

bool QCPAbstractItem::hasAnchor ( const QString &  name) const

◆ hasAnchor() [3/3]

bool QCPAbstractItem::hasAnchor ( const QString &  name) const

◆ position() [1/3]

QCPItemPosition* QCPAbstractItem::position ( const QString &  name) const

◆ position() [2/3]

QCPItemPosition* QCPAbstractItem::position ( const QString &  name) const

◆ position() [3/3]

QCPItemPosition* QCPAbstractItem::position ( const QString &  name) const

◆ positions() [1/3]

QList<QCPItemPosition*> QCPAbstractItem::positions ( ) const
inline

◆ positions() [2/3]

QList<QCPItemPosition*> QCPAbstractItem::positions ( ) const
inline

◆ positions() [3/3]

QList<QCPItemPosition*> QCPAbstractItem::positions ( ) const
inline

◆ rectDistance()

double QCPAbstractItem::rectDistance ( const QRectF &  rect,
const QPointF &  pos,
bool  filledRect 
) const
protected

◆ rectSelectTest() [1/2]

double QCPAbstractItem::rectSelectTest ( const QRectF &  rect,
const QPointF &  pos,
bool  filledRect 
) const
protected

◆ rectSelectTest() [2/2]

double QCPAbstractItem::rectSelectTest ( const QRectF &  rect,
const QPointF &  pos,
bool  filledRect 
) const
protected

◆ selectable() [1/3]

bool QCPAbstractItem::selectable ( ) const
inline

◆ selectable() [2/3]

bool QCPAbstractItem::selectable ( ) const
inline

◆ selectable() [3/3]

bool QCPAbstractItem::selectable ( ) const
inline

◆ selectableChanged [1/3]

void QCPAbstractItem::selectableChanged ( bool  selectable)
signal

◆ selectableChanged [2/3]

void QCPAbstractItem::selectableChanged ( bool  selectable)
signal

◆ selectableChanged [3/3]

void QCPAbstractItem::selectableChanged ( bool  selectable)
signal

◆ selected() [1/3]

bool QCPAbstractItem::selected ( ) const
inline

◆ selected() [2/3]

bool QCPAbstractItem::selected ( ) const
inline

◆ selected() [3/3]

bool QCPAbstractItem::selected ( ) const
inline

◆ selectEvent() [1/3]

virtual void QCPAbstractItem::selectEvent ( QMouseEvent *  event,
bool  additive,
const QVariant &  details,
bool *  selectionStateChanged 
)
protectedvirtual

Reimplemented from QCPLayerable.

◆ selectEvent() [2/3]

virtual void QCPAbstractItem::selectEvent ( QMouseEvent *  event,
bool  additive,
const QVariant &  details,
bool *  selectionStateChanged 
)
protectedvirtual

Reimplemented from QCPLayerable.

◆ selectEvent() [3/3]

virtual void QCPAbstractItem::selectEvent ( QMouseEvent *  event,
bool  additive,
const QVariant &  details,
bool *  selectionStateChanged 
)
protectedvirtual

Reimplemented from QCPLayerable.

◆ selectionCategory() [1/3]

virtual QCP::Interaction QCPAbstractItem::selectionCategory ( ) const
protectedvirtual

Reimplemented from QCPLayerable.

◆ selectionCategory() [2/3]

virtual QCP::Interaction QCPAbstractItem::selectionCategory ( ) const
protectedvirtual

Reimplemented from QCPLayerable.

◆ selectionCategory() [3/3]

virtual QCP::Interaction QCPAbstractItem::selectionCategory ( ) const
protectedvirtual

Reimplemented from QCPLayerable.

◆ selectionChanged [1/3]

void QCPAbstractItem::selectionChanged ( bool  selected)
signal

◆ selectionChanged [2/3]

void QCPAbstractItem::selectionChanged ( bool  selected)
signal

◆ selectionChanged [3/3]

void QCPAbstractItem::selectionChanged ( bool  selected)
signal

◆ selectTest() [1/3]

◆ selectTest() [2/3]

◆ selectTest() [3/3]

◆ setClipAxisRect() [1/3]

void QCPAbstractItem::setClipAxisRect ( QCPAxisRect rect)

◆ setClipAxisRect() [2/3]

void QCPAbstractItem::setClipAxisRect ( QCPAxisRect rect)

◆ setClipAxisRect() [3/3]

void QCPAbstractItem::setClipAxisRect ( QCPAxisRect rect)

◆ setClipToAxisRect() [1/3]

void QCPAbstractItem::setClipToAxisRect ( bool  clip)

◆ setClipToAxisRect() [2/3]

void QCPAbstractItem::setClipToAxisRect ( bool  clip)

◆ setClipToAxisRect() [3/3]

void QCPAbstractItem::setClipToAxisRect ( bool  clip)

◆ setSelectable() [1/3]

Q_SLOT void QCPAbstractItem::setSelectable ( bool  selectable)

◆ setSelectable() [2/3]

Q_SLOT void QCPAbstractItem::setSelectable ( bool  selectable)

◆ setSelectable() [3/3]

Q_SLOT void QCPAbstractItem::setSelectable ( bool  selectable)

◆ setSelected() [1/3]

Q_SLOT void QCPAbstractItem::setSelected ( bool  selected)

◆ setSelected() [2/3]

Q_SLOT void QCPAbstractItem::setSelected ( bool  selected)

◆ setSelected() [3/3]

Q_SLOT void QCPAbstractItem::setSelected ( bool  selected)

Friends And Related Function Documentation

◆ QCPItemAnchor

QCPItemAnchor
friend

◆ QCustomPlot

QCustomPlot
friend

Member Data Documentation

◆ mAnchors

QList< QCPItemAnchor * > QCPAbstractItem::mAnchors
protected

◆ mClipAxisRect

QPointer< QCPAxisRect > QCPAbstractItem::mClipAxisRect
protected

◆ mClipToAxisRect

bool QCPAbstractItem::mClipToAxisRect
protected

◆ mPositions

QList< QCPItemPosition * > QCPAbstractItem::mPositions
protected

◆ mSelectable

bool QCPAbstractItem::mSelectable
protected

◆ mSelected

bool QCPAbstractItem::mSelected
protected

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