gepetto-viewer 6.1.0
An user-friendly Graphical Interface
Loading...
Searching...
No Matches
QCPItemRect Class Reference

#include </local/robotpkg/var/tmp/robotpkg/graphics/py-qt-gepetto-viewer/work/gepetto-viewer-6.1.0/plugins/pyqcustomplot/qcustomplot-1.3.2/qcustomplot.h>

Inheritance diagram for QCPItemRect:
Collaboration diagram for QCPItemRect:

Public Member Functions

 QCPItemRect (QCustomPlot *parentPlot)
virtual ~QCPItemRect ()
QPen pen () const
QPen selectedPen () const
QBrush brush () const
QBrush selectedBrush () const
void setPen (const QPen &pen)
void setSelectedPen (const QPen &pen)
void setBrush (const QBrush &brush)
void setSelectedBrush (const QBrush &brush)
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 QCPItemRect (QCustomPlot *parentPlot)
virtual ~QCPItemRect ()
QPen pen () const
QPen selectedPen () const
QBrush brush () const
QBrush selectedBrush () const
void setPen (const QPen &pen)
void setSelectedPen (const QPen &pen)
void setBrush (const QBrush &brush)
void setSelectedBrush (const QBrush &brush)
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE
 QCPItemRect (QCustomPlot *parentPlot)
virtual ~QCPItemRect ()
QPen pen () const
QPen selectedPen () const
QBrush brush () const
QBrush selectedBrush () const
void setPen (const QPen &pen)
void setSelectedPen (const QPen &pen)
void setBrush (const QBrush &brush)
void setSelectedBrush (const QBrush &brush)
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
QCPAxisRect * clipAxisRect () 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
QCPItemPosition * position (const QString &name) const
QCPItemAnchor * anchor (const QString &name) const
bool hasAnchor (const QString &name) const
 QCPAbstractItem (QCustomPlot *parentPlot)
virtual ~QCPAbstractItem ()
bool clipToAxisRect () const
QCPAxisRect * clipAxisRect () 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
QCPItemPosition * position (const QString &name) const
QCPItemAnchor * anchor (const QString &name) const
bool hasAnchor (const QString &name) const
 QCPAbstractItem (QCustomPlot *parentPlot)
virtual ~QCPAbstractItem ()
bool clipToAxisRect () const
QCPAxisRect * clipAxisRect () 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
QCPItemPosition * position (const QString &name) const
QCPItemAnchor * anchor (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
QCustomPlot * parentPlot () const
QCPLayerable * parentLayerable () const
QCPLayer * layer () 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
QCustomPlot * parentPlot () const
QCPLayerable * parentLayerable () const
QCPLayer * layer () 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
QCustomPlot * parentPlot () const
QCPLayerable * parentLayerable () const
QCPLayer * layer () 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
QPen mainPen () const
QBrush mainBrush () const
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
virtual QPointF anchorPixelPosition (int anchorId) const Q_DECL_OVERRIDE
QPen mainPen () const
QBrush mainBrush () const
virtual void draw (QCPPainter *painter)
virtual QPointF anchorPixelPoint (int anchorId) const
QPen mainPen () const
QBrush mainBrush () 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
QCPItemPosition * createPosition (const QString &name)
QCPItemAnchor * createAnchor (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
QCPItemPosition * createPosition (const QString &name)
QCPItemAnchor * createAnchor (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
QCPItemPosition * createPosition (const QString &name)
QCPItemAnchor * createAnchor (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

QPen mPen
QPen mSelectedPen
QBrush mBrush
QBrush mSelectedBrush
Protected Attributes inherited from QCPAbstractItem
bool mClipToAxisRect
QPointer< QCPAxisRect > mClipAxisRect
QList< QCPItemPosition * > mPositions
QList< QCPItemAnchor * > mAnchors
bool mSelectable
bool mSelected
Protected Attributes inherited from QCPLayerable
bool mVisible
QCustomPlot * mParentPlot
QPointer< QCPLayerable > mParentLayerable
QCPLayer * mLayer
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]

enum QCPItemRect::AnchorIndex
protected
Enumerator
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 

◆ AnchorIndex [2/3]

enum QCPItemRect::AnchorIndex
protected
Enumerator
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 

◆ AnchorIndex [3/3]

enum QCPItemRect::AnchorIndex
protected
Enumerator
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 
aiTop 
aiTopRight 
aiRight 
aiBottom 
aiBottomLeft 
aiLeft 

Constructor & Destructor Documentation

◆ QCPItemRect() [1/3]

QCPItemRect::QCPItemRect ( QCustomPlot * parentPlot)

◆ ~QCPItemRect() [1/3]

virtual QCPItemRect::~QCPItemRect ( )
virtual

◆ QCPItemRect() [2/3]

QCPItemRect::QCPItemRect ( QCustomPlot * parentPlot)
explicit

◆ ~QCPItemRect() [2/3]

virtual QCPItemRect::~QCPItemRect ( )
virtual

◆ QCPItemRect() [3/3]

QCPItemRect::QCPItemRect ( QCustomPlot * parentPlot)

◆ ~QCPItemRect() [3/3]

virtual QCPItemRect::~QCPItemRect ( )
virtual

Member Function Documentation

◆ anchorPixelPoint() [1/2]

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

Reimplemented from QCPAbstractItem.

◆ anchorPixelPoint() [2/2]

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

Reimplemented from QCPAbstractItem.

◆ anchorPixelPosition()

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

Reimplemented from QCPAbstractItem.

◆ brush() [1/3]

QBrush QCPItemRect::brush ( ) const
inline

◆ brush() [2/3]

QBrush QCPItemRect::brush ( ) const
inline

◆ brush() [3/3]

QBrush QCPItemRect::brush ( ) const
inline

◆ draw() [1/3]

virtual void QCPItemRect::draw ( QCPPainter * painter)
protectedvirtual

Implements QCPAbstractItem.

◆ draw() [2/3]

virtual void QCPItemRect::draw ( QCPPainter * painter)
protectedvirtual

Implements QCPAbstractItem.

◆ draw() [3/3]

virtual void QCPItemRect::draw ( QCPPainter * painter)
protectedvirtual

Implements QCPAbstractItem.

◆ mainBrush() [1/3]

QBrush QCPItemRect::mainBrush ( ) const
protected

◆ mainBrush() [2/3]

QBrush QCPItemRect::mainBrush ( ) const
protected

◆ mainBrush() [3/3]

QBrush QCPItemRect::mainBrush ( ) const
protected

◆ mainPen() [1/3]

QPen QCPItemRect::mainPen ( ) const
protected

◆ mainPen() [2/3]

QPen QCPItemRect::mainPen ( ) const
protected

◆ mainPen() [3/3]

QPen QCPItemRect::mainPen ( ) const
protected

◆ pen() [1/3]

QPen QCPItemRect::pen ( ) const
inline

◆ pen() [2/3]

QPen QCPItemRect::pen ( ) const
inline

◆ pen() [3/3]

QPen QCPItemRect::pen ( ) const
inline

◆ selectedBrush() [1/3]

QBrush QCPItemRect::selectedBrush ( ) const
inline

◆ selectedBrush() [2/3]

QBrush QCPItemRect::selectedBrush ( ) const
inline

◆ selectedBrush() [3/3]

QBrush QCPItemRect::selectedBrush ( ) const
inline

◆ selectedPen() [1/3]

QPen QCPItemRect::selectedPen ( ) const
inline

◆ selectedPen() [2/3]

QPen QCPItemRect::selectedPen ( ) const
inline

◆ selectedPen() [3/3]

QPen QCPItemRect::selectedPen ( ) const
inline

◆ selectTest() [1/3]

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

Implements QCPAbstractItem.

◆ selectTest() [2/3]

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

Implements QCPAbstractItem.

◆ selectTest() [3/3]

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

Implements QCPAbstractItem.

◆ setBrush() [1/3]

void QCPItemRect::setBrush ( const QBrush & brush)

◆ setBrush() [2/3]

void QCPItemRect::setBrush ( const QBrush & brush)

◆ setBrush() [3/3]

void QCPItemRect::setBrush ( const QBrush & brush)

◆ setPen() [1/3]

void QCPItemRect::setPen ( const QPen & pen)

◆ setPen() [2/3]

void QCPItemRect::setPen ( const QPen & pen)

◆ setPen() [3/3]

void QCPItemRect::setPen ( const QPen & pen)

◆ setSelectedBrush() [1/3]

void QCPItemRect::setSelectedBrush ( const QBrush & brush)

◆ setSelectedBrush() [2/3]

void QCPItemRect::setSelectedBrush ( const QBrush & brush)

◆ setSelectedBrush() [3/3]

void QCPItemRect::setSelectedBrush ( const QBrush & brush)

◆ setSelectedPen() [1/3]

void QCPItemRect::setSelectedPen ( const QPen & pen)

◆ setSelectedPen() [2/3]

void QCPItemRect::setSelectedPen ( const QPen & pen)

◆ setSelectedPen() [3/3]

void QCPItemRect::setSelectedPen ( const QPen & pen)

Member Data Documentation

◆ bottom

QCPItemAnchor *const QCPItemRect::bottom

◆ bottomLeft

QCPItemAnchor *const QCPItemRect::bottomLeft

◆ bottomRight

QCPItemPosition *const QCPItemRect::bottomRight

◆ left

QCPItemAnchor *const QCPItemRect::left

◆ mBrush

QBrush QCPItemRect::mBrush
protected

◆ mPen

QPen QCPItemRect::mPen
protected

◆ mSelectedBrush

QBrush QCPItemRect::mSelectedBrush
protected

◆ mSelectedPen

QPen QCPItemRect::mSelectedPen
protected

◆ right

QCPItemAnchor *const QCPItemRect::right

◆ top

QCPItemAnchor *const QCPItemRect::top

◆ topLeft

QCPItemPosition *const QCPItemRect::topLeft

◆ topRight

QCPItemAnchor *const QCPItemRect::topRight

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