QCPItemBracket Class Reference

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

Inheritance diagram for QCPItemBracket:
Collaboration diagram for QCPItemBracket:

Public Types

enum  BracketStyle {
  bsSquare, bsRound, bsCurly, bsCalligraphic,
  bsSquare, bsRound, bsCurly, bsCalligraphic,
  bsSquare, bsRound, bsCurly, bsCalligraphic
}
 
enum  BracketStyle {
  bsSquare, bsRound, bsCurly, bsCalligraphic,
  bsSquare, bsRound, bsCurly, bsCalligraphic,
  bsSquare, bsRound, bsCurly, bsCalligraphic
}
 
enum  BracketStyle {
  bsSquare, bsRound, bsCurly, bsCalligraphic,
  bsSquare, bsRound, bsCurly, bsCalligraphic,
  bsSquare, bsRound, bsCurly, bsCalligraphic
}
 

Public Member Functions

 QCPItemBracket (QCustomPlot *parentPlot)
 
virtual ~QCPItemBracket ()
 
QPen pen () const
 
QPen selectedPen () const
 
double length () const
 
BracketStyle style () const
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
void setLength (double length)
 
void setStyle (BracketStyle style)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const
 
 QCPItemBracket (QCustomPlot *parentPlot)
 
virtual ~QCPItemBracket ()
 
QPen pen () const
 
QPen selectedPen () const
 
double length () const
 
BracketStyle style () const
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
void setLength (double length)
 
void setStyle (BracketStyle style)
 
virtual double selectTest (const QPointF &pos, bool onlySelectable, QVariant *details=0) const Q_DECL_OVERRIDE
 
 QCPItemBracket (QCustomPlot *parentPlot)
 
virtual ~QCPItemBracket ()
 
QPen pen () const
 
QPen selectedPen () const
 
double length () const
 
BracketStyle style () const
 
void setPen (const QPen &pen)
 
void setSelectedPen (const QPen &pen)
 
void setLength (double length)
 
void setStyle (BracketStyle style)
 
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 left
 
QCPItemPosition *const right
 
QCPItemAnchor *const center
 

Protected Types

enum  AnchorIndex { aiCenter, aiCenter, aiCenter }
 
enum  AnchorIndex { aiCenter, aiCenter, aiCenter }
 
enum  AnchorIndex { aiCenter, aiCenter, aiCenter }
 

Protected Member Functions

virtual void draw (QCPPainter *painter)
 
virtual QPointF anchorPixelPoint (int anchorId) const
 
QPen mainPen () const
 
virtual void draw (QCPPainter *painter) Q_DECL_OVERRIDE
 
virtual QPointF anchorPixelPosition (int anchorId) const Q_DECL_OVERRIDE
 
QPen mainPen () const
 
virtual void draw (QCPPainter *painter)
 
virtual QPointF anchorPixelPoint (int anchorId) 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

QPen mPen
 
QPen mSelectedPen
 
double mLength
 
BracketStyle mStyle
 
- 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
aiCenter 
aiCenter 
aiCenter 

◆ AnchorIndex [2/3]

Enumerator
aiCenter 
aiCenter 
aiCenter 

◆ AnchorIndex [3/3]

Enumerator
aiCenter 
aiCenter 
aiCenter 

◆ BracketStyle [1/3]

Enumerator
bsSquare 

A brace with angled edges.

bsRound 

A brace with round edges.

bsCurly 

A curly brace.

bsCalligraphic 

A curly brace with varying stroke width giving a calligraphic impression.

bsSquare 

A brace with angled edges.

bsRound 

A brace with round edges.

bsCurly 

A curly brace.

bsCalligraphic 

A curly brace with varying stroke width giving a calligraphic impression.

bsSquare 

A brace with angled edges.

bsRound 

A brace with round edges.

bsCurly 

A curly brace.

bsCalligraphic 

A curly brace with varying stroke width giving a calligraphic impression.

◆ BracketStyle [2/3]

Enumerator
bsSquare 

A brace with angled edges.

bsRound 

A brace with round edges.

bsCurly 

A curly brace.

bsCalligraphic 

A curly brace with varying stroke width giving a calligraphic impression.

bsSquare 

A brace with angled edges.

bsRound 

A brace with round edges.

bsCurly 

A curly brace.

bsCalligraphic 

A curly brace with varying stroke width giving a calligraphic impression.

bsSquare 

A brace with angled edges.

bsRound 

A brace with round edges.

bsCurly 

A curly brace.

bsCalligraphic 

A curly brace with varying stroke width giving a calligraphic impression.

◆ BracketStyle [3/3]

Defines the various visual shapes of the bracket item. The appearance can be further modified by setLength and setPen.

See also
setStyle
Enumerator
bsSquare 

A brace with angled edges.

bsRound 

A brace with round edges.

bsCurly 

A curly brace.

bsCalligraphic 

A curly brace with varying stroke width giving a calligraphic impression.

bsSquare 

A brace with angled edges.

bsRound 

A brace with round edges.

bsCurly 

A curly brace.

bsCalligraphic 

A curly brace with varying stroke width giving a calligraphic impression.

bsSquare 

A brace with angled edges.

bsRound 

A brace with round edges.

bsCurly 

A curly brace.

bsCalligraphic 

A curly brace with varying stroke width giving a calligraphic impression.

Constructor & Destructor Documentation

◆ QCPItemBracket() [1/3]

QCPItemBracket::QCPItemBracket ( QCustomPlot parentPlot)

◆ ~QCPItemBracket() [1/3]

virtual QCPItemBracket::~QCPItemBracket ( )
virtual

◆ QCPItemBracket() [2/3]

QCPItemBracket::QCPItemBracket ( QCustomPlot parentPlot)
explicit

◆ ~QCPItemBracket() [2/3]

virtual QCPItemBracket::~QCPItemBracket ( )
virtual

◆ QCPItemBracket() [3/3]

QCPItemBracket::QCPItemBracket ( QCustomPlot parentPlot)

◆ ~QCPItemBracket() [3/3]

virtual QCPItemBracket::~QCPItemBracket ( )
virtual

Member Function Documentation

◆ anchorPixelPoint() [1/2]

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

Reimplemented from QCPAbstractItem.

◆ anchorPixelPoint() [2/2]

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

Reimplemented from QCPAbstractItem.

◆ anchorPixelPosition()

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

Reimplemented from QCPAbstractItem.

◆ draw() [1/3]

virtual void QCPItemBracket::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractItem.

◆ draw() [2/3]

virtual void QCPItemBracket::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractItem.

◆ draw() [3/3]

virtual void QCPItemBracket::draw ( QCPPainter painter)
protectedvirtual

Implements QCPAbstractItem.

◆ length() [1/3]

double QCPItemBracket::length ( ) const
inline

◆ length() [2/3]

double QCPItemBracket::length ( ) const
inline

◆ length() [3/3]

double QCPItemBracket::length ( ) const
inline

◆ mainPen() [1/3]

QPen QCPItemBracket::mainPen ( ) const
protected

◆ mainPen() [2/3]

QPen QCPItemBracket::mainPen ( ) const
protected

◆ mainPen() [3/3]

QPen QCPItemBracket::mainPen ( ) const
protected

◆ pen() [1/3]

QPen QCPItemBracket::pen ( ) const
inline

◆ pen() [2/3]

QPen QCPItemBracket::pen ( ) const
inline

◆ pen() [3/3]

QPen QCPItemBracket::pen ( ) const
inline

◆ selectedPen() [1/3]

QPen QCPItemBracket::selectedPen ( ) const
inline

◆ selectedPen() [2/3]

QPen QCPItemBracket::selectedPen ( ) const
inline

◆ selectedPen() [3/3]

QPen QCPItemBracket::selectedPen ( ) const
inline

◆ selectTest() [1/3]

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

Implements QCPAbstractItem.

◆ selectTest() [2/3]

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

Implements QCPAbstractItem.

◆ selectTest() [3/3]

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

Implements QCPAbstractItem.

◆ setLength() [1/3]

void QCPItemBracket::setLength ( double  length)

◆ setLength() [2/3]

void QCPItemBracket::setLength ( double  length)

◆ setLength() [3/3]

void QCPItemBracket::setLength ( double  length)

◆ setPen() [1/3]

void QCPItemBracket::setPen ( const QPen &  pen)

◆ setPen() [2/3]

void QCPItemBracket::setPen ( const QPen &  pen)

◆ setPen() [3/3]

void QCPItemBracket::setPen ( const QPen &  pen)

◆ setSelectedPen() [1/3]

void QCPItemBracket::setSelectedPen ( const QPen &  pen)

◆ setSelectedPen() [2/3]

void QCPItemBracket::setSelectedPen ( const QPen &  pen)

◆ setSelectedPen() [3/3]

void QCPItemBracket::setSelectedPen ( const QPen &  pen)

◆ setStyle() [1/3]

void QCPItemBracket::setStyle ( BracketStyle  style)

◆ setStyle() [2/3]

void QCPItemBracket::setStyle ( BracketStyle  style)

◆ setStyle() [3/3]

void QCPItemBracket::setStyle ( BracketStyle  style)

◆ style() [1/3]

BracketStyle QCPItemBracket::style ( ) const
inline

◆ style() [2/3]

BracketStyle QCPItemBracket::style ( ) const
inline

◆ style() [3/3]

BracketStyle QCPItemBracket::style ( ) const
inline

Member Data Documentation

◆ center

QCPItemAnchor *const QCPItemBracket::center

◆ left

QCPItemPosition *const QCPItemBracket::left

◆ mLength

double QCPItemBracket::mLength
protected

◆ mPen

QPen QCPItemBracket::mPen
protected

◆ mSelectedPen

QPen QCPItemBracket::mSelectedPen
protected

◆ mStyle

BracketStyle QCPItemBracket::mStyle
protected

◆ right

QCPItemPosition *const QCPItemBracket::right

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